Access,
Controlled.

Every query, function, file and agent obeys one set of access rules. Model your data, sign-in and permissions once on PostgreSQL 18.

Request early access

We’ll email you when your invite is ready.

Schema
Types, sign-in & rules
Logic
Actions, handlers & jobs
Agents
MCP, A2A & grants
Scale
Shards & replicas
Vectors
Vector & text search
Files
Uploads & edge delivery
Realtime
Live queries & rooms

One schema replaces a dozen backend services.

Typed links and closed-by-default caller identity live together in dbschema/default.gel. From that one file, Napalm compiles single-statement SQL access policies, query-checked migrations, sharding without shard-key columns and scoped agent grants.

dbschema/default.gel39 lines
using extension auth;using extension files;using extension ai;using extension napalm;using future simple_scoping; module default {  global caller := global ext::auth::ClientTokenIdentity;  global agent_grant := global ext::napalm::ClientTokenAgentGrant;   type Project {    required name: str;    multi members: ext::auth::Identity;     access policy members_can_read      allow select      using ((global caller in .members) ?? false);  }   type Doc extending ext::files::File {    required title: str;    required project: Project;     constraint expression on (.file_format = ext::files::Format.Pdf);     deferred index ext::ai::index(embedding_model := 'text-embedding-3-small')      on (.title);    index fts::index on (fts::with_options(.title, language := fts::Language.eng));     access policy project_members_have_full_access      allow all      using ((global caller in .project.members) ?? false);    access policy read_only_agents_cannot_write      deny insert, update, delete      using ((global agent_grant).is_read_only ?= true);     notify doc_changed after insert, update;  }}

Active on every project with zero extra schema lines:

Ship a typed query in three steps.

Define your types in dbschema/default.gel, add a query file and push. The CLI migrates PostgreSQL, deploys the endpoint and generates typed client code.

  1. Write a query file

    Drop a parameterized EdgeQL statement into dbschema/queries/. The filename sets the route, and a leading comment describes the SDK, CLI and MCP tool.

    dbschema/queries/listDocs.edgeql
    # List readable PDFs in a projectselect Doc { id, title, file_download_url }filter .project.id = <uuid>$projectorder by .titlelimit 20
  2. Push and generate

    napalm schema push validates every deployed query before migrating PostgreSQL, and napalm generate writes your OpenAPI spec, typed SDK and live hooks.

    Terminal
    # Migrate schema & deploy dbschema/queries/napalm schema push acme # Emit OpenAPI 3.0, typed SDK & live hooksnapalm generate acme --deployed --lang ts
  3. Call from app, CLI or agent

    Call the compiled route from eight SDKs, the generated CLI or /mcp and /a2a, or run ad-hoc EdgeQL at POST /query.

    src/docs.ts
    const { data } = await db.POST('/query/listDocs', {  body: { variables: { project } },})// CLI: acme list-docs --project 0192c3f4-…// MCP: https://acme.napalmdata.com/mcp (tool: listDocs)

Schema

Query linked records in a single SQL statement.

Typed links replace join tables, unexpected SQL NULLs and N+1 round trips on PostgreSQL 18. Access policies compile straight into the same query plan.

Explore the schema

Fetch nested shapes in one round trip.

Whether deployed or ad-hoc, EdgeQL compiles forward links, reverse backlinks (.<note[is Comment]), optional filters and every touched access policy into one PostgreSQL statement.

Queries and EdgeQL
dbschema/queries/listNotes.edgeql
select Note {  id,  title,  author: { name },  comments := (    select .<note[is Comment] { body, created_at }    order by .created_at desc limit 5  ),  comment_count := count(.<note[is Comment]),}order by .updated_at desc

One policy on the type governs every path to the data.

Access policies walk links in the same query language as your app. Declare a rule on Note once, and queries, search, files, live streams and agent tools all enforce it.

dbschema/default.gel
type Note {  required project: Project;  required author: ext::auth::Identity;  multi shared_with: ext::auth::Identity;   access policy author_or_shared    allow select using (      (global caller in .project.members) ?? false      and (        .author ?= global caller        or (global caller in .shared_with) ?? false      )    );}
How access policies work

Logic

Handlers, jobs and webhooks inherit the caller’s access.

Gatekeeper queries check permissions before your code runs. Background jobs commit inside your write transaction, and notify rules send signed webhooks.

Explore logic
Hosted handlers
TypeScript, Python, Go, Rust and Dart handlers sleep when idle and wake on demand.
Jobs and schedules
Queue background jobs in the same transaction as your write, or run queries on cron schedules.
Caller identity
Handlers receive only rows the caller may read and write back under the caller’s session.

Agents

Connect AI agents under record-level expiring grants.

