Skip to the page

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 and explore the guides and reference for your stack.

Across the preceding chapters, browsers, mobile apps, hosted handlers, cron schedules, warehouse workers and AI agents all operated on one schema. Every write from every caller landed on a single commit timeline.

Try it

One CLI command inspects recent commits across HTTP sessions, MCP tool calls and scheduled jobs from the change log.

Your terminal
napalm changes notes --since 1d --json
{"items":[{"commitTime":"2026-11-16T17:14:02Z","caller":{"kind":"session","id":"8f2c1e64","via":"http"},"types":[{"name":"default::Note","inserted":1}]},
{"commitTime":"2026-11-16T17:18:40Z","caller":{"kind":"session","id":"8f2c1e64","via":"mcp"},"types":[{"name":"default::Note","updated":1}]},
{"commitTime":"2026-11-16T17:22:15Z","caller":{"kind":"key","id":"0b6f1f5e","via":"schedule"},"types":[{"name":"default::Note","updated":2}]}]}
Browser edits (http), MCP tool calls (mcp) and scheduled jobs (schedule) share one ordered commit log without exposing field values.

Six pillars and six guarantees#

The same six architectural guarantees held from the first private record through multi-shard failover.

PillarGuaranteeChapter
One typed graphGuaranteeRows, files, search indexes, jobs and grants live in one schema under shared access policies and snapshotsChapterSearch and models
Caller-boundGuaranteeAccess policies walk the graph from verified identity across queries, file URLs, actions and expiring grantsChapterRules, queries and files
CompiledGuaranteeStatic checks block breaking pushes, compile policies into one SQL statement per request and generate SDKs and MCP toolsChapterAgents and copilots
Commit-atomicGuaranteeLive subscriptions, webhooks, background jobs, ledger debits and causal replicas advance on one commit timelineChapterActions, jobs and webhooks
Distributed from linksGuaranteeRequired ownership links group and move root subtrees across shards behind one unchanging addressChapterOrganizations and billing
Checked and fault-testedGuaranteePush validation, reach diagnostics, dry-run previews and public fault campaigns verify every guaranteeChapterScale and the chaos lab

Cross-layer guarantees#

Compiling data, identity and commit order together gives you cross-feature guarantees without custom glue. Deleting an AgentGrant in Agents and copilots drops restricted rows from an agent’s open live stream on that commit, and queueing a job in Actions, jobs and webhooks commits or rolls back inside the same write transaction.

Live revocation

Deleting a grant drops restricted rows from open streams on that commit.

Transactional jobs

Queued jobs commit or roll back inside the same statement as your writes.

Single-root restore

Rewind one root record and its descendants while other roots stay live.

Setting allows_training to false in Search and models excludes those records from the next Parquet export with no pipeline changes. When a bad import hits a single root in Scale and the chaos lab, napalm placement restore-root rewinds that root and its linked descendants while the rest of the cluster continues uninterrupted.

Guides by use case#

Scaffold a project locally in one command, then follow Your first app for the five setup steps or jump to the quickstart to install the CLI and sign in.

Terminal
napalm new notes-app notes
Create a fresh copy of the starter project.

From there, pick the step-by-step guide for the architecture you are building.

Learn and reference#

Beyond the application guides, Learn covers each subsystem in depth, Testing covers branch harnesses and policy verification, and Reference documents every schema extension, HTTP endpoint, generated SDK method, CLI flag and limit.

SurfaceCovers
Schema & extensionsCoversSchema declarations, access policies, files, vector indexes, jobs, agent grants and placement roots
Testing & verificationCoversBranch test harnesses, caller-matrix policy suites, dry-run previews and pull-request CI checks
Project APICoversProject HTTP routes for queries, live streams, files, search and /ask
Control APICoversControl HTTP routes for projects, schemas, branches, clusters, placement and orgs
SDKsCoversTyped client SDKs generated by napalm generate across eight languages
CLI referenceCoversEvery command, flag and exit code in napalm

Coding agents can also consume the docs directly. openapi.yaml specifies every HTTP route, llms-full.txt bundles the full documentation as plain text, and Known limits lists current boundaries and architectural trade-offs.

Run napalm new and build from one schema.

Type a word or two to search every docs page.