Access,
Controlled.

Every query, function, file and agent obeys one set of access rules. Napalm runs your backend from one schema file on PostgreSQL 18.

Request early access

We’ll email you when your turn comes.

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 services.

Write your types, sign-in and access rules in one file. Napalm does the work of twelve separate services.

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;  }}

Three services need no lines at all.

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

    Save an EdgeQL statement in dbschema/queries/. The filename names the route, and the opening comment documents 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 checks every deployed query before migrating PostgreSQL and blocks breaking changes. The generator then writes your OpenAPI spec, 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 route from eight SDK languages, run the project CLI in a terminal or invoke the tool on /mcp and /a2a.

    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

Walk your data graph in one SQL statement.

Links replace join tables, SQL NULLs and N+1 round trips while policies compile into the same plan on PostgreSQL 18. Every schema push checks your deployed queries before migrating data.

Explore the schema

Nested queries run in one round trip at one snapshot.

Forward links, reverse backlinks (.<note[is Comment]) and filtered counts compile together with every touched access policy into a single SQL 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

Write the access rule once.

Policies walk links in the same EdgeQL language as queries. Declare a policy on the type, and Napalm enforces it across every surface without route middleware.

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

Run your backend code on Napalm.

Attach custom code, background jobs and signed webhooks to your schema without running a separate worker fleet.

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

Every project speaks MCP and A2A.

Point local coding tools or remote agents at your project URL. Every tool call and natural-language query obeys your schema’s access policies.

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 ?dry_run=true to inspect before-and-after row diffs inside a rolled-back transaction.

Scale

Outgrow one machine without changing your code.

Add stateless engines, read replicas and horizontal shards behind one project URL while your schema and queries stay unchanged.

Explore scale
Sharding from schema links
Required links place each tenant’s records on the same shard without a tenant_id column.
Causal read replicas
Replicas honor session bookmarks, so a client always sees the latest write.
Automatic failover
A replica takes over on failure, and two primaries never accept writes at once.

Search, files and realtime run from your schema.

Add an index, extend ext::files::File or subscribe to a deployed query. Napalm handles embeddings, object storage and live streams.

Vectors

Search your data by meaning and by keyword.

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

Files

Files are typed records in your schema.

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 downloads past that cost $0.04 / GB.

Realtime

Every deployed query supports live subscriptions.

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

Napalm next to Supabase, Convex, Firebase and five other platforms.

Each score checks four criteria and links to the source 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
NapalmOne schema, full 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 write rule 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.

Clusters are priced by memory.

Every cluster includes sign-in, search, files, agents and live queries. Eight 1 GiB shards cost the same as one 8 GiB machine.

$40per GiB / month
Every machine pays one flat memory rate. Shared CPUs are included.
$0.04 / GBfile bandwidth
Every account includes 500 GB of file downloads each month.
$0per user or query
Accounts include unlimited active users, team seats and queries.
100 GBobject storage included
Every account also gets 100 GB bandwidth and 7-day point-in-time restore.

$245a month for a standard cluster

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

The smallest cluster costs $85 a month for one 1 GiB database machine and one engine.