# Scribase > Supabase gives you a database and sign-in. Scribase is the whole backend for your app: one account instead of six, in place of a separate Postgres host, auth service, email API, file storage, realtime service, functions host and job queue. Every project ships Postgres, Auth (email/password, magic link, OAuth, SAML, phone OTP), Storage, Realtime, Edge Functions, durable queues, pg_cron, push notifications and store purchases (App Store, Google Play, web) behind one URL and one anon key, plus a Resend-compatible email API (Scribase Mail, its own key)from the same vendor. Idle projects scale to zero and are never paused; a migration that would leave a public table without row level security is refused before it runs. Everything is managed through a /v1 control API, a CLI, an SDK and an MCP server, so a coding agent goes from an empty folder to a live backend with `npx scribase init --temp --yes --json`, no account and no pasted key. One project is free with no time limit (0.5 GB database, 1 GB files, no card); new accounts start with 14 days of Hobby, then from $5 a project a month beyond the free one. Apps use @supabase/supabase-js unchanged against a project URL and anon key. Coding agents (Claude Code, Codex, Cursor, Windsurf) should start with "Build with AI agents": it covers the MCP server, token scopes, branch-per-task and the safety rules every mutation follows. Every page below is plain markdown; llms-full.txt lists one full-text file per section. ## Agent setup - [Coding agents](https://scribase.com/agents): Pick your agent and connect it to Scribase in one step. - [Claude Code](https://scribase.com/agents/claude-code): Connect Claude Code over MCP and add the safe-change skill. - [Cursor](https://scribase.com/agents/cursor): Connect Cursor with .cursor/mcp.json and a project rule. - [Codex](https://scribase.com/agents/codex): Add Scribase to the Codex CLI as a remote MCP server. - [Windsurf](https://scribase.com/agents/windsurf): Add Scribase to Windsurf as a remote MCP server. - [VS Code](https://scribase.com/agents/vs-code): Connect VS Code agent mode with .vscode/mcp.json. - [MCP server](https://scribase.com/mcp): The hosted MCP endpoint, its tools and the confirm step every write takes. - [Frameworks](https://scribase.com/frameworks): What `npx scribase init` sets up in each framework. - [Temporary database for agents](https://scribase.com/use-cases/temporary-database-for-agents): `npx scribase init --temp --yes --json`: a real backend with no account, claimable to keep. - [A database per project for AI coding agents](https://scribase.com/use-cases/database-per-project-for-ai-agents): Each app an agent builds gets its own Postgres, Auth, Storage and Realtime. ## Getting Started - [Hosted quickstart](https://docs.scribase.com/docs/hosted.md): Sign up with no card, and get a live Scribase backend with its URL and key in about a minute; then manage it from code. - [Migrate from Supabase, Neon, Clerk or Resend](https://docs.scribase.com/docs/migrate.md): Copy-paste commands that move Postgres, users, storage and sending domains from Supabase, Neon, Clerk or Resend onto Scribase with the scribase-migrate CLI. - [Frameworks](https://docs.scribase.com/docs/frameworks.md): What `npx scribase init` does in each framework (Next.js, Expo, React Native, Vite, SvelteKit, Nuxt, Astro, Remix, Express, Flutter), the env variables it writes and the one edit where needed. - [Pricing and billing](https://docs.scribase.com/docs/pricing.md): 1 project free with no time limit (0.5 GB database, 1 GB storage, no card). Hobby at $5/project/month, Pro at $25/project/month, both billed monthly via Dodo for the most projects you had at once. Studio at $199/month flat after your third project. No project limit on any paid tier. 14 days of Hobby free to start. How the Free plan, the trial, the monthly invoice, canceling and temporary agent projects work. - [Getting Started](https://docs.scribase.com/docs/getting-started.md): Introduction to Scribase: one backend account for Postgres, auth, email, storage, realtime, functions and queues, built for coding agents. ## Build with AI agents - [Build with AI agents](https://docs.scribase.com/docs/agents.md): Let Claude Code, Codex, Cursor or Windsurf create and run your Scribase backend. Install the MCP server once, ask for a project, and the agent writes .env and the code. - [Connect your agent](https://docs.scribase.com/docs/agents/setup.md): One-line Scribase MCP setup for Claude Code, Cursor, Codex, Windsurf and Muse Code, the Claude Code plugin, and the local stdio server. - [Why you never need to paste a secret key](https://docs.scribase.com/docs/agents/no-secret-keys.md): Coding agents refuse pasted secret keys, and they are right. Sign an agent in with scribase login, MCP OAuth or a temporary project instead, and hand over only paste-safe scb_agt_ tokens. - [Tokens and safety](https://docs.scribase.com/docs/agents/safety.md): Which token to give a coding agent, how scopes, expiry, revocation and the audit log work, and the guardrails every Scribase mutation goes through. - [Branch per task](https://docs.scribase.com/docs/agents/branch-per-task.md): Give each agent task its own preview environment, a sanitized copy of production with a TTL, and merge it back only after you approve the diff. - [Temporary databases](https://docs.scribase.com/docs/agents/temporary-databases.md): Claimable temporary projects an agent creates with no account, `npx scribase init`, previews with a TTL and the MCP scratch branch. ## CLI Reference - [CLI Reference](https://docs.scribase.com/docs/cli.md): Reference for the scribase command-line interface. - [scribase doctor](https://docs.scribase.com/docs/cli/doctor.md): Check API connectivity and access token configuration. - [login, whoami and token](https://docs.scribase.com/docs/cli/login.md): Sign the scribase CLI in through the browser (device login), with a personal access token or the built-in password login, and manage your tokens. - [org, project and env](https://docs.scribase.com/docs/cli/resources.md): Create and read organizations, members, projects and environments with the scribase CLI, and poll the operations they start. - [backup and restore](https://docs.scribase.com/docs/cli/backup.md): Take, list and verify backups of an environment, and restore a backup into an environment, with the scribase CLI. - [apps switch](https://docs.scribase.com/docs/cli/apps.md): Print the URL and public key a mobile or web app needs to point supabase-js at a Scribase environment, plus the auth settings native sign-in depends on. - [gen types](https://docs.scribase.com/docs/cli/gen-types.md): Generate supabase-js TypeScript Database types from a live Scribase environment or any Postgres database. - [vercel env push](https://docs.scribase.com/docs/cli/vercel.md): Put a Scribase environment's URL and keys into the linked Vercel project for development, preview and production, with no dashboard, template or integration install. npx scribase init does it automatically. - [scribase dev](https://docs.scribase.com/docs/cli/dev.md): Start and manage the local Postgres and services stack. - [scribase migrate](https://docs.scribase.com/docs/cli/migrate.md): Run migrations against a remote Scribase environment. - [scribase db pull](https://docs.scribase.com/docs/cli/db-pull.md): Capture a remote database's schema as a local migration file. - [scribase branch](https://docs.scribase.com/docs/cli/branch.md): Manage local and remote database branches. - [scribase queue](https://docs.scribase.com/docs/cli/queue.md): Manage message queues in a Scribase environment. - [scribase import](https://docs.scribase.com/docs/cli/import.md): Import a schema from a URL or bring an existing Postgres project into Scribase. - [scribase export](https://docs.scribase.com/docs/cli/export.md): Export a runnable deployment bundle for a Scribase environment, then list, inspect and download it. - [scribase functions](https://docs.scribase.com/docs/cli/functions.md): Deploy, list, inspect, invoke, roll back and delete an environment's edge functions. - [scribase secrets](https://docs.scribase.com/docs/cli/secrets.md): Set, list and remove the secrets bound into an environment's edge functions. - [scribase schema](https://docs.scribase.com/docs/cli/schema.md): Compile and test Scribase schema files. - [scribase insights](https://docs.scribase.com/docs/cli/insights.md): Analyze a live Scribase environment for schema and policy improvements. ## Control API /v1 - [Control API /v1 Reference](https://docs.scribase.com/docs/api.md): The Scribase durable management API — resource reference. - [Access tokens & API keys](https://docs.scribase.com/docs/api/tokens.md): Create the credentials the CLI, the SDK, and CI use to call the Scribase control API. - [Device login (OAuth device flow)](https://docs.scribase.com/docs/api/device-login.md): The OAuth 2.0 Device Authorization Grant (RFC 8628) behind scribase login - how a CLI or coding agent gets a scoped agent token after a person approves it in the console. - [Environment API keys](https://docs.scribase.com/docs/api/environment-keys.md): The anon, service_role, publishable and secret keys an app uses to call an environment, how to read them, and how to rotate the JWT secret behind them. - [Organizations](https://docs.scribase.com/docs/api/organizations.md): Create and manage Scribase organizations. - [Projects](https://docs.scribase.com/docs/api/projects.md): Manage projects within a Scribase organization. - [Environments](https://docs.scribase.com/docs/api/environments.md): Create and manage Scribase Postgres environments. - [Backups & restore](https://docs.scribase.com/docs/api/backups.md): List, create, and restore verified backups through the control API, and read the evidence each one carries. - [Exports](https://docs.scribase.com/docs/api/exports.md): Assemble a runnable, signed bundle of an environment — schema, data, auth, storage, and policies — that boots elsewhere. - [Migrations](https://docs.scribase.com/docs/api/migrations.md): Run schema migrations against a Scribase environment via the API. - [Usage meters](https://docs.scribase.com/docs/api/usage-meters.md): Record and summarize per-customer, per-metric usage events directly on your project — a billing primitive Supabase and Neon don't ship. - [Product email](https://docs.scribase.com/docs/api/app-mail.md): Send transactional and product email to your app's own users (not sign-in email), through Scribase Mail or Rally Send, with its own delivery log and the mail capability slot. - [Branches](https://docs.scribase.com/docs/api/branches.md): Schema-level branching via the Scribase control API. - [Queues](https://docs.scribase.com/docs/api/queues.md): Durable message queues within Scribase environments. - [Imports](https://docs.scribase.com/docs/api/imports.md): Bring an existing Postgres project into a Scribase environment via the API. - [Operations](https://docs.scribase.com/docs/api/operations.md): Poll asynchronous operations in Scribase. - [Audit Events](https://docs.scribase.com/docs/api/audit.md): Query the organization audit log. - [Data-plane views](https://docs.scribase.com/docs/api/data-plane.md): Read-only control-API views into a live environment — auth, database, storage, functions, realtime, queues, metrics, insights, and logs. ## SDK (scribase-js) - [SDK (scribase-js)](https://docs.scribase.com/docs/sdk.md): The typed TypeScript client for the Scribase control-plane /v1 API — every resource, with working examples. ## Concepts - [Auth](https://docs.scribase.com/docs/concepts/auth.md): JWT-based authentication with social and SAML providers. - [Passkeys, MFA and SAML](https://docs.scribase.com/docs/concepts/auth-security.md): Turn on passkey sign-in, authenticator-app and security-key MFA, SAML single sign-on, an access token hook and an MFA verification attempt hook for the app built on an environment. - [Custom domains](https://docs.scribase.com/docs/concepts/custom-domains.md): Serve an environment's APIs from your own hostname, with a certificate issued for you. - [Storage](https://docs.scribase.com/docs/concepts/storage.md): Object storage with buckets, bucket policies and RLS. - [Realtime](https://docs.scribase.com/docs/concepts/realtime.md): WebSocket subscriptions over Postgres change data capture. - [Functions](https://docs.scribase.com/docs/concepts/functions.md): Edge functions: write, deploy, invoke, and run server-side TypeScript on the /functions/v1 path, which works with the Supabase client libraries. - [Branching](https://docs.scribase.com/docs/concepts/branching.md): Copy-on-write database branches for safe development and preview environments. - [Single sign-on (SSO)](https://docs.scribase.com/docs/concepts/sso.md): Sign in to the Scribase console through your organization's own OIDC or SAML 2.0 identity provider, verify email domains, and require SSO. - [Mail (Resend-compatible)](https://docs.scribase.com/docs/concepts/mail.md): Send email through Scribase Mail's Resend-compatible API, verify signed webhooks, and move an existing Resend integration over by changing one line. ## Decisions - [Decisions](https://docs.scribase.com/docs/decisions.md): Typed AI judgments (yes/no probability, category choice, numeric score) as a backend primitive, built on Umpirix — a Jev-compatible, open-source decision engine. Quickstart for self-hosting and for a hosted Jev-compatible key. ## Aegis Policy Compiler - [Aegis Policy Compiler](https://docs.scribase.com/docs/aegis.md): Compile-time RLS policy verification for Scribase schemas. ## Optional - [Capabilities](https://docs.scribase.com/docs/capabilities.md): What `npx scribase add ` turns on, Live or Arriving, each with a real proof. - [scribase judge](https://docs.scribase.com/docs/cli/judge.md): Label rows of your own table with a typed AI judgment (TypeSafe System One) and record the answer in an auto-created table — a database primitive Supabase and Neon cannot offer. ## scribase.com ### Comparisons & guides - [Supabase alternative with the same client and per-project pricing](https://scribase.com/supabase-alternative.md): Scribase runs the Supabase API (supabase-js, Auth, Storage, Realtime, REST, Functions) on hosted Postgres with instant branching, from $5 a project a month (Pro $25). No 2-project free-tier cap. - [Neon alternative with Auth, Storage and Realtime](https://scribase.com/neon-alternative.md): Scribase gives you Neon-style copy-on-write branches and scale to zero, plus the auth, storage and REST layer an app needs, for $25 per project a month. - [Firebase alternative on Postgres](https://scribase.com/firebase-alternative.md): Scribase is a Postgres backend with auth, storage, realtime and functions. The importer moves Firestore, Auth and Cloud Storage data, verifying every table. - [InstantDB alternative: where to move before Instant Cloud shuts down](https://scribase.com/instantdb-alternative.md): Instant Cloud shuts down August 31, 2027, after the Instant team joined OpenAI. The importer moves every namespace, $users and $files into Postgres, same ids. - [Render Postgres alternative with Auth, Storage and real branching](https://scribase.com/render-alternative.md): Render Postgres is a managed database with no Auth, Storage, Realtime or data API, and its preview databases start empty. Scribase adds all four plus copy-on-write branching, from $5 a project a month (Pro $25). - [Nhost alternative: one Postgres backend, no per-org add-on pricing](https://scribase.com/nhost-alternative.md): Nhost bundles Postgres, Hasura GraphQL, Auth, Storage and Functions per organization, with PITR as a $100 add-on and custom domains at $10/project/month on top. Scribase bundles the same pieces per project from $5, PITR included. - [Migrate from Supabase: schema, data, auth users and storage](https://scribase.com/migrate/supabase.md): Step-by-step: move a Supabase project to Scribase with one importer run, keep every password, copy storage, verify row counts, swap the supabase-js URL and key. - [Migrate from Neon: a one-run import, or pg_dump and the serverless driver](https://scribase.com/migrate/neon.md): Move a Neon Postgres database to Scribase: one importer run for schema, data, RLS and verification, or pg_dump and scribase migrate by hand. Keep @neondatabase/serverless, add auth and storage. - [Postgres branching: how copy-on-write database branches work](https://scribase.com/postgres-branching.md): How Postgres branching works: copy-on-write storage, branch from a point in time, masked data, expiry, schema diff and merge, with the scribase CLI commands. - [Resend alternative with the same API](https://scribase.com/resend-alternative.md): Scribase Mail answers the Resend API at mail-api.scribase.com: the resend SDK works with a new base URL. Free 3,000 emails a month, Pro $20, Scale $90. - [Self-hosted Resend alternative: what it takes, and the hosted path](https://scribase.com/self-hosted-resend.md): Thinking about self-hosting a Resend-compatible email API? What you have to run and keep running, and what a hosted Resend-compatible API gives you instead. Scribase Mail is hosted only today. - [Supabase project paused: restore it or export the data](https://scribase.com/supabase-project-paused.md): Why Supabase pauses free projects after 7 days of low activity, how to resume one, restore the backup after the window, and how to stop it recurring. - [Supabase keep-alive: a copy-paste workflow so free projects stop pausing](https://scribase.com/supabase-keep-alive.md): Supabase pauses free projects after about 7 days without database activity. Restore it in the dashboard, then add this self-contained GitHub Actions workflow: one real database read a day, retries, and a clear error if the project is already paused. - [Supabase egress limit exceeded: what it means and how to fix it](https://scribase.com/supabase-egress-limit-exceeded.md): What counts as Supabase egress, the quota on each plan, what the exceed_egress_quota 402 error means, how restrictions lift, and what cuts egress the most. - [Neon compute time limit reached and cold starts, explained](https://scribase.com/neon-compute-limit-cold-start.md): Why a Neon Free compute suspends when it runs out of CU-hours, how the 100 CU-hour allowance is counted, why the first query after idle is slower, and the fix. - [Supabase pg_dump: export a Supabase database the right way](https://scribase.com/supabase-pg-dump.md): Exact commands to export a Supabase database with supabase db dump or pg_dump: which connection string to use, why port 6543 fails, and how to restore the dump. - [Supabase RLS policy examples: multi-tenant, storage, realtime](https://scribase.com/supabase-rls-policy-examples.md): Row-level security patterns beyond a single owner check: multi-tenant access by organization, security-definer helpers, and the index that keeps policies fast. - [Supabase Storage limit, free tier and pricing, explained](https://scribase.com/supabase-storage-limit.md): How much file storage each Supabase plan includes, the max upload size per plan, the overage price, and what changes once you exceed the included amount. - [Supabase auth rate limit exceeded: every default limit and the fix](https://scribase.com/supabase-auth-rate-limit-exceeded.md): The default rate limits on Supabase Auth email, OTP, token refresh and sign-in, why the email one (2/hour) is hit almost immediately in dev, and the fix. - [Supabase "Database error saving new user": cause and fix](https://scribase.com/supabase-database-error-saving-new-user.md): Why signup fails with "Database error saving new user", how a broken handle_new_user trigger blocks every signup, where to find the real error, and the fix. - [Supabase Auth API error codes: what each one means](https://scribase.com/supabase-auth-error-codes.md): The Supabase Auth error code reference: weak_password, email_exists and more — what each means, and why error.code is the field to check, not the message. - [Resend domain verification failed: DNS records and the fix](https://scribase.com/resend-domain-verification-failed.md): What SPF, DKIM and the MX record need to look like for a domain to verify, the status values shown (pending, failed, temporary_failure), and the window. - [Resend rate limit exceeded (429): cause and fix](https://scribase.com/resend-rate-limit-exceeded.md): Resend's default API rate limit is 10 requests per second per team, across every API key. What triggers a 429, the headers it returns, and how to fix it. - [Neon branch limit exceeded: the per-plan cap and the fix](https://scribase.com/neon-branch-limit-exceeded.md): How many branches each Neon plan includes per project (10 Free/Launch, 25 Scale), why Free cannot create more, and what extra branches cost on a paid plan. - [Move a Supabase project to another Supabase project](https://scribase.com/supabase-migrate-to-another-project.md): Three ways to move a Supabase project to another one: Restore to another project, Project Transfers, or manual dump/restore — what each keeps. - [Firebase Realtime Database limits: connections, size, throughput](https://scribase.com/firebase-realtime-database-limits.md): Every hard limit on Firebase Realtime Database: connections per plan, 32-level nesting depth, write throughput, payload size, and read/query ceilings. - [Supabase vs Neon: what each one actually is, compared](https://scribase.com/supabase-vs-neon.md): Supabase is a backend platform, Neon is a Postgres engine. What each includes, how branching, project limits and pricing differ, and when to pick which. - [Vercel Postgres is deprecated: what actually happened and what to do](https://scribase.com/vercel-postgres-deprecated.md): Vercel Postgres is no longer available. Databases moved to Neon in December 2024; new projects use a Marketplace integration. What that means for your code. - [Scribase vs Supabase vs Neon: the direct comparison](https://scribase.com/scribase-vs-supabase-vs-neon.md): How Scribase actually differs from Supabase and Neon: API compatibility, branching, project limits and real pricing, checked against both vendors’ live pricing pages. - [Scribase vs Supabase: pricing, limits and supabase-js compatibility](https://scribase.com/scribase-vs-supabase.md): Scribase vs Supabase, side by side: free plan limits, what an idle project does, per-project pricing from $5, and a call-by-call supabase-js compatibility table. Checked 2026-11-16. - [Backend for Claude Code: database, sign-in and storage in one command](https://scribase.com/backend-for-claude-code.md): Give Claude Code a real backend it can set up by itself: Postgres, sign-in, file storage and realtime from one command, no account needed for 72 hours. Real output, checked 2026-11-16. - [One backend for database, auth, email and storage](https://scribase.com/one-backend.md): Replace a Postgres host, an auth service, an email API and a storage bucket with one Scribase account: Postgres, Auth, Storage, Realtime, Functions, queues and a Resend-compatible email API. What is one key today, and what is still a second one. - [Clerk alternative with the database included](https://scribase.com/clerk-alternative.md): Scribase Auth is sign-in built into your Postgres backend: email and password, magic link, OAuth, SAML and phone OTP, with the user id available in row level security. No per-user price. What it replaces in Clerk, and what it does not. - [Supabase free project limit: 2 projects, and how to get a third](https://scribase.com/supabase-free-project-limit.md): The Supabase Free plan allows 2 active projects across every organization you own or administer. What counts, why a second organization does not help, and the four real ways to run a third project, with prices. - [Backend as a service (BaaS) in 2026: 9 platforms compared](https://scribase.com/backend-as-a-service.md): What a backend as a service is, and how Supabase, Firebase, Appwrite, Convex, Nhost, PocketBase, Xano, Back4app and Scribase differ on database, free tier and price. Every figure read on the vendor's own pricing page. - [Free Postgres hosting in 2026: 5 free tiers compared](https://scribase.com/free-postgres-hosting.md): Neon, Supabase, Aiven, Render and Scribase free Postgres tiers side by side: storage, what happens when the database is idle, whether it expires, and what the next step costs. Read on each vendor's own page. - [Appwrite alternative on Postgres, priced per project](https://scribase.com/appwrite-alternative.md): Appwrite is an open-source backend with its own database API. Scribase is a hosted backend where every project is Postgres 17 with SQL, row level security, auth, storage and functions. Where each one fits, with sources. - [Convex alternative with SQL and no per-developer price](https://scribase.com/convex-alternative.md): Convex is a reactive backend where queries are TypeScript functions over its own document database, priced per developer on Professional. Scribase is Postgres with SQL, auth, storage and realtime, priced per project. Which fits, with sources. - [PocketBase alternative: hosted Postgres, no server to run](https://scribase.com/pocketbase-alternative.md): PocketBase is a single self-hosted binary on SQLite with no managed service. Scribase is a hosted backend on Postgres with auth, storage and realtime, one project free with no time limit. When to move and when to stay. - [Xano alternative with direct Postgres and per-project pricing](https://scribase.com/xano-alternative.md): Xano hides its Postgres database behind a no-code builder and starts paid plans at $85-99/month per workspace. Scribase is the same Postgres database with SQL, Auth, Storage and Realtime, from $5 a project a month. - [Back4app alternative on Postgres instead of MongoDB](https://scribase.com/back4app-alternative.md): Back4app runs Parse Server on MongoDB, priced per app from $15-400/month. Scribase is Postgres with SQL, Auth, Storage and Realtime, from $5 a project a month. - ["Remaining connection slots are reserved" on Supabase, explained](https://scribase.com/supabase-too-many-connections.md): Why Supabase Postgres runs out of connections, the exact max_connections and pooler limits per compute size, and the fix: switch your app to the pooler endpoint instead of the direct one. - [Neon "too many connections" / max_connections reached, explained](https://scribase.com/neon-too-many-connections.md): Why a Neon compute runs out of connections, the exact max_connections per compute size, and the three documented fixes: close idle connections, use the pooler, or upgrade compute. - [Prisma P1001: Can't reach database server, explained](https://scribase.com/prisma-p1001-cant-reach-database.md): What Prisma error P1001 means, the exact message template, how it differs from P1000/P1002/P1008/P1017, and the real causes: wrong host/port, Docker networking, firewalls, or a paused/suspended database. - [Auth0 alternative with the database already attached](https://scribase.com/auth0-alternative.md): Auth0 is sign-in only; you still run a database next to it. Scribase Auth is sign-in built into your own Postgres project, so there is no second vendor and no per-MAU price that climbs with growth. - [PlanetScale alternative on Postgres, with no 2026 free-tier cutoff](https://scribase.com/planetscale-alternative.md): PlanetScale retired its free Hobby plan in April 2024, and neither its original MySQL product nor the Postgres product it added later has a free plan. Scribase is hosted Postgres with a project free with no time limit, plus auth, storage, realtime and functions. - [Railway alternative with Auth, Storage and Realtime included](https://scribase.com/railway-alternative.md): Railway Postgres is a plain managed database with a standard connection string, no Auth, Storage or Realtime of its own. Scribase adds all three, and the Postgres data moves over in one command. - [Turso alternative on real Postgres, not SQLite](https://scribase.com/turso-alternative.md): Turso runs libSQL, a SQLite-compatible engine, not Postgres. Scribase is Postgres 17 per project with row level security, joins, extensions, auth, storage and realtime included. - [Upstash alternative: a relational database, not key-value](https://scribase.com/upstash-alternative.md): Upstash sells Redis, Vector, QStash, Workflow, Box and Blob: no Postgres product. Scribase is Postgres 17 per project with SQL, joins, row level security, auth, storage and realtime. - [Supabase vs Firebase: SQL and NoSQL backends, compared](https://scribase.com/supabase-vs-firebase.md): Supabase is a Postgres-based backend with SQL, RLS and a generated REST API. Firebase is Firestore, a document database, with its own security rules. What each includes, and when to pick which. - [Supabase vs Appwrite: Postgres and open-source self-hosting, compared](https://scribase.com/supabase-vs-appwrite.md): Supabase runs Postgres with SQL and row level security. Appwrite is open source with its own TablesDB API; a dedicated Postgres database is a separate paid add-on. What each includes, and when to pick which. - [ECONNREFUSED connecting to Postgres, explained](https://scribase.com/econnrefused-postgres.md): What Error: connect ECONNREFUSED means for a raw Postgres client (pg, postgres.js, knex, Sequelize), the real causes, and the fix — distinct from an ORM-level error like Prisma's P1001. - [Prisma P2024: connection pool timeout, explained](https://scribase.com/prisma-p2024-connection-pool-timeout.md): What Prisma error P2024 means, the exact message template, how it differs from P1001 and P2037, and the real causes: too small a pool, connection leaks, or a database connection limit below Prisma's own. - [Clerk "rate limit exceeded" (429), explained](https://scribase.com/clerk-rate-limit-exceeded.md): Clerk's documented rate limits: the Backend API ceiling (1000 req/10s production, 100 req/10s development, per Secret Key), the lower per-IP Frontend API limits on sign-in/sign-up, the 429 Retry-After header, and the fix. - [Neon free tier limits: storage, compute hours and what happens at the ceiling](https://scribase.com/neon-free-tier-limits.md): Neon's Free plan caps: 1 GB storage per project (20 GB per account), 100 compute hours a month, 10 branches per project, 5 GB of egress, and a 5-minute autosuspend you cannot turn off. What each one actually looks like when you hit it. - [Resend's free tier limit: 100 emails a day, 3,000 a month, 3 domains](https://scribase.com/resend-free-tier-limit.md): Resend's Free plan caps: 100 emails a day, 3,000 a month, 3 domains, 3 inboxes, 10,000 automation runs. What happens once you hit the daily cap versus the monthly one, and what the fix actually is. - [Clerk vs Supabase Auth: pricing metric, SSO cost and what each one is](https://scribase.com/clerk-vs-supabase-auth.md): Clerk bills Monthly Retained Users (a narrower metric than MAU); Supabase Auth bills plain MAU and ships inside a Postgres backend. Pricing, SSO cost and the real difference compared. - [Firebase Auth vs Supabase Auth: free MAU, SSO and phone auth cost compared](https://scribase.com/firebase-auth-vs-supabase-auth.md): Both give 50,000 free MAU, but Firebase Auth has no SQL database behind it and Supabase Auth ships inside Postgres. SSO, phone-auth availability and the real difference, compared. - [Firebase Blaze plan pricing: the free Firestore quota and why bills spike](https://scribase.com/firebase-blaze-plan-pricing.md): Firestore's free Blaze-plan quota is 50,000 reads, 20,000 writes and 20,000 deletes a day — per day, not per month, and reset daily, not pooled. Why a listing page or a bad query burns through it fast. - [Supabase Edge Function cold start: real boot-time numbers and what cut them](https://scribase.com/supabase-edge-function-cold-start.md): Supabase's own benchmarks: edge function boot time cut from 275ms to 25ms (supabase-js), 459ms to 57ms (OpenAI), 301ms to 83ms (Drizzle), by lazy integrity checking and a faster hash. What that means for your first request. - [Supabase Edge Function timeout: the 150s/400s wall-clock and 2s CPU limits](https://scribase.com/supabase-edge-function-timeout.md): Supabase Edge Functions cap wall-clock duration at 150s (Free) or 400s (paid), memory at 256MB, and actual CPU time per request at 2s. What each limit means and which one is actually failing your function. - [Postgres connection limit in serverless: why it happens and the pooler fix](https://scribase.com/postgres-connection-limit-serverless.md): A serverless function fleet can open one Postgres connection per invocation and exhaust max_connections in minutes. Why direct connections fail at scale and how a pooled (PgBouncer-style) connection string fixes it. - ["Prepared statement already exists" on Supabase, explained](https://scribase.com/supabase-prepared-statement-already-exists.md): Why Prisma, node-postgres or Drizzle throw "prepared statement ... already exists" against Supabase's pooler, Supabase's own documented fix per driver, and the one-command move if you're done debugging it. - [Clerk webhook "signature verification failed", explained](https://scribase.com/clerk-webhook-signature-verification-failed.md): Clerk signs user-sync webhooks with Svix. The verification failure almost always comes from the raw request body being altered before it reaches the check. The exact cause and the fix, plus the architecture that removes the webhook entirely. - [How to migrate just the Supabase auth.users table](https://scribase.com/supabase-migrate-auth-users.md): Supabase doesn't ship a one-click export for just auth.users. What the table actually holds (password hashes, identities, metadata), the manual pg_dump path, and the one command that moves it with logins intact. - [Clerk pricing per MAU: what it actually bills, and what MRU means](https://scribase.com/clerk-pricing-per-mau.md): Clerk bills by Monthly Retained Users (MRU), not a raw MAU count: Hobby and Pro both include 50,000 MRU per app, then $0.02-$0.012/mo per user past that. What MRU excludes that a plain MAU would count. - [Neon "reset from parent" deletes branch data — is that expected?](https://scribase.com/neon-branch-reset-data-loss.md): Yes: Neon's reset-from-parent completely replaces a branch's data and schema with its parent's current state, with no backup branch left behind. What to do before resetting, and how to keep what you'd otherwise lose. - [Supabase Realtime connection and message limits, explained](https://scribase.com/supabase-realtime-max-connections.md): Supabase Realtime caps concurrent connections (200 Free / 500 Pro), messages per second, channel joins per second and broadcast payload size. What hitting each one looks like and the fix. - [Resend webhook not firing: the real reasons, and how to check](https://scribase.com/resend-webhook-not-firing.md): Resend webhooks fail silently more often from an unverified endpoint or a non-2xx response than from Resend never sending. How to check delivery, the signature-verification requirement, and the fix. - ["JWT expired" / Clerk session token expired, explained](https://scribase.com/clerk-session-token-expired.md): Clerk session tokens are short-lived on purpose, with their exp claim set by a dashboard JWT template setting. The near-expired error almost always traces to a token read once and reused manually instead of re-fetched. The fix. - ["New row violates row-level security policy" on Supabase Storage](https://scribase.com/supabase-storage-rls-403.md): Supabase Storage refuses every upload without an RLS policy on storage.objects by default. The exact INSERT/SELECT policies needed, and why the error says "row" when you're uploading a file, not inserting a database row. - [Neon serverless driver timing out in an edge function, explained](https://scribase.com/neon-serverless-driver-timeout.md): @neondatabase/serverless defaults to HTTP for single queries and only supports WebSockets within one request's lifetime. Most edge-function timeouts trace back to using the wrong mode, or a WebSocket outliving its request. - [Supabase direct connection failing? It defaults to IPv6](https://scribase.com/supabase-ipv6-connection-error.md): Why ENETUNREACH, ECONNREFUSED or a plain timeout hit Supabase's direct connection string from an IPv4-only host or CI runner, Supabase's own documented fix, and the one-command move to a backend reachable over IPv4 by default. - ["Prepared statement already exists" on Neon, explained](https://scribase.com/neon-pgbouncer-prepared-statement-error.md): Why Prisma or another ORM throws a prepared-statement error against Neon's pooled connection string, Prisma's own documented pgbouncer=true setting, and the one-command move if you are done debugging it. - [Syncing Clerk users into your own database, done right](https://scribase.com/clerk-sync-users-to-database.md): Clerk's documented way to keep a users table current (the user.created/updated/deleted webhooks plus a one-time backfill), the gaps people hit building it by hand, and the one-command move to a backend where auth and your data already share one project. - [Resend emails landing in spam? Check these three records first](https://scribase.com/resend-emails-going-to-spam.md): Resend's own documented order of operations — a verified domain, then SPF and DKIM passing, then DMARC — the single most common reason mail still lands in spam after "verified," and the one-command move if you are self-hosting outbound mail instead. - [Hasura alternative that also hosts the Postgres](https://scribase.com/hasura-alternative.md): Hasura is a GraphQL layer you point at a Postgres you already run somewhere else; it does not host the database itself. Scribase is the Postgres and a REST API in one project, so there is no second host and no per-model price. - [pgvector query ignoring your index? Here is why](https://scribase.com/supabase-pgvector-index-not-used.md): Why a Supabase pgvector similarity search falls back to a sequential scan instead of using an ivfflat or hnsw index, the exact query shape and operator-class match pgvector requires, and the one-command move if you are evaluating a different Postgres. - [Neon autoscaling has a ceiling: what it is per plan](https://scribase.com/neon-autoscaling-cu-limit.md): Neon's documented autoscaling compute-unit ceiling per plan, why the Free plan cannot autoscale past 2 CU, and the one-command move if a traffic spike needs a higher cap than your plan allows. - [Clerk Organizations: what's free, what's the B2B add-on](https://scribase.com/clerk-organizations-pricing.md): What Clerk's Organizations feature includes free on every plan, what the B2B Authentication add-on costs and unlocks, and the per-MRO overage once the included amount is used. - [Resend's attachment size limit, and why it bites earlier than expected](https://scribase.com/resend-attachment-size-limit.md): Resend's documented 40 MB per-email cap (after Base64 encoding), the practical raw-file ceiling that actually gives you, and why emails with attachments cannot use the batch endpoint. - [Clerk vs Auth0: pricing and enterprise SSO cost, compared](https://scribase.com/clerk-vs-auth0.md): Clerk's free tier, Pro pricing and SSO add-on cost against Auth0's, both read from each vendor's current pricing pages, plus where Auth0 still leads on enterprise breadth. - [Scribase questions and answers](https://scribase.com/faq.md): Direct answers to the questions developers ask about Scribase: temporary databases for agents, giving Claude Code or Cursor a database, Supabase projects that pause, RLS left off, per-project pricing, and one backend for database, auth, email and storage. ### Use cases - [Use cases](https://scribase.com/use-cases.md): Real workflows Scribase is built for. - [A predictable backend for your SaaS](https://scribase.com/use-cases/saas-backend.md): Ship a multi-tenant SaaS on real Postgres with row-level security, then pay one per-project price instead of a metered bill that grows with every signup. - [A backend AI agents can operate safely](https://scribase.com/use-cases/ai-agents.md): Give agents a backend they can drive: CLI and OpenAPI parity for every action, idempotency keys, operation IDs, and an approval model for sensitive changes. - [A Postgres backend for mobile apps](https://scribase.com/use-cases/mobile-app-backend.md): Back your mobile app with Postgres, auth, storage, and realtime through the client SDK you already know, with a per-project price as you grow. - [Full preview environments per pull request](https://scribase.com/use-cases/preview-environments.md): Give every pull request a full, isolated environment — not just a database branch — that is secret-scrubbed and automatically swept when the branch closes. - [Move a Supabase or Firebase project without resets](https://scribase.com/use-cases/bring-an-existing-project.md): Move an existing hosted Postgres project into Scribase with schema, data, auth users, storage, and policies intact — no client rewrite, and a real export path. - [A temporary database for coding agents, no account](https://scribase.com/use-cases/temporary-database-for-agents.md): npx scribase init --temp gives a coding agent a real backend: Postgres, auth, storage, realtime, no account and no pasted key. Lives 72 hours; claim to keep it. - [A database per project for AI coding agents](https://scribase.com/use-cases/database-per-project-for-ai-agents.md): Give each app a coding agent builds its own Scribase project: Postgres, auth, storage and realtime, created by npx scribase init, from $5 a project a month. ### For teams - [Scribase for your team](https://scribase.com/for.md): Audience-specific pages. - [Scribase for SaaS teams](https://scribase.com/for/saas.md): Scribase for SaaS: multi-tenant Postgres with row-level security, preview environments per pull request, and a flat price, not a bill that grows per signup. - [Scribase for AI apps](https://scribase.com/for/ai-app.md): Scribase for AI apps: real Postgres for embeddings, plus an agent control surface where every mutation has a CLI flag, an API op and an approval gate. - [Scribase for mobile apps](https://scribase.com/for/mobile-backend.md): Scribase for mobile: auth, file storage and realtime on real Postgres, the client SDK you already know, relational data, and a flat price per project. - [Scribase for internal tools](https://scribase.com/for/internal-tools.md): Scribase for internal tools: an instant REST API over your schema, built-in auth and row-level security, plus export so a tool can graduate to its own stack. - [A backend for Lovable apps](https://scribase.com/for/lovable-backend.md): Lovable apps run on a standard Postgres backend. Scribase serves the same Auth, REST, Storage and Realtime API: change two env vars, flat price, full export. - [A backend your coding agent can operate: Scribase for Cursor](https://scribase.com/for/cursor-backend.md): Scribase gives Cursor, Claude Code and other MCP clients a typed backend: preview branch, apply a migration, run a policy test, then merge with approval. - [A backend for Bolt and v0 apps that you can keep](https://scribase.com/for/bolt-backend.md): Bolt and v0 generate apps using a standard JS client for data and auth. Scribase serves the same API — generated code runs on it with a new URL and key. - [Scribase for Expo and React Native apps](https://scribase.com/for/expo-backend.md): Scribase for Expo: the JavaScript client with AsyncStorage or SecureStore, Apple and Google sign-in via PKCE, storage for uploads, and realtime on Postgres. ### Guides - [Guides](https://scribase.com/guides.md): Task-oriented how-tos. - [Connect your existing client to Scribase](https://scribase.com/guides/connect-your-client.md): Point an existing app at Scribase by changing two environment variables: the client, environment config, and verifying the connection. - [Write your first row-level security policies](https://scribase.com/guides/write-row-level-security-policies.md): A hands-on guide to Postgres row-level security on Scribase: enable RLS, write a per-user policy, add tenant isolation, keep policies fast. - [Give every pull request a preview database](https://scribase.com/guides/preview-databases-per-pull-request.md): A guide to preview environments per pull request: create a TTL-bound preview with the CLI, link it to the PR, apply migrations, let the TTL sweep it. - [Guide: import an existing project step by step](https://scribase.com/guides/bring-an-existing-project.md): Move an existing hosted Postgres project into Scribase with scribase import: dry run first, then schema, data, auth users, storage and policies. - [Deploy an edge function on Scribase](https://scribase.com/guides/deploy-an-edge-function.md): A guide to shipping server-side logic on the /functions/v1 path: write a function, deploy it through the control API or the scribase SDK, and smoke-test it. - [Common table expression (CTE) in SQL: a Postgres guide](https://scribase.com/guides/sql-cte.md): A common table expression (CTE) is a named, temporary result set you define with a WITH clause and reference like a table. Postgres examples, WITH RECURSIVE, and performance notes. - [SQL subquery: correlated vs uncorrelated, with Postgres examples](https://scribase.com/guides/sql-subquery.md): A SQL subquery is a SELECT nested inside another query. Postgres examples of correlated and uncorrelated subqueries, where each appears in a statement, and performance notes. - [Postgres upsert: INSERT ... ON CONFLICT, with examples](https://scribase.com/guides/sql-upsert.md): An upsert in Postgres is INSERT ... ON CONFLICT (columns) DO UPDATE or DO NOTHING. Basic and multi-row examples, excluded, partial-index conflicts, and the client-library equivalent. - [Querying JSONB in Postgres: operators, indexing, and examples](https://scribase.com/guides/postgres-jsonb-query.md): Postgres JSONB query examples: ->, ->>, #>>, @>, containment, jsonb_array_elements, and when to add a GIN index for JSONB containment queries. - [Postgres full-text search: tsvector, tsquery, and ranking](https://scribase.com/guides/postgres-full-text-search.md): Postgres full-text search without an external engine: to_tsvector and to_tsquery, a generated tsvector column, a GIN index, and ranking results with ts_rank. ### Frameworks - [Frameworks](https://scribase.com/frameworks.md): Add a backend with one command. - [Add a backend to Next.js with one command](https://scribase.com/frameworks/nextjs.md): Give a Next.js app Postgres, auth, storage and realtime with `npx scribase init`: it writes .env.local, installs supabase-js and adds lib/supabase.ts. - [Add a backend to an Expo app with one command](https://scribase.com/frameworks/expo.md): Give an Expo app Postgres, auth, storage and realtime with `npx scribase init`: EXPO_PUBLIC_ variables, lib/supabase.ts added. No service key lands in the app. - [Add a backend to a React Native app with one command](https://scribase.com/frameworks/react-native.md): Add Postgres, auth and storage to a bare React Native CLI app: `npx scribase init` provisions the backend and writes the client, no Expo needed. - [Add a backend to a Vite React app with one command](https://scribase.com/frameworks/vite-react.md): Give a Vite + React app Postgres, auth, storage and realtime with `npx scribase init`: VITE_ variables, supabase-js installed, src/lib/supabase.ts added. - [Add a backend to SvelteKit with one command](https://scribase.com/frameworks/sveltekit.md): Give a SvelteKit app Postgres, auth, storage and realtime with `npx scribase init`: it writes VITE_ variables and puts the client in src/lib as $lib/supabase. - [Add a backend to Nuxt with one command](https://scribase.com/frameworks/nuxt.md): Give a Nuxt app Postgres, auth, storage and realtime: `npx scribase init` provisions the backend and writes .env; one edit exposes the keys server and client. - [Add a backend to Astro with one command](https://scribase.com/frameworks/astro.md): Give an Astro site a Postgres database, auth and storage: `npx scribase init` provisions it and writes .env; one edit switches to import.meta.env. - [Add a backend to Remix or React Router with one command](https://scribase.com/frameworks/remix.md): Give a Remix or React Router v7 app Postgres, auth, storage and realtime with `npx scribase init`: VITE_ variables written, a client ready for loaders. - [Add a database to a Node.js or Express API with one command](https://scribase.com/frameworks/express.md): Give a Node.js or Express API a Postgres database with auth and storage: `npx scribase init` writes .env with the URL and keys, installs supabase-js. - [Add a backend to a Flutter app](https://scribase.com/frameworks/flutter.md): Give a Flutter app a Postgres database, auth and storage with supabase_flutter: create the project in one click, pass the URL and key with --dart-define. - [Add a backend to a Swift app](https://scribase.com/frameworks/swift.md): Give an iOS or macOS app a Postgres database, auth, storage and realtime with supabase-swift, and generate Codable types for your tables with one command. - [Add a backend to a Kotlin or Android app](https://scribase.com/frameworks/kotlin.md): Give an Android or Kotlin app a Postgres database, auth, storage and realtime with supabase-kt, and generate @Serializable classes with one command. - [Add a backend to a Python app](https://scribase.com/frameworks/python.md): Give a Python service, script or notebook a Postgres database, auth, storage and realtime with supabase-py, and generate TypedDict shapes with one command. ### Coding agents - [Coding agents](https://scribase.com/agents.md): Connect your coding agent. - [Give Claude Code a real backend: Postgres, auth and storage](https://scribase.com/agents/claude-code.md): Connect Claude Code to Scribase over MCP in one command, add the safe-change skill, and let it create the database, sign-in and storage for your app. - [Give Codex a real backend: Postgres, auth and storage](https://scribase.com/agents/codex.md): Add Scribase to the Codex CLI as a remote MCP server, put the backend rules in AGENTS.md, and let Codex create the database, sign-in and storage for your app. - [Give Cursor a real backend: Postgres, auth and storage](https://scribase.com/agents/cursor.md): Connect Cursor to Scribase with .cursor/mcp.json, add a project rule, and let the agent create the database, sign-in and storage for your app. - [Give Windsurf a real backend: Postgres, auth and storage](https://scribase.com/agents/windsurf.md): Add Scribase to Windsurf as a remote MCP server and let Cascade create the database, sign-in and storage for your app. - [Give VS Code agent mode a real backend: Postgres, auth and storage](https://scribase.com/agents/vs-code.md): Add Scribase to VS Code with .vscode/mcp.json and let agent mode create the database, sign-in and storage for your app. ### Extensions - [Postgres extensions](https://scribase.com/extensions.md): Every Postgres extension available. - [vector — Postgres extension](https://scribase.com/extensions/vector.md): Store embeddings and find the nearest ones (pgvector, HNSW and IVFFlat indexes). - [pg_graphql — Postgres extension](https://scribase.com/extensions/pg_graphql.md): A GraphQL API over your tables at /graphql/v1. - [pg_net — Postgres extension](https://scribase.com/extensions/pg_net.md): Send HTTP requests from SQL, triggers and cron jobs. - [pg_jsonschema — Postgres extension](https://scribase.com/extensions/pg_jsonschema.md): Check json and jsonb values against a JSON Schema in a CHECK constraint. - [pgmq — Postgres extension](https://scribase.com/extensions/pgmq.md): Message queues in SQL: send, read with a visibility timeout, archive. - [pg_cron — Postgres extension](https://scribase.com/extensions/pg_cron.md): Run SQL on a schedule written in cron syntax. - [pg_partman — Postgres extension](https://scribase.com/extensions/pg_partman.md): Create and drop time or number partitions for you. - [supabase_vault — Postgres extension](https://scribase.com/extensions/supabase_vault.md): Store secrets encrypted with a key only the server can read. - [pgcrypto — Postgres extension](https://scribase.com/extensions/pgcrypto.md): Hashing, password hashing and encryption functions. - [pgaudit — Postgres extension](https://scribase.com/extensions/pgaudit.md): Write detailed audit lines for the statements you choose. - [pg_stat_statements — Postgres extension](https://scribase.com/extensions/pg_stat_statements.md): Timing and call counts for every query shape (Insights reads it). - [hypopg — Postgres extension](https://scribase.com/extensions/hypopg.md): Try an index without building it, to see if the planner would use it. - [index_advisor — Postgres extension](https://scribase.com/extensions/index_advisor.md): Suggest the indexes that would speed up a query. - [pg_repack — Postgres extension](https://scribase.com/extensions/pg_repack.md): Remove table and index bloat without long locks. - [pg_trgm — Postgres extension](https://scribase.com/extensions/pg_trgm.md): Fuzzy text search and fast LIKE and ILIKE with trigram indexes. - [unaccent — Postgres extension](https://scribase.com/extensions/unaccent.md): Remove accents from text for search. - [fuzzystrmatch — Postgres extension](https://scribase.com/extensions/fuzzystrmatch.md): Soundex, Metaphone and Levenshtein distance. - [btree_gin — Postgres extension](https://scribase.com/extensions/btree_gin.md): GIN indexes over plain columns, for mixed indexes. - [btree_gist — Postgres extension](https://scribase.com/extensions/btree_gist.md): GiST indexes over plain columns, for exclusion constraints. - [uuid-ossp — Postgres extension](https://scribase.com/extensions/uuid-ossp.md): UUID generators (v1 to v5). - [pg_uuidv7 — Postgres extension](https://scribase.com/extensions/pg_uuidv7.md): Time-ordered UUID v7 values. - [citext — Postgres extension](https://scribase.com/extensions/citext.md): Case-insensitive text, for emails and user names. - [hstore — Postgres extension](https://scribase.com/extensions/hstore.md): Key-value pairs in one column. - [ltree — Postgres extension](https://scribase.com/extensions/ltree.md): Tree paths such as categories and org charts. - [intarray — Postgres extension](https://scribase.com/extensions/intarray.md): Functions and indexes for integer arrays. - [cube — Postgres extension](https://scribase.com/extensions/cube.md): Multi-dimensional points and boxes. - [tablefunc — Postgres extension](https://scribase.com/extensions/tablefunc.md): Crosstab and other table functions. - [plpgsql_check — Postgres extension](https://scribase.com/extensions/plpgsql_check.md): Lint PL/pgSQL functions before they run. ### Postgres errors - [Postgres error codes](https://scribase.com/postgres-errors.md): Causes and fixes for common SQLSTATE errors. - [Postgres error 08006: connection failure / server closed the connection unexpectedly](https://scribase.com/postgres-errors/08006.md): The connection to the server broke while it was in use: the server process ended, the network dropped, or an idle connection was cut mid-session. - [Postgres error 08001: could not connect to server / connection refused](https://scribase.com/postgres-errors/08001.md): The client could not open a connection at all, before any authentication happened. - [Postgres error 0A000: feature not supported](https://scribase.com/postgres-errors/0a000.md): The statement asks for something Postgres (or this server configuration) does not implement. - [Postgres error 21000: more than one row returned by a subquery used as an expression / ON CONFLICT DO UPDATE command cannot affect row a second time](https://scribase.com/postgres-errors/21000.md): A cardinality violation: something expected at most one row got several. - [Postgres error 22001: value too long for type character varying(n)](https://scribase.com/postgres-errors/22001.md): A string is longer than the column allows. - [Postgres error 22003: integer out of range / numeric field overflow](https://scribase.com/postgres-errors/22003.md): A number does not fit the column or expression type. - [Postgres error 22007: invalid input syntax for type timestamp / date](https://scribase.com/postgres-errors/22007.md): Text could not be parsed as a date or time. - [Postgres error 22008: date/time field value out of range](https://scribase.com/postgres-errors/22008.md): The text parsed but the value is impossible, such as month 13 or 30 February, or day and month were swapped. - [Postgres error 22012: division by zero](https://scribase.com/postgres-errors/22012.md): An expression divided by zero. - [Postgres error 22P02: invalid input syntax for type uuid / integer](https://scribase.com/postgres-errors/22p02.md): A text value could not be converted to the column or parameter type. - [Postgres error 23502: null value in column "x" of relation "y" violates not-null constraint](https://scribase.com/postgres-errors/23502.md): An INSERT or UPDATE left a NOT NULL column empty. - [Postgres error 23503: insert or update on table "x" violates foreign key constraint "x_y_fkey"](https://scribase.com/postgres-errors/23503.md): A row points at a parent that does not exist, or a delete would leave children pointing at nothing. - [Postgres error 23505: duplicate key value violates unique constraint "x_pkey"](https://scribase.com/postgres-errors/23505.md): The row would duplicate a value that a primary key or unique index requires to be unique. - [Postgres error 23514: new row for relation "x" violates check constraint "y"](https://scribase.com/postgres-errors/23514.md): A row failed a CHECK constraint. - [Postgres error 23P01: conflicting key value violates exclusion constraint](https://scribase.com/postgres-errors/23p01.md): A row overlaps another row in a way an exclusion constraint forbids, such as two bookings for the same room at the same time. - [Postgres error 25P02: current transaction is aborted, commands ignored until end of transaction block](https://scribase.com/postgres-errors/25p02.md): An earlier statement in this transaction failed, and Postgres refuses everything else until the transaction ends. - [Postgres error 25006: cannot execute INSERT in a read-only transaction](https://scribase.com/postgres-errors/25006.md): A write was sent to a connection or transaction that only allows reads. - [Postgres error 28P01: password authentication failed for user "x"](https://scribase.com/postgres-errors/28p01.md): The server rejected the password for that role. - [Postgres error 28000: no pg_hba.conf entry for host / role "x" is not permitted to log in](https://scribase.com/postgres-errors/28000.md): The server does not allow this role to connect from this address or with this method. - [Postgres error 3D000: database "x" does not exist](https://scribase.com/postgres-errors/3d000.md): The connection names a database that is not on this server. - [Postgres error 3F000: schema "x" does not exist](https://scribase.com/postgres-errors/3f000.md): A statement or search_path names a schema that has not been created. - [Postgres error 40001: could not serialize access due to concurrent update](https://scribase.com/postgres-errors/40001.md): A serialization failure: under REPEATABLE READ or SERIALIZABLE isolation, this transaction conflicted with another and was rolled back. - [Postgres error 40P01: deadlock detected](https://scribase.com/postgres-errors/40p01.md): Two or more transactions each held a lock the other needed. Postgres cancelled one of them to break the cycle. - [Postgres error 42501: permission denied for table x / new row violates row-level security policy for table "x"](https://scribase.com/postgres-errors/42501.md): The current role is not allowed to do this: either it lacks a privilege (GRANT), or a row level security policy rejected the row. - [Postgres error 42601: syntax error at or near "x"](https://scribase.com/postgres-errors/42601.md): The SQL text could not be parsed. - [Postgres error 42P01: relation "x" does not exist](https://scribase.com/postgres-errors/42p01.md): The table or view name could not be found on the current search_path. - [Postgres error 42P07: relation "x" already exists](https://scribase.com/postgres-errors/42p07.md): A CREATE statement names a table, index, view or sequence that is already there. - [Postgres error 42P05: prepared statement "s0" already exists](https://scribase.com/postgres-errors/42p05.md): The driver tried to create a named prepared statement that already exists on this server connection. - [Postgres error 26000: prepared statement "x" does not exist](https://scribase.com/postgres-errors/26000.md): The driver tried to execute a named prepared statement that this server connection never saw. - [Postgres error 42703: column "x" does not exist](https://scribase.com/postgres-errors/42703.md): A query names a column the table does not have. - [Postgres error 42702: column reference "x" is ambiguous](https://scribase.com/postgres-errors/42702.md): The same column name exists in more than one table in the query, or a PL/pgSQL variable has the same name as a column. - [Postgres error 42704: type "x" does not exist / role "x" does not exist](https://scribase.com/postgres-errors/42704.md): A referenced object that is not a table or column (a type, role, collation or extension object) cannot be found. - [Postgres error 42710: policy "x" for table "y" already exists / role "x" already exists](https://scribase.com/postgres-errors/42710.md): A CREATE statement names an object (policy, role, trigger, constraint) that already exists. - [Postgres error 42804: column "x" is of type integer but expression is of type text](https://scribase.com/postgres-errors/42804.md): A datatype mismatch: the value type does not match the target and Postgres will not convert it implicitly. - [Postgres error 42803: column "x" must appear in the GROUP BY clause or be used in an aggregate function](https://scribase.com/postgres-errors/42803.md): A grouped query selects a column that is neither grouped nor aggregated. - [Postgres error 42883: function x(unknown) does not exist](https://scribase.com/postgres-errors/42883.md): No function with that name accepts the argument types given. - [Postgres error 42P10: there is no unique or exclusion constraint matching the ON CONFLICT specification](https://scribase.com/postgres-errors/42p10.md): An upsert names conflict columns that do not have a unique index or constraint. - [Postgres error 42P17: infinite recursion detected in policy for relation "x"](https://scribase.com/postgres-errors/42p17.md): A row level security policy on a table queries the same table (directly or through another policy), so checking the policy triggers the policy again. - [Postgres error 53300: sorry, too many clients already / remaining connection slots are reserved](https://scribase.com/postgres-errors/53300.md): The server has reached max_connections and refused a new connection. - [Postgres error 53100: could not extend file: No space left on device](https://scribase.com/postgres-errors/53100.md): The disk holding the database is full. - [Postgres error 53200: out of memory](https://scribase.com/postgres-errors/53200.md): A backend could not allocate memory for the query. - [Postgres error 54000: index row size exceeds btree version 4 maximum 2704 for index](https://scribase.com/postgres-errors/54000.md): A program limit was exceeded; most often a value too large for a B-tree index entry. - [Postgres error 55P03: could not obtain lock on row in relation "x"](https://scribase.com/postgres-errors/55p03.md): A lock was not available and the statement was told not to wait (NOWAIT) or hit lock_timeout. - [Postgres error 55000: object not in prerequisite state](https://scribase.com/postgres-errors/55000.md): The object is not in the state the command needs — for example a sequence used before nextval, or a replication slot that is not ready. - [Postgres error 57014: canceling statement due to statement timeout](https://scribase.com/postgres-errors/57014.md): The statement ran longer than statement_timeout (or was cancelled by the user) and was stopped. - [Postgres error 57P01: terminating connection due to administrator command](https://scribase.com/postgres-errors/57p01.md): The server terminated this session, usually during a restart, a failover, scaling, or pg_terminate_backend. - [Postgres error P0001: raise_exception (a RAISE EXCEPTION in PL/pgSQL)](https://scribase.com/postgres-errors/p0001.md): Your own function or trigger raised an error on purpose with RAISE EXCEPTION. - [Postgres error XX000: internal error](https://scribase.com/postgres-errors/xx000.md): Postgres hit a condition it considers a bug or an unexpected state, such as a cache lookup failure or corrupted data. ### Migrate - [Migrate to Scribase](https://scribase.com/migrate.md): Move an existing project to Scribase. ### Product - [Features](https://scribase.com/features.md): Every capability Scribase ships. - [Security](https://scribase.com/security.md): Real security practices, stated honestly. - [Roadmap](https://scribase.com/roadmap.md): The public Scribase roadmap. - [Pricing](https://scribase.com/pricing.md): Scribase pricing. - [Platform status](https://scribase.com/status.md): Every component that makes up Scribase. - [Contact](https://scribase.com/contact.md): Reach Scribase. - [Enterprise](https://scribase.com/enterprise.md): SSO, audit logs, BYOC, DPA. - [Deploy your own Scribase](https://scribase.com/self-hosted.md): BYOC self-hosted deploy paths. - [Live demo](https://scribase.com/demo.md): Run a real query, create a real branch. ### Decisions - [Scribase Decisions](https://scribase.com/decisions.md): Typed AI judgments as a backend primitive, built on OpenJev. ### Mail - [Scribase Mail](https://scribase.com/mail.md): Resend-compatible email API. - [Migrate from Resend](https://scribase.com/mail/migrate-from-resend.md): Switch from Resend to Scribase Mail. ### Toolgate - [Scribase Toolgate](https://scribase.com/toolgate.md): One API key for every AI tool, priced before it runs. ### Railyard - [Railyard](https://scribase.com/railyard.md): Cookieless analytics and an LLM gateway. ### Home - [Scribase](https://scribase.com/index.md): One backend for your app: database, sign-in, email, files, push and purchases in one account, one key, one command. 1 project free with no time limit, from $5 a project when you grow, and yours to export. ### Agents - [Build with AI agents](https://scribase.com/ai.md): The backend your AI agent sets up for you. - [MCP server](https://scribase.com/mcp.md): The Scribase MCP server and its 98 tools. - [Ten one-prompt backends](https://scribase.com/agents/recipes.md): Ten real agent prompts, from an empty folder to a working feature. ### Tools - [Postgres tools](https://scribase.com/tools.md): Free in-browser Postgres tools. - [Connection string checker](https://scribase.com/tools/connection-string.md): Pooler or direct, 5432 or 6543, sslmode, user format, matching pg_dump/psql commands. - [Export database schema](https://scribase.com/tools/export-database.md): Paste a connection string, get a downloadable schema.sql plus a runnable docker-compose and Kubernetes stack. - [Cost comparator vs Supabase and Neon](https://scribase.com/tools/cost-comparator.md): Enter MAU, storage and egress and see Supabase's bill, Neon's CU-hour bill, and Scribase's flat price, side by side. - [Migration lock-safety checker](https://scribase.com/tools/migration-lint.md): Paste migration SQL and see which lock each statement takes and whether a new table ships without RLS. - [RLS policy generator](https://scribase.com/tools/rls-policy-generator.md): Pick an access pattern and get CREATE POLICY SQL for your table and column names. - [RLS checker](https://scribase.com/tools/rls-checker.md): Paste schema SQL and see tables with RLS off, policies that pass every row, and views that skip RLS, each with fix SQL. - [Supabase dump check](https://scribase.com/tools/supabase-dump-check.md): Paste a Supabase pg_dump and see every dependency on Supabase itself, what fails on plain Postgres, and what the Scribase importer does with it. ### Docs - [Documentation](https://scribase.com/docs.md): Operator, CLI, and API docs. - [Control API](https://scribase.com/docs/control-api.md): The authenticated /v1 management API over the durable Postgres executor. - [CLI](https://scribase.com/docs/cli.md): scribase — one binary for humans and agents, every mutation returns an operation ID. - [Backups & restore](https://scribase.com/docs/backups.md): Portable logical backups with SHA-256 evidence and verified restore. - [Operator](https://scribase.com/docs/operator.md): Running the control plane, BYOC, and the least-privilege role model. ### Blog - [Blog](https://scribase.com/blog.md): Scribase blog: product decisions and how they were made. - [SQL UNION vs UNION ALL in Postgres, with examples](https://scribase.com/blog/sql-union.md): UNION removes duplicate rows; UNION ALL keeps them and is faster. Column rules, ORDER BY and LIMIT placement, INTERSECT and EXCEPT in Postgres. - [ORDER BY DESC in Postgres: NULLs, ties and indexes](https://scribase.com/blog/desc-order.md): Sort newest first in Postgres without surprises: where NULLs land, why you need a tie-breaker, how one index serves both directions, and keyset pagination. - [SQL subquery in Postgres: types, examples and safe testing](https://scribase.com/blog/sql-subquery.md): Scalar, IN, EXISTS and derived-table subqueries in Postgres, when a join or a CTE is the better tool, and how to test the SQL on a database branch. - [Common table expressions (CTE) in Postgres: WITH, by example](https://scribase.com/blog/common-table-expression.md): How WITH queries work in Postgres: chained CTEs, MATERIALIZED vs NOT MATERIALIZED, recursive CTEs, and reviewing the SQL on a database branch. - [Why Supabase pauses free projects, and three ways to stop it](https://scribase.com/blog/why-supabase-pauses-free-projects-and-three-ways-to-stop-it.md): What Supabase's docs actually say about the 7-day pause, how to restore a paused project, and three fixes: a free GitHub Action, the Pro plan, or a backend that scales to zero instead of pausing. - [16,326 exposed Supabase databases: how RLS gets turned off by AI coding tools, and how to catch it before deploy](https://scribase.com/blog/exposed-supabase-databases-how-rls-gets-turned-off-and-how-to-catch-it.md): Why a public table with row level security off is readable by anyone holding your anon key, the four ways generated code switches it off, a SQL query and a free linter that catch it, and what a backend that refuses the migration looks like. - [Why flat pricing is a product decision, not a discount](https://scribase.com/blog/why-flat-pricing-is-a-product-decision.md): Metered billing is not just expensive — it changes how you use your own database. Flat pricing with hard caps is a different product, built deliberately. - [Export is a feature, not a support ticket](https://scribase.com/blog/export-is-a-feature-not-a-support-ticket.md): A database dump is not your application. Real portability means schema, data, storage bytes, auth users, and policies — in a bundle that boots elsewhere. - [A restore is only as good as its proof](https://scribase.com/blog/a-restore-is-only-as-good-as-its-proof.md): Backups that have never been restored are hope, not insurance. Every restore ships evidence: row-count parity, checksums, policy parity, and a login proof. - [Moving an existing project in without a password reset](https://scribase.com/blog/moving-a-project-in-without-a-password-reset.md): Existing projects need an importer that preserves user IDs. Here is how scribase import moves a live project in. - [What 'agent-native' actually means](https://scribase.com/blog/what-agent-native-actually-means.md): Bolting an MCP endpoint onto a dashboard-first product does not make it agent-native. It means every mutation is a typed, idempotent, approvable operation. - [We do not pause your project for being idle](https://scribase.com/blog/we-do-not-pause-your-project.md): A project that pauses when nobody is looking is a demo, not a deployment. Ours scales to zero and wakes on the next request, with nothing to restore. - [Preview branches should be included, not metered](https://scribase.com/blog/preview-branches-should-be-included.md): A preview environment per pull request is now standard practice. Charging ~$9.60/mo for each one running turns a good habit into a line item you ration. ### Changelog - [Changelog](https://scribase.com/changelog.md): What shipped, in order. - [0.8.0 — Console single sign-on, scribase db pull, and docs search](https://scribase.com/changelog/0-8-0-sso-db-pull-docs-search.md): Console single sign-on, scribase db pull, and docs search - [0.7.0 — Firebase and InstantDB importers, and table-by-table proof](https://scribase.com/changelog/0-7-0-migrate-and-new-pricing.md): Firebase and InstantDB importers, and table-by-table proof - [0.6.0 — Project import, dry-run first](https://scribase.com/changelog/0-6-0-project-import.md): Project import, dry-run first - [0.5.1 — Flat pricing, published](https://scribase.com/changelog/0-5-1-flat-pricing-and-www.md): Flat pricing, published - [0.5.0 — Export bundles that boot elsewhere](https://scribase.com/changelog/0-5-0-export-bundles.md): Export bundles that boot elsewhere - [0.4.0 — Preview environments, TTL-swept and secret-scrubbed](https://scribase.com/changelog/0-4-0-previews-and-ttl.md): Preview environments, TTL-swept and secret-scrubbed - [0.3.0 — Verified restore, with evidence in the console](https://scribase.com/changelog/0-3-0-verified-restore-evidence.md): Verified restore, with evidence in the console - [0.2.0 — Backup API and the scribase-backup tool, end to end](https://scribase.com/changelog/0-2-0-backup-api-and-cli.md): Backup API and the scribase-backup tool, end to end - [0.1.0 — The control plane, in git and versioned](https://scribase.com/changelog/0-1-0-control-plane.md): The control plane, in git and versioned ### Legal - [Privacy Policy](https://scribase.com/legal/privacy.md): How Scribase handles personal data as a controller: what we collect, why, the legal bases, retention, sub-processors, and your rights. - [Terms of Service](https://scribase.com/legal/terms.md): The Terms of Service for Scribase: Postgres, auth, storage, realtime and functions. Covers accounts, acceptable use, plans and billing, data ownership and export. - [Acceptable Use Policy](https://scribase.com/legal/acceptable-use.md): What you may and may not do with Scribase: no spam, malware, phishing, illegal content or abuse of the email the platform sends. How we enforce it. - [Data Processing Agreement](https://scribase.com/legal/dpa.md): The Scribase Data Processing Agreement: how we process personal data in your projects as processor under GDPR — roles, security, sub-processors, deletion. - [Sub-processors](https://scribase.com/legal/subprocessors.md): The companies that process personal data for the hosted Scribase service: what each one does, what data it handles, and where. ## Full text by section - [All sections](https://scribase.com/llms-full.txt): the list below with page counts and sizes - [Docs: Getting Started](https://scribase.com/llms/docs-getting-started.txt): full text of 5 pages - [Docs: Build with AI agents](https://scribase.com/llms/docs-build-with-ai-agents.txt): full text of 6 pages - [Docs: CLI Reference](https://scribase.com/llms/docs-cli-reference.txt): full text of 19 pages - [Docs: Control API /v1](https://scribase.com/llms/docs-control-api-v1.txt): full text of 18 pages - [Docs: SDK (scribase-js)](https://scribase.com/llms/docs-sdk-scribase-js.txt): full text of 1 page - [Docs: Concepts](https://scribase.com/llms/docs-concepts.txt): full text of 9 pages - [Docs: Decisions](https://scribase.com/llms/docs-decisions.txt): full text of 1 page - [Docs: Aegis Policy Compiler](https://scribase.com/llms/docs-aegis-policy-compiler.txt): full text of 1 page - [Docs: Optional](https://scribase.com/llms/docs-optional.txt): full text of 2 pages - [Comparisons & guides](https://scribase.com/llms/comparisons-and-guides.txt): full text of 83 pages - [Use cases](https://scribase.com/llms/use-cases.txt): full text of 8 pages - [For teams](https://scribase.com/llms/for-teams.txt): full text of 9 pages - [Guides](https://scribase.com/llms/guides.txt): full text of 11 pages - [Frameworks](https://scribase.com/llms/frameworks.txt): full text of 14 pages - [Coding agents](https://scribase.com/llms/coding-agents.txt): full text of 6 pages - [Extensions](https://scribase.com/llms/extensions.txt): full text of 29 pages - [Postgres errors](https://scribase.com/llms/postgres-errors.txt): full text of 49 pages - [Migrate](https://scribase.com/llms/migrate.txt): full text of 1 page - [Product](https://scribase.com/llms/product.txt): full text of 9 pages - [Decisions](https://scribase.com/llms/decisions.txt): full text of 1 page - [Mail](https://scribase.com/llms/mail.txt): full text of 2 pages - [Toolgate](https://scribase.com/llms/toolgate.txt): full text of 1 page - [Railyard](https://scribase.com/llms/railyard.txt): full text of 1 page - [Home](https://scribase.com/llms/home.txt): full text of 1 page - [Agents](https://scribase.com/llms/agents.txt): full text of 3 pages - [Tools](https://scribase.com/llms/tools.txt): full text of 8 pages - [Docs](https://scribase.com/llms/docs.txt): full text of 5 pages - [Blog](https://scribase.com/llms/blog.txt): full text of 14 pages - [Changelog](https://scribase.com/llms/changelog.txt): full text of 10 pages - [Legal](https://scribase.com/llms/legal.txt): full text of 5 pages