scribase
Features

The whole backend, and a way out of it

Scribase runs Postgres, Auth, Storage, Realtime, and Functions, then adds the operations layer that makes it trustworthy: preview branches, import, export, verified restore, and one control surface for humans and agents.

The data plane

The APIs your app already speaks. Your client SDK, CLI scripts, and generated types point at Scribase by swapping the URL and keys.

PostgreSQL database

Real Postgres — SQL, joins, extensions, and row-level security.

A full PostgreSQL instance per project with the relational model you already know: SQL, foreign keys, views, and extensions. Row-level security is first-class, and policies are linted for cost so a slow policy never surprises you in production.

  • Standard Postgres connection string plus the /rest data API
  • Row-level security with policy-cost linting
  • Extensions, views, functions, and full referential integrity

Authentication

Email, OAuth, and JWT auth on a wire-compatible /auth API.

A drop-in auth service on the /auth paths: email/password, magic links, and OAuth providers issuing standard JWTs. User IDs are preserved on import, so existing sessions and password logins keep working after a move.

  • Wire-compatible /auth endpoints and JWT claims
  • User IDs preserved on import — no forced password resets
  • Works unchanged with the standard client auth helpers
  • Sign-in email sent for you with a daily cap and a delivery log; `npx scribase add email` sends a proof to your own address

Object storage

Buckets and files with RLS-aware access on the Storage API.

Store and serve files through a wire-compatible Storage API. Buckets honor row-level access rules, and object bytes and metadata travel with every export and import so storage is never left behind.

  • Wire-compatible bucket and object API
  • Policy-aware public and private buckets
  • Bytes and metadata included in export/import bundles

Realtime

Postgres change streams and channels over the Realtime protocol.

Subscribe to database changes and broadcast on channels using the standard realtime protocol. Clients built on existing realtime subscriptions connect without code changes.

  • Postgres change data capture on the /realtime path
  • Broadcast and presence channels
  • Compatible with existing realtime clients

Edge Functions

Deploy server-side functions on the /functions/v1 path.

Run server-side logic close to your data on the Deno edge-runtime, served on the compatible /functions/v1 path. Deploy, list, and invoke functions through the /v1 API and the TypeScript SDK.

  • Compatible /functions/v1 routing
  • Deploy, list, and invoke over the /v1 API
  • Same database and JWT secret as the rest of the stack

Platform and workflow

The operations layer that makes the data plane trustworthy: branching, migration, portability, and verified recovery.

Preview branches

PR-linked preview environments — database, auth, and storage together.

Every pull request can get an isolated preview environment, not just a database branch. Branches are secret-scrubbed and swept on a TTL when the pull request closes, so stale environments never pile up or leak credentials.

  • Full preview environments: DB + auth + storage
  • Secret-scrubbed and TTL-swept automatically
  • Copy-on-write branches with scale-to-zero compute

Import an existing project

Move an existing project in — resumably, with a dry run first.

scribase import connects to a live hosted Postgres project with its ref and service key and moves schema, data, auth.users, storage objects, and RLS policies. Edge functions move from your local functions checkout with --functions-dir. Run it with --dry-run to see exactly what will and will not move before committing.

  • Schema, data, auth users, storage objects, and policies
  • User IDs preserved so JWTs and foreign keys stay valid
  • --dry-run preview and resumable transfers
  • Edge Functions deployed from your local checkout with --functions-dir
Read the docs

Full-stack export

Leave with a bundle that actually boots elsewhere.

scribase export produces a runnable bundle — schema, table data, auth identities, storage bytes, RLS policies, grants, and roles — with a checksummed manifest so you can verify the bundle before you trust it. Portability is a product feature, not a support ticket.

  • Whole stack, not a database-only dump
  • SHA-256 manifest for verification
  • Boots elsewhere from one bundle
Read the docs

Verified restore

PITR-class recovery that ships evidence, not just a green checkmark.

Every verified restore comes with proof: row-count parity, SHA-256 checksums, policy parity, and a real login. The same discipline powers export, so "it restored" and "it works" are the same claim.

  • Included, not a per-month add-on
  • Row-count, checksum, and policy parity evidence
  • Login proof after restore
Read the docs

Portable backups

Logical backups with checksums you can carry anywhere.

Backups are portable logical bundles with SHA-256 evidence, aligned with the export format. A backup you can move is a backup you can trust.

  • Portable logical format with checksums
  • Shares the export/restore verification pipeline
  • No proprietary snapshot lock-in
Read the docs

Agents and operations

One control surface for humans and agents, and an operator model built for least privilege and bring-your-own-cloud.

Agent-native control surface

Every mutation has a CLI flag, an OpenAPI operation, and an approval model.

Scribase is designed so an agent can operate it as safely as a person. Every mutation is expressible on the CLI, mapped to an OpenAPI operation, carries an idempotency key, and returns an operation ID — with an approval model for sensitive actions and support for MCP-driven workflows.

  • CLI + OpenAPI parity for every mutation
  • Idempotency keys and operation IDs on every change
  • Approval model and MCP-friendly workflows
Read the docs

Control API and CLI

One authenticated /v1 API and one binary for humans and agents.

The scribase CLI and the authenticated /v1 control API sit over a durable Postgres executor, so operations survive restarts and can be audited by their operation IDs. The same surface manages organizations, projects, environments, previews, branches, migrations, backups, imports, and exports.

  • Durable executor — operations survive restarts
  • Auditable by operation ID
  • Single surface for projects, environments, branches, and migrations
Read the docs

Bring-your-own-cloud

By agreement, run the full stack in your own Kubernetes cluster with our Helm chart.

Under a written agreement, our Helm chart runs the control and data planes in your own cluster with the same verified restore and preview features as the managed cloud. The control plane never requires cluster-admin inside your workloads.

  • Helm chart for the full control + data plane
  • Least-privilege operator role model
  • Same restore and preview features as managed
Read the docs

Add with one command

Each capability turns on with one command and answers with a real proof. Live ones work today and are covered by the compatibility suite; arriving ones are planned and cannot be turned on yet.

Live

  • npx scribase add emailLive

    Sign-up, magic-link and password-reset email for your app's users, sent by Scribase with a daily cap and a delivery log, or through your own mail server.

Arriving

  • npx scribase add aiArriving

    One key for AI model calls from your app, with usage per project.

  • npx scribase add analyticsArriving

    Privacy-friendly visits, events, product analytics and page speed for the app that uses this backend, through Railyard.

  • npx scribase add billingArriving

    Sell your own products and subscriptions and turn payments into entitlements in your database.

  • npx scribase add consentArriving

    A cookie and tracking consent banner for your app, with choices stored per visitor.

  • npx scribase add deployArriving

    Deploy the app that uses this backend with Railyard, with the project URL and keys wired in for you.

  • npx scribase add entitlementsArriving

    Know who paid inside your iOS and Android app: store purchases become entitlements your app and your database both read.

  • npx scribase add errorsArriving

    Errors from your app, grouped into issues with their stack traces. Use the Sentry SDK you already know with the DSN Scribase gives you.

  • npx scribase add flagsArriving

    Turn features on for some users and change remote settings without shipping a new build.

  • npx scribase add launch-videoArriving

    One click sends this project's name and URL to Menivor, which starts a short video about your app with them filled in.

  • npx scribase add linksArriving

    Links that open your app on the right screen on iOS and Android, including right after install, with clicks counted.

  • npx scribase add mailArriving

    Transactional and product email for your app through Rally Send, from your own domain, with delivery and bounce events.

  • npx scribase add otaArriving

    Ship JavaScript changes to your installed iOS and Android app on its next launch, with one-click roll back, stored in this project.

  • npx scribase add purchasesArriving

    Subscriptions for your app without a third-party service: App Store, Google Play and web purchases checked on the server, entitlements, remote paywalls with experiments, and revenue analytics.

  • npx scribase add pushArriving

    Send push notifications to your app's users on iOS and Android through the Expo push service, with dead devices removed for you.

  • npx scribase add schedulesArriving

    Run SQL or a function on a timer with pg_cron. Jobs still run while the project sleeps, and every run is logged.

  • npx scribase add storage-s3Arriving

    Access keys for your project's buckets, so standard S3 tools can list, upload and download files.

  • npx scribase add uptimeArriving

    Checks that your app's URLs answer, with an alert when one stops.

Point your existing app at Scribase

Change the URL and keys — your existing client SDK, CLI scripts, and generated types keep working. Your data is always yours to export.

Included Verified restore, previews, custom domains, and export — no add-ons.