Every project exposes your deployed queries over MCP and A2A. Grants restrict an agent to chosen records until a deadline, and dry runs preview every write before commit.

Explore agent access
Expiring grants
Limit an agent session to chosen records and an expiration time enforced by PostgreSQL.
Built-in MCP and A2A
Deployed queries appear as typed tools for Claude Code, Cursor and remote agents.
Dry-run previews
Pass is_dry_run: true to inspect before-and-after row diffs inside a rolled-back transaction.

Scale

Outgrow one machine without changing your queries.

Add query engines, read replicas and horizontal shards online behind one project URL. Sharding works for any root type, from Account or Project to Organization or Site.

Explore scale
Sharding from schema links
Required links co-locate owned rows without shard-key columns while users belong to any number of roots.
Causal read replicas
Replicas honor session bookmarks, so your reads never fall behind your writes.
Automatic failover
A replica takes over on failure, and two primaries never accept writes at once.

Search, files and live queries share the same schema and rules.

Declare an index, extend ext::files::File or subscribe to a deployed query without bolting on separate search, storage or WebSocket services.

Vectors

Search live tables by meaning and keyword.

Filtered during the scan
Access policies run during index scoring, so restricted records never bury readable matches.
Background embeddings
Writes and full-text indexes commit immediately while Napalm embeds changed text in the background.
Large hybrid indexes
Vector and full-text indexes grow past 100M embeddings without a schema or query change.

Files

Upload files straight to storage as typed records.

Direct uploads
Browsers and apps upload to object storage while Napalm checks file size and format.
Signed download URLs
Queries return short-lived download URLs only for file records the caller can read.
Edge delivery
Edge caches serve files near each reader. Every account includes 500 GB a month, and extra bandwidth costs $0.04 / GB.

Realtime

Stream live query diffs and presence over one connection.

Shared live streams
Run multiple subscriptions over one connection and receive only the rows that changed.
Presence rooms
Share cursors, typing indicators and live agent progress on any readable record.
Instant revocation
When a commit removes read access, open streams drop the row and close presence.

Compare

Measure Napalm against Supabase, Convex, Firebase and five others.

Every row grades four concrete engineering criteria and links straight to each platform’s documentation.

See the full comparison

Compare products

Click any row or mark to see the scoring criteria and source documentation.

Napalm beside Supabase, Convex, Firebase on 28 backend features. Each cell reads built in, partly or not offered.
Feature
NapalmPostgres & EdgeQL backend
20 / 28 built in
SupabaseManaged Postgres & BaaS
4 / 28 built in
ConvexReactive TypeScript backend
7 / 28 built in
FirebaseFirestore & Google app platform
6 / 28 built in
Access & sign-in
Data & queries
AI & agents
Search & storage
Scale & operations
Built inof 28 features208 partly417 partly712 partly618 partly

Showing 10 of 28 features across 5 categories.

Verified against each platform’s documentation in November 2026. Spot an update? Let us know.

Chaos monkey badge: machine skull

Every release runs against crashes, splits and full disks.

Test clusters serve live reads and writes during each fault and check every acknowledged write afterward.

Verdict rules

Passed
Every durability, access and scenario check holds.
Failed
Any unexpected write loss or stale read fails the run.
Inconclusive
Incomplete evidence never counts as a pass.

6 guarantees in the fault catalog

All 8 scenario groups
Writes
Acknowledged writes survive server crashes, freezes and full disks.
Replicas
A replica takes over when a primary fails. Two primaries never write at once.
Change log and webhooks
Acknowledged writes reach the change log and signed webhooks in commit order.
Shards
A cross-shard write commits on both shards or on neither shard.
Access
Revoked credentials read zero rows even on a lagging replica. Tenants never see another tenant’s rows.
Load
Expensive read queries never starve concurrent writes.

Pay for the machines you run.

Shared-CPU memory is $40 per GiB a month on every machine, whether you run one large primary or split that memory across shards. Users, seats, queries and live updates are free on every cluster.

$40per GiB / month
Same rate across engines, primaries and replicas. Shared CPUs come standard.
$0.04 / GBfile bandwidth
Includes 500 GB of edge file downloads a month before metering starts.
$0per user or query
Active users, team seats, reads, writes and live updates are never metered.
100 GBobject storage included
Includes 100 GB of network transfer and 7-day point-in-time recovery.

$245a month for a standard cluster

1 GiB1 GiB2 GiB2 GiB2 enginesPrimaryReplica
Database machines2 × 2 GiB (primary + replica)
$160
Engines2 × 1 GiB
$80
Storage10 GiB on each database machine
Included
Public IPv4 addressIPv6 is free
$5

Solo clusters start at $85/month with a 1 GiB database machine and a 1 GiB engine.