Business apps on React and Supabase, built for your coding agent.
Genesis is an open-source framework for multi-tenant business apps. Workspaces, lists, record pages, forms, chat and AI, on web and native, from one design system. Row-level security keeps each tenant's data apart, and a doctor keeps every screen on the system, whether a person or an agent wrote it.
For teams and solo builders who ship several apps on React and Supabase and want them to look and behave the same.
npx @marktiderman/genesis-cli init my-appDescribe it once. The screen follows.
On the left, the whole definition of a list. On the right, the screen it draws: search, sort, modes, a form and a detail panel, running in your browser on sample data.
import { defineResource } from "@marktiderman/genesis-core";
import { defineView } from "@marktiderman/genesis-core/resource-view";
import type { Item } from "../data";
// What the data is. In an app, `genesis introspect` writes this from the database.
export const itemsResource = defineResource<Item>()({
name: "items",
key: "id",
labelField: "name",
fields: [
{ name: "id", type: "string", hasDefault: true },
{ name: "name", type: "string" },
{ name: "status", type: "string", enumValues: ["Active", "Draft", "Archived"] },
{ name: "category", type: "string" },
{ name: "price", type: "string" },
{ name: "created", type: "datetime", dbType: "date" },
],
});
// What the screen shows: one description for the list, the form and the phone.
export const itemsView = defineView(itemsResource, {
fields: { status: { tones: { Active: "success", Draft: "warning", Archived: "muted" } } },
columns: { default: ["name", "status", "category", "price", "created"] },
form: ["name", "status", "category", "price"],
orderBy: { field: "created", direction: "desc" },
});
What's in it
33 packages, one version
In layers that only depend downward: the foundation and primitives are level 1, the modules built from them level 2. Start with npx @marktiderman/genesis-cli init my-app and the packages marked essential. This list is read from the repository at build time.
Modules
Level 2Mini apps with their own tables, screens and settings, built from the layers below. Add one with genesis add and switch it on per tenant.
Built from
- config
- design-system
- forms
- forms-web
- media
- ui
Owns the genesis_sites schema
genesis add sitesBuilt from
- ai
- chat
- config
- core
- native
- notifications
- ui
- ui-native
genesis add support-feedbackPrimitives
Level 1Capabilities an app or a module composes: data, AI, forms, collaboration and the app shells.
Core
- genesis 0.11.11
Genesis — one-install umbrella and single version coordinate for the Genesis system. Re-exports @marktiderman/genesis-core, -ui, -design-system, -switchboard, -ui-native (as /native) and -native (as /native-app and /native-app/persist) and the forms packages (as /forms, /forms/server, /forms/destinations, /forms/react, /forms/web) via subpath exports and exact-pins each to a reproducible set. Holds no code of its own; each granular package remains independently installable.
Data
- calendar 0.1.2
The calendar read layer: what is on these people's calendars, merged. Google Calendar's incremental sync, an iCal feed reader (RRULE through genesis-core/dates, EXDATE, RDATE, RECURRENCE-ID, Windows zone names) and writer, one event across people's copies with per-viewer privacy, marks, and the mapping to genesis-ui's EventCalendar. Pure TypeScript, no storage, no OAuth, no React; fetching a feed safely is the optional /fetch entry. Part of the Genesis framework.
- connect 0.4.0
Connect an outside account, server side: encrypted secrets with key versioning (AES-256-GCM, HKDF per purpose, a keyring with rotation) and an OAuth connector kit (authorization code with PKCE, a signed state, the verifier in a cookie, a pinned callback origin) on Web Request and Response, with Google and Todoist built in, and HMAC webhook checks. fetch and WebCrypto only, no dependencies: Node 20+, edge and Workers. Part of the Genesis framework.
- data 0.5.0
Genesis Data — an Airtable-style data editor for a Postgres or Supabase app's own data: a table sidebar and a sheet grid with version-checked, audited single-cell edits, as the signed-in user. Built on genesis-ui's ResourcePage; routing and sign-in come from the host app. Part of the Genesis framework.
- data-server 0.7.0
Genesis Data server handler — a web-standard Request → Response handler that reads and edits a Postgres or Supabase database AS the signed-in user: schema discovery with per-user column rights, version-checked edits, and an audit entry in the same transaction. The only Genesis package that touches database credentials. Part of the Genesis framework.
- media 0.3.0
Images, files and uploads for Genesis apps: one image value (alt or decorative, size, focal point, phone crop, blur placeholder), responsive images through a host's image URL builder, byte sniffing, a server-side fetch guarded against request forgery, signed links to private media with streaming ZIP bundles, and resumable, checksummed uploads (owner-bound sessions, skip-if-identical on the whole object's SHA-256, storage targets for R2 and S3 with Object Lock, fan-out with read-back verification, browser and native clients). On fetch and WebCrypto for Node and Workers. An optional upgrade: forms takes its uploads through its own port. Part of the Genesis framework.
- studio 0.5.0
Deprecated: renamed to @marktiderman/genesis-data. A thin re-export of genesis-data with the same entries and stylesheets, kept for two minor versions. Part of the Genesis framework.
- studio-server 0.7.0
Deprecated: renamed to @marktiderman/genesis-data-server. A thin re-export of genesis-data-server with the same entries and command, kept for two minor versions. Part of the Genesis framework.
- supabase 0.18.0
Supabase for Genesis apps on web and React Native: a client with PKCE and safe defaults, Keychain session storage that survives interrupted writes, refresh only while the app is in front, native Sign in with Apple and Google, OAuth redirects, in-app account deletion, per-tenant feature switches (tenant_features), a background-job queue with schedules (genesis_jobs) on one outbox engine (/runner, shared with notifications and forms), the feature registry in the database for the feature gate (features, entitlements, flag values, feature_on), a native-to-web sign-in handoff (continue on the web, already signed in: web-handoff), and a result helper. Part of the Genesis framework.
- switchboard 2.1.3
The Switchboard — pluggable, cross-runtime data-layer config for Genesis. Composes LEVELS (L1 Code / L2 Middle / L3 Production) × TIERS (A env / B resource / C field) so the app reads one canonical shape and never knows where data lives. Part of the Genesis framework.
- tasks 0.1.1
The task sync layer: a person's tasks kept equal with an outside list. The shared fields, a three-way merge that never loses an edit, and Todoist's adapter: incremental sync with its sync token, batched commands with idempotent uuids, temp ids and per-command results, and checked webhooks. Pure TypeScript, no storage, no OAuth (genesis-connect's todoistProvider), no React. Part of the Genesis framework.
AI
- ai 0.3.1
One server-side pipeline for every AI call a Genesis app makes: consent, the feature gate, a bounded budget, server-side loading with a context manifest, safety routing, guardrails, the model call with rollouts, refusal and outage fallbacks, a usage row with no content and a trace. Tasks are versioned prompts with typed arguments and outputs, called by id; processors such as moderation and transcription are wrapped in place. Vendors are adapters (Anthropic and OpenAI ship), keys can be the platform's or a tenant's or person's own (BYOK, in Supabase Vault), and model records carry prices and capabilities that fail loudly on an unknown model. On the Vercel AI SDK, server only except /react. Part of the Genesis framework.
Forms
- forms 0.11.1
Genesis Forms engine: a serializable form definition, logic, navigation, validation and server-side checking. Zero dependencies; runs in browsers, React Native, Node and edge runtimes. Part of the Genesis framework.
- forms-builder 0.6.8
A visual builder for Genesis Forms definitions: questions, choices, show/hide and jump logic, endings, hidden inputs and settings, with live validation, path coverage, a live preview and a breaking-change diff between versions. It edits a definition and nothing else, so any app can host it. Part of the Genesis framework.
- forms-devtools 0.1.7
Developer tools for Genesis Forms: an inspector with live state, a time-travel event timeline and a server-check panel with tamper mode, a flow map, a logic trace and path coverage. Mount it in a playground or in an app during development. Part of the Genesis framework.
- forms-native 0.3.1
The React Native renderer for Genesis Forms: <FormFocus>, one question or content step per screen, with keyboard-aware scrolling, accessibility focus and announcements, Dynamic Type, reduced motion, a theme seam for system or Genesis colors, and seams for drafts, an offline outbox and photo uploads. The same definitions run on web, native and the server. Part of the Genesis framework.
- forms-react 0.3.3
React bindings for Genesis Forms: useForm, useField with one-field re-renders, a ranked renderer registry and a headless FormRuntime. Works in React DOM and React Native. Part of the Genesis framework.
- forms-studio 0.6.5
The form management screens around a Genesis Forms builder: the page header, the Responses tab (filters, headline numbers, question summaries, a follow-up list), the Settings page layout and the Share dialog, plus the pure summary, answer, share and availability rules behind them. Data-agnostic: the host passes rows and actions. Part of the Genesis framework.
- forms-web 0.8.2
The web renderer for Genesis Forms: <Form> with one-question-at-a-time and classic layouts, built on Genesis UI components and tokens, accessible by default. Part of the Genesis framework.
Collaboration
- chat 0.14.1
Chat for Genesis apps, in the app's own Supabase: conversations of kinds the app defines (direct, group, cohort, support ticket) with members, observers and internal notes; messages with replies, threads, topics, mentions, reactions, edits and deletes; photos, files, voice notes and videos; read state, live updates and typing over private Realtime topics; an outbox for push, transcripts and storage cleanup. A headless core, React hooks, web and native renderers on Genesis UI, and a server runner. Part of the Genesis framework.
- collab 0.1.2
Collaboration and sharing for Genesis apps: a space (a subject, an audience, roles, a visibility policy and timing) for anything more than one person works on, with the rules for who sees whose contributions and when, in the app's own Supabase (the genesis_collab schema) and in a headless core for the interface. Part of the Genesis framework.
- notifications 0.4.7
One notifier for Genesis apps: a domain (chat, forms, sites, support) says who and what; this decides how and when. defineNotifications registers types (category, channels, critical, transactional, device action categories, Android channels); notify() queues them through a security-definer SQL function; the in-app feed is also the outbox; one runner (claim with SKIP LOCKED, retries with jittered backoff, deferrals) sends Expo push (batches of 100, receipts, dead tokens pruned, private previews) and Resend email (rendered once for byte-identical retries, tenant sender identities, RFC 8058 one-click unsubscribe, bounce and complaint suppression); preferences by category and channel with tenant defaults and quiet hours across daylight saving; secret links built at send time; erasure. Hooks for React and React Native, a web bell, feed, preferences matrix and admin views on genesis-ui, a native feed on genesis-ui-native. Part of the Genesis framework.
Shells
- extension 0.2.3
Build Chrome extensions (Manifest V3) with Genesis: checked messaging, settings storage, the UI as a floating panel, a top bar or Chrome's side panel, an in-page bar, native-helper jobs, React pieces built on Genesis UI, and a Chrome fake for tests. Part of the Genesis framework.
- native 0.16.0
The native app shell for Genesis Expo apps: one GenesisNativeApp root that runs boot steps behind the splash, catches errors into a fatal screen with retry, persists the query cache, gates on the Supabase session and normalizes deep links. An optional updates block (/updates) adds force upgrade, maintenance, an update banner and what's new; an optional push block (/push) adds push registration, tap routing, the badge and a notification settings screen with quiet hours and private previews; the observability block (/observability) reports errors, breadcrumbs, typed analytics events and timings through vendor-neutral sinks (Sentry, EAS Observe, console) with PII scrubbed on the device; the devtools overlay (/devtools) is a debug sheet for development and preview builds. openOnWeb (/web-handoff) opens a page of the web app signed in as the same person. Blocks (defineBlock declarations, through `blocks`) add boot steps, roots, slot fills and Settings rows. Every part is a slot and is also exported on its own. Part of the Genesis framework.
Foundation
Level 1What every app needs: tokens, components, the data contract and the feature registry.
Core
- config 0.13.0essential
Genesis configuration: the typed feature registry (defineFeatures, defineFlags), blocks (defineBlock, resolveBlocks; /blocks, free of zod), the feature gate (featureOn; /gate, zod-free, with React hooks at /gate/react), generators for AGENTS.md and JSON, a stale-output check, and a FeatureList page. Formerly @marktiderman/genesis-features. Part of the Genesis framework.
- core 2.22.0essential
Genesis platform-agnostic providers, hooks, and data layer. Part of the Genesis framework.
- design-system 1.14.0essential
Genesis brand-agnostic design tokens, canonical brand schema (with extensions slot), brand-genesis OOTB fallback, and theme generation. Part of the Genesis framework.
- features 0.10.2
Deprecated: renamed to @marktiderman/genesis-config. A thin re-export of genesis-config with the same subpaths, kept for two minor versions. Part of the Genesis framework.
- ui 3.3.0essential
Genesis Shadcn-based web components. Part of the Genesis framework.
- ui-native 3.18.1essential
Genesis React Native components (NativeWind v4-5). Part of the Genesis framework.