Scale
Scale reads, writes and connections behind one URL.
Required links keep related rows under each placement root (Account, Project, Organization or Site) on one shard without manual shard keys. Add engines, replicas and shards online.
Read the scale docsLink-inferred sharding
Place related rows together without manual shard keys.
Napalm walks required single links up to any placement root (such as an Account, Project, Site or Org) while keeping standard UUID keys. Use ext::napalm::root to mark explicit roots, replicate lookup tables across shards or exclude cross-root links, while identities and multi links span roots freely.
Placement roots and shardingtype Plan { annotation ext::napalm::root := 'reference'; # replicated lookup table required code: str { constraint exclusive };} type Org { required slug: str { constraint exclusive }; required plan: Plan; multi members: ext::auth::Identity; # identities span roots freely} type Project { required org: Org { readonly := true }; # placed on the Org's shard} type Task { required project: Project; # follows Project to that shard partner_org: Org { annotation ext::napalm::root := 'none'; # cross-root link, not an owner }; required title: str; access policy org_members allow all using ((global caller in .project.org.members) ?? false);}Independent scaling
Scale connections, reads and writes on separate axes.
Add query engines for connection and subscription fan-out, regional replicas for low-latency reads, and horizontal shards for write throughput online behind the same project URL.
napalm clusters show notesnapalm clusters scale notes --engines 4 --replicas 2Online shard moves
Move a busy root to its own shard without downtime.
Isolate a high-traffic account, project or organization on a dedicated shard, or pin a root to a regional shard from the CLI while live reads and writes continue.
napalm placement move notes \ --root 0192c3f4-6b1a-7d8e-9f00-1a2b3c4d5e6f \ --shard shard-eu-1Causal read replicas
Read from replicas without ever seeing stale data.
Every mutation returns a compact Napalm-Bookmark token that client SDKs forward automatically. Replicas wait to catch up to that commit or route to the primary so reads never move backward.
Causal bookmarks// Hand a webhook or job commit position to the client:napalm.reach(delivery.position) // Any engine or replica serves at least that commit:const { data } = await db.POST('/query/listNotes', { body: { variables: {} },})Automatic failover
Promote a caught-up replica when a primary fails.
On standard and scale clusters, writes confirm after an in-region replica saves them to disk. When a primary goes offline, a caught-up replica takes over automatically and two primaries never write at once.
30 sto promote a caught-up replica
Point-in-time recovery
Rewind a branch or a single root to any second.
Changes archive continuously to encrypted storage within 60 seconds across a 7- to 90-day retention window. Restore an entire branch, or rewind one placement root in place while neighboring roots keep serving.
napalm branches restore notes \ --to 2026-11-10T03:59:58Z
Chaos lab
We test every release against live faults and publish the record.
Release and nightly campaigns inject server crashes, network splits, full disks and query floods under live client writes. Incomplete evidence marks a run inconclusive rather than passed.
Explore the chaos lab8scenario groups in the chaos lab
- Writes
- Replicas
- Change log and webhooks
- Presence
- Shards
- Access
- Load
- Test runner