Ship and scale
Chapter 11 of 11
One schema in practice
Compiling data, identity and side effects together removes whole classes of bugs. Start locally in one command, then explore the guides and reference for your stack.
When a backend is built out of separate services for sign-in, APIs, queues, search, and agent tools, no single timeline or permission boundary exists. Each service maintains a partial log and a partial copy of your rules.
Try it
Because every caller in Napalm runs through one compiled engine, one command reads a full day of activity from the change log.
Six pillars and six guarantees#
Six guarantees held from Ada’s first note through multi-shard failover.
| Pillar | Guarantee | Chapter |
|---|---|---|
| One typed graph | GuaranteeRows, files, search indexes, jobs and grants live in one schema under shared access rules and snapshots | ChapterSearch and models |
| Caller-bound | GuaranteeAccess rules walk the graph from verified identity across reads, writes, file links, actions and expiring grants | ChapterRules, queries and files |
| Compiled | GuaranteeStatic checks block breaking pushes, compile policies into one SQL statement per request and generate typed clients and MCP tools | ChapterAgents and copilots |
| Commit-atomic | GuaranteeLive screens, webhooks, delayed jobs, wallet debits and causal replicas advance on one commit timeline | ChapterActions, jobs and webhooks |
| Distributed from links | GuaranteeRequired ownership links place and move customer graphs across shards behind one unchanging address | ChapterOrganizations and billing |
| Checked and fault-tested | GuaranteeSchema push checks, reach counts, dry-run previews and public fault campaigns verify every promise | ChapterScale and the chaos lab |
Cross-layer guarantees#
Keeping data, identity and commit order in one engine connects features that normally require custom glue across separate services. Deleting an AgentGrant in Agents and copilots removes restricted notes from an agent’s open live query in the same commit. Queueing a delayed job in Actions, jobs and webhooks commits or rolls back alongside the note write.
Revocation drops live rows
Deleting an AgentGrant evicts restricted notes from an agent’s open /subscribe stream on that exact commit.
Jobs commit with writes
ext::napalm::Job rows commit or roll back inside the user statement and never fire on rolled-back data.
Per-customer root rewind
restore-root rewinds one Organization and descendant rows while co-located customers keep serving.
Setting allows_training to false on an organization in Search and models excludes every note across that customer’s workspaces from your next Parquet export without pipeline changes. When one customer makes a bad bulk edit in Scale and the chaos lab, point-in-time root restore rewinds that organization alone while every other customer keeps working.
Guides by use case#
Build your own project locally in one command, then follow Your first app for the five setup steps or start at the quickstart to install the CLI and sign in.
napalm new notes-app notesFrom there, pick the step-by-step guide that matches your stack.
| Use case | Guides |
|---|---|
| Realtime web and mobile apps | GuidesReact, Vite & single-page apps, Next.js & React, React Native, Flutter and Realtime & collaboration |
| Agents, MCP and copilots | GuidesCoding agents, In-app AI copilots, Tools for agents, Multi-agent pipelines and Watching and stopping an agent |
| Documents, search, models and evals | GuidesFiles, media & document search, Datasets & ML training, Model serving, Evals and Model registry |
| Multi-tenant SaaS, sharding and ledgers | GuidesMulti-tenant B2B SaaS, Billing & payments and Actions & background jobs |
| Change data and warehouse sync | GuidesWarehouse sync, Search index & cache sync and Queues & streams |
| Moving from another platform | GuidesMoving to Napalm, Coming from Postgres, Coming from Supabase, Coming from Firebase, Coming from Convex and Coming from Gel |
Learn and reference#
Alongside the guides, Learn explains each subsystem in depth, Testing verifies policies and releases against isolated branches, and Reference covers every schema extension, HTTP route, generated SDK method, CLI flag and limit.
| Surface | Covers |
|---|---|
| Schema & extensions | CoversNapalm schema declarations, access policy clauses, files, vector indexes, jobs, agent grants and roots |
| Testing & verification | CoversBranch test harnesses, caller-matrix policy checks, dry-run previews and pull-request CI gates |
| Project API | CoversProject endpoints for queries, live streams, files, search and /ask |
| Control API | CoversControl endpoints for projects, schemas, branches, clusters and orgs |
| SDKs | CoversTyped client libraries written by napalm generate across eight languages |
| CLI reference | CoversEvery command, flag and exit code in napalm |
Coding agents can also read the docs directly as files. openapi.yaml describes every HTTP route, and llms-full.txt holds the complete documentation as plain text. Known boundaries and deliberate trade-offs live under Known limits.
Run napalm new and ship from one schema.