PostgreSQL — yours, or one we run for you

The backend for your Postgres.Built for your team. Safe for your agents.

Point Rebase at your database. Every table compiles to Postgres row-level security, a typed SDK, REST & realtime, and a schema-driven admin panel that runs as an ordinary client.

No account · No Docker · Built-in local Postgres · MIT

One definition · three consumers
  • Rebase BackendTyped SDK · REST · Realtime
  • Rebase CMS & StudioAdmin panel · 0 screens written
  • Postgres RLS & MCPEnforced in DB · rebase_user
bloom-shopRunning

bloom-shop

Admin panel bloom-shop.rebase.website

StatusRunning
Compute1 vCPU · 2 GB2 instances
Last deploy4 min agomain · a41c9e2
Last backup2 h agoPoint-in-time on
api.bloom.shop
Backend serviceeu-central · FalkensteinRunning
CPU 18%RAM 41%0 restartsRLS on 23/23 tables
23 tables12 functions4 cron jobs
ActivityAll requestsAuth
00:0006:0012:0018:00now
Request logsran as
  • GET/api/data/orders?status=pending20018ms
  • POST/api/auth/sign-in20064ms
  • PATCH/api/data/orders/482120022ms
  • PUT/api/storage/receipts/4821.pdf20191ms
  • POST/api/functions/send-invoice200140ms
Data0 errors

148k

Auth0 errors

21.4k

Storage0 errors

17.9k

Functions2 errors

26.2k

Realtimelive sockets

211

In the box

Everything a product backend needs, in one server on one Postgres.

Explore the backend
  • Auth

    Email and password, magic links, twelve OAuth providers and scoped API keys.

    /api/auth

  • Typed SDK & REST

    Generated from your tables, with OpenAPI and typed accessors.

    client.data.posts.find()

  • Realtime

    Row changes pushed over a WebSocket, filtered by the same rules.

    listen()

  • File storage

    S3-compatible, GCS or local disk, with resumable uploads and per-file access rules.

    /api/storage

  • Functions

    Your own endpoints beside the generated ones. Drop a file in functions/ and it is mounted.

    defineFunction()

  • Cron and jobs

    Scheduled tasks, and a queue in Postgres that retries with backoff and survives a restart.

    defineCron()

  • Vector search

    Nearest-neighbour queries over pgvector columns, through the same REST API.

    ?vector_search=

  • Database branches

    A full copy of your database to try a migration on, while the real one stays untouched.

    rebase db branch

  • History

    Who changed which row and when, with the full before and after.

    history: true

  • Backups

    pg_dump to disk or S3 on a schedule, restored into a fresh database. Point-in-time recovery on Rebase Cloud.

    rebase db backup

  • Admin panel

    Rebase CMS for your team, Rebase Studio for your developers.

    @rebasepro/cms

  • MCP & agents

    Claude and other agents work your data under scoped keys.

    /mcp

Built by the team behind FireCMS (10,000+ production apps). Running production backends in Europe today.

DearDoc LogoMedicalMotion LogoProton HealthWithUSocial Income

Made in Madrid by a company under European law. Run Rebase on your own servers — Hetzner, OVHcloud, Scaleway or bare metal — or have us operate it in Europe.

Sovereignty in Europe

The APIs

01 / 06

Working APIs against your database, from minute one.

A typed SDK for your tables, REST over every table and realtime on a WebSocket, running against your database from minute one.

app.ts — typed from your tableslive · generated types
src/routes/posts.ts✓ 0 type errors
1import { createRebaseClient } from '@rebasepro/client';
2import type { Database } from './generated/sdk/database.types';
3
4const client = createRebaseClient<Database>({ baseUrl: API_URL });
5
6const { data } = await client.data.
TypeScript 5.8 · @rebasepro/clientUTF-8Ln 6, Col 36
REST, over every tablelive · click an endpoint
Endpointsclick to send
200 OK8ms
ResponseRLS · rebase.role() IN ('admin', 'editor')
[
  {
    "id": 1,
    "name": "Alice Vance",
    "role": "admin"
  },
  {
    "id": 2,
    "name": "Bob Chen",
    "role": "editor"
  }
]
OpenAPI 3.1 auto-generatedtx · SET LOCAL role
Realtime — LISTEN/NOTIFYlive
your app — web
name
status
upd
Alice
pending
2m ago
Bob
active
5m ago
Carol
inactive
1h ago
Dave
active
12m ago
ws
live
admin panel
name
status
upd
Alice
pending
2m ago
Bob
active
5m ago
Carol
inactive
1h ago
Dave
active
12m ago
Both clients subscribed to users…ws://localhost:3000/realtime
Explore the backend

Security-first

02 / 06

Written in TypeScript. Enforced by Postgres.

Your access rules compile into real Postgres policies — granular per table, per field, per role. The database holds them on every path into it: your routes, your nightly job, the backfill script someone ran once, the agent holding a key. Not middleware someone has to remember to call.

Where the rule lives todayschema/orders.ts · one rule, in Postgres, on every path
Caller / EntrypointAuthorization
routes/orders.tsif (order.ownerId !== req.user.id) return 403;✓ checks
jobs/nightly-report.tsdb.select().from(orders) // every row✗ no check
scripts/backfill.tsdb.update(orders).set(…) // run once, kept forever✗ no check
agents/tools.tsconnect(URL, SERVICE_ROLE_KEY)✗ bypasses RLS
the hosted dashboardselect * from orders -- as the owner✗ no policy
4 of 5 paths bypass application middleware1 service key exposes every row

When authorization lives in your route handler, every cron job, script, dashboard, and MCP agent has to remember to copy it.

SELECT * FROM orders; -- via DATABASE_URL→ 14,820 rows exposed across all tenants
rls: [
  { operations: ["select", "update"], ownerField: "owner_id" },
]
-- compiled into Postgres; enforced on every statement, for every caller
CREATE POLICY orders_select ON orders FOR SELECT USING (owner_id = rebase.uid());
-- a table without rls does not compile
routes/orders.tsrebase_user→ policy applies
jobs/nightly-report.tsrebase_user→ policy applies
scripts/backfill.tsrebase_user→ policy applies
agents/tools.tsscoped key→ policy applies
the panelrebase_user→ policy applies
5 of 5 paths enforced inside the Postgres transaction0 middleware checks to remember

Don't take that on faith.

rls-check reads your database's own catalogue and reports what is actually exposed — tables served with row-level security switched off, policies that evaluate to true for everyone, views that read straight past the RLS on their base tables. Fifteen checks. Any Postgres: Supabase, Neon, RDS, your own server. It is read-only, it needs no account, and it does not care whether you use Rebase.

See all 15 checks
npx @rebasepro/rls-check

SELECTs against the system catalogues and nothing else. No telemetry, no upload, and it never reads your data.

Rebase Cloud

03 / 06

Managed in Europe. Built on Hetzner.

Every project gets its own Postgres instance, managed S3-compatible object storage, automated TLS and CLI deploys — run by a Spanish company on Hetzner in Germany, on the same open-source image you can self-host anytime.

Managed project footprinteu-central-1 · Hetzner
  • App runtimeFalkenstein · fsn1
  • Dedicated PostgresCNPG · WAL → nbg1
  • Managed object storageHetzner S3 · /api/storage
$rebase cloud deploy
  • European infrastructure on Hetzner

    Hosted in Falkenstein, Germany and operated by FireCMS S.L. in Madrid under EU law. No US parent company and no hyperscaler markup.

    eu-central-1 · fsn1

  • Built-in managed object storage

    Isolated S3-compatible buckets on Hetzner Object Storage, wired straight into /api/storage and your access rules — or connect your own S3 or GCS bucket.

    S3 API · /api/storage

  • Dedicated Postgres & PITR

    Never a shared database. Every project runs its own CloudNativePG instance with continuous WAL archiving and off-site backups in Nuremberg.

    PostgreSQL · nbg1 backups

  • Sized with dials, priced per resource

    Pick CPU, memory and growable disk independently across shared, reserved or dedicated capacity. Itemised monthly cost up front, never per seat.

    shared · reserved · dedicated

  • CLI deploys & preview environments

    Deploy and roll back from the CLI, the console or Claude. Spin up isolated previews with their own database and URL before merging.

    rebase cloud deploy

  • Same image, zero lock-in

    Fixed outbound IP for firewall allowlists, custom domains, live metrics and alerts — plus pg_dump and the exact same container if you ever move off.

    docker compose up -d

Private betaRunning production tenants today · opening in batches

Built for the agent era

04 / 06

The backend an agent can't screw up.

An AI agent can scaffold a backend in an hour — and leave you with forty thousand lines of routes, middleware and screens nobody can audit. Agents are very good at producing plausible backends and famously bad at producing secure ones. With Rebase, a coding agent edits one compact table file that the compiler verifies, and a runtime agent operates under scoped keys, Postgres RLS and human-reviewed states. The safe outcome is the only outcome, by construction.

Explore AI and agent features
agent · what it can reachRLS enforced on all 10 surfaces

A surface an agent can hold

No controllers, no serializers, no migrations to hand-write, and nothing for a model to invent between the schema and the route. The whole contract fits in one context window, and the compiler checks whatever it writes back.

backend/schema/orders.tspostgres · rls active
export const orders = defineTable("orders", {
columns: { total, status, customer },
rls: [{ operation: "select", … }],
});
→ REST · typed SDK · RLS policies · admin views
no controllers to reviewfits in one context windowcompiler-checked
Compiler + Schema Gateenforced by construction

1 table file → 0 custom controllers to hallucinate · TypeScript + SQL migration verified before apply

tx · SET LOCAL role = 'rebase_authenticated'✓ verified

Where your team works

05 / 06

Your team gets an admin panel. Nobody has to build it.

Spreadsheet editing, media, relations, roles and review workflows — an admin panel where your team runs operations and approves what agents draft. It is a client of your API like any other, so whatever it can see, your policies said so.

What your app talks to

Rebase Backend

The server your app calls: REST, a typed SDK, realtime, auth and storage over your own Postgres.

@rebasepro/server

Where your team works

Rebase CMS

Spreadsheet editing, media, relations, roles and approval queues — with your own or agent-written React views dropped in wherever the default table isn't enough.

@rebasepro/cms

The developer half of the panel

Rebase Studio

SQL editor, schema visualizer, RLS policy simulator, database branches, logs and API explorer. Studio is the developer half of the same panel your team already uses.

@rebasepro/app

Built for real products

06 / 06

Seven products. Every one built on Rebase.

A retail loyalty programme, a two-sided marketplace, a living-room music quiz, the back office of a certified medical device, an outbound sales agent, a design tool and a CRM — built by the team that makes Rebase, some for ourselves and some for our customers.

Run it locally in one command. Or open the live demo.

MIT-licensed, end to end. Your data stays in your Postgres: no vendor dependency, no per-seat pricing, and leaving is a redeploy.

Run it locally

One command, and it runs. No account, no container to pull, nothing to sign up for.

Quickstart

Self-host it

Docker, Fly, Railway, Hetzner or bare metal. Your data stays in your infrastructure and never reaches us.

docker compose up -d
Deployment guides

Rebase CloudPrivate beta

Managed hosting on our infrastructure. It runs real tenants today and opens in batches.

Request access