Rebase vs Supabase

Both put row-level security in Postgres. The difference is where the policy is written: in Supabase it lives in the database and you keep it in sync with your code by hand; in Rebase it is a key on the table, compiled to a policy, and the same file generates the API, the typed SDK and the admin panel.

Rebase
vs
Supabase
Security & RBAC

RLS without the footgun

Where it hurts

Both projects put authorization in Postgres row-level security, and Supabase Studio has a policy editor with a generator and templates behind it. The difference is where the policy lives afterwards: in Supabase it is a database object you keep in step with your code by hand, and in Rebase it is a field on the table that compiles to a policy — so the policy, the API and the panel move together, and drift between code and database is something the editor reports.

What Rebase does instead

Rebase writes the policy where the table is. Instead of a separate SQL object, you declare the rule in TypeScript and the compiler turns it into a real Postgres policy.

  • A visual policy editor that reads the database back and reports drift.
  • The rule's context is TypeScript rather than a hand-written JOIN.
  • Per-table, per-field and per-role, in the file the table lives in.
Infrastructure

Self-hosting, symmetrically

Where it hurts

Self-hosting Supabase is a supported path with a published Docker Compose file, and plenty of teams run it. What you are taking on is several services in several languages — PostgREST in Haskell, Auth in Go, Realtime in Elixir, Edge Functions on Deno — each with its own release cadence. Rebase is one Node process and a Postgres, which is a smaller thing to keep upgraded, not a categorically different one.

What Rebase does instead

Rebase is one Node.js backend on standard Hono and Drizzle ORM.

  • One service to deploy: Rebase Cloud (private beta), Docker, Railway, Fly, or bare metal.
  • TypeScript throughout — the language your team already reads.
  • Local development needs no Docker: rebase dev runs a managed Postgres inside the project folder.
Architecture

Schema as code

Where it hurts

With Supabase, the database is the state. Local, staging and production drift apart unless somebody keeps them in step, and version-controlling RPCs, triggers and RLS as raw SQL files takes discipline nobody has on a Friday.

What Rebase does instead

In Rebase the schema definition is a standalone TypeScript file — backend/schema/products.ts — and Git is the source of truth.

  • SQL a table cannot express — functions, triggers, grants — lives in backend/sql, and every push and deploy applies each file once.
  • Drizzle migrations are generated and applied from the same definition.
  • The code is the source of truth, so environments agree by construction.

Questions

06 questions

Rebase and Supabase, answered

Can I use Rebase with my existing Supabase database?

Yes. Rebase connects to any PostgreSQL database, including the one behind a Supabase project, and reads the tables already there. rebase schema introspect --from supabase translates auth.uid() defaults and TO authenticated / TO anon policies, and rebase users import --password-hashes bcrypt brings accounts over with the passwords they had. Edge functions become TypeScript functions and storage buckets map to a storage source, so those are ported rather than connected.

If both are Postgres with row-level security, what is actually different?

Where the policies come from. On Supabase you write RLS as SQL in a dashboard, and a policy that silently returns zero rows is a debugging session with no stack trace. In Rebase the policy is part of the table definition in TypeScript and is compiled to a real Postgres policy when you migrate. The enforcement is identical — it is Postgres in both cases — but the rule lives in your repository, goes through code review, and shows up in a diff. You can audit the policies on a Supabase database today with npx @rebasepro/rls-check, without installing Rebase.

Isn't the Supabase dashboard already an admin panel?

It is a table editor, which is a different product. It is built for the developer: raw rows, foreign-key UUIDs, no workflow, no roles beyond database roles. Rebase generates an interface for the people who run the business — forms, media, permissions, kanban boards, and your own React components wherever the generated defaults are wrong — out of the same table definitions that produced the API.

How much of a rewrite is moving an app from Supabase to Rebase?

The database is the part that does not move — it is Postgres on both sides. What changes is the client: Supabase's JS client and Rebase's typed SDK are different APIs, so calls are rewritten. Policies, users and their passwords come across with rebase schema introspect --from supabase and rebase users import. Realistically it is a client-layer migration, not a data migration.

Does Rebase have database branching?

Yes. A branch is a full copy of the database — schema, data and policies — made with Postgres's own templates, to migrate and test against. When you are done, Rebase shows the branch's schema, policy and row changes and merges the rows back, stopping on a conflict instead of guessing. A project can also declare several databases, an analytics database beside the main one, each with its own migrations.

Do I have to self-host Rebase?

No. Run it on Rebase Cloud — Postgres, storage and the runtime managed in Europe, live with real tenants and opening in batches while it is in private beta, priced per resource rather than per seat — or self-host the same project and own the machine too. Your code is identical either way; hosting is a deployment target, not a fork.

Get started

Don't take our word for it.

The comparison that matters is the one you run. Run Rebase yourself and see how it holds up next to Supabase.

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