Genesis

Packages

@marktiderman/genesis-switchboard

2.1.3Primitive · Data

Pluggable data layer — a resource's backing (L1 Code / L2 Airtable·Notion / L3 Supabase × tiers A/B/C) is config, not a rewrite. Read one canonical shape via data.resource('x'). See packages/switchboard/README.md + SWITCHBOARD.md.

**The Switchboard — a pluggable, cross-runtime data layer for Genesis.** A resource's _backing_ becomes a configuration choice, not a code rewrite. Your app calls `data.resource('x').list()` and **never knows where the data lives** — code fixtures, Airtable/Notion, or Supabase Postgres. Move one resource — or even one _field_ — between a mock, a human-editable middle layer, and production without touching consumer code.

> Consumed the way you consume the Genesis design system: a versioned `@marktiderman/genesis-*` package. Depth > lives in **SWITCHBOARD.md** (the full design); this README is the quickstart.

pnpm add @marktiderman/genesis-switchboard

READMEChangelognpm

@marktiderman/genesis-switchboard
Pluggable data layer — a resource's backing (L1 Code / L2 Airtable·Notion / L3 Supabase × tiers A/B/C) is config, not a rewrite. Read one canonical shape via data.resource('x'). See packages/switchboard/README.md + SWITCHBOARD.md.

Other exports (30)

AIRTABLE_BASE_ID · AirtableAdapter · asWritable · CodeAdapter · driftReport · featuresAirtableMap · featuresContract · featuresSupabaseMap · gitdataMdContract · gitdataResourceName · inferFieldType · introspectFields · isMergeBinding · LEVEL_LABEL · LEVELS · markStale · NotionAdapter · promote · propagateStale · PROVIDER_LEVEL · ReadOnlyAdapterError · reconcileModel · Registry · staleInfo · SupabaseAdapter · Switchboard · ticketsAirtableMap · ticketsContract · ticketsSupabaseMap · UnknownResourceError

And 43 types.

@marktiderman/genesis-switchboard/gitdata

Other exports (4)

attachGitdata · GitdataAdapter · gitdataMdContract · gitdataResourceName

And 3 types.

@marktiderman/genesis-switchboard/data-provider

Other exports (1)

createSwitchboardProvider