Zero drift.
Postgres, migrations, row and column level security, API, realtime, storage, a Studio CMS and a typed client, all generated from TypeScript you already write. Change a field once. Nothing else to update.
npm install -g @supatype/cli One set of types, and everything that usually drifts from it.
Your stack describes the same data in six places. Supatype keeps one set of types from database to component, so renaming a field fails the build instead of production.
Your agent edits one file.
The whole stack follows.
Agents are good at changing a type and bad at keeping six other files in step with it. With Supatype there are no other files. Install the skill and your agent knows how to model data, write access rules and push changes.
Claude Code
> /plugin marketplace add supatype/supatype > /plugin install supatype@supatype
Cursor
$ npx --yes degit supatype/supatype/skills/supatype .cursor/skills/supatype Using something else? Point it at supatype.com/llms.txt.
Post and ran supatype push.
body: RichText + excerpt: Optional<string> auth_user_id: SupatypeAuthUserId }, { access: { ... + fields: { excerpt: { write: Owner<"auth_user_id"> } }, }
- 1 file changed. Generated:
- ✓migration: add column post.excerpt
- ✓field rule: only the owner writes excerpt
- ✓REST + GraphQL field
- ✓typed client: Post.excerpt
- ✓Studio: excerpt input
Why teams pick Supatype
Renames fail the build
Rename a column and every stale reference breaks at compile time, not in production.
Types, not a new language
You write plain TypeScript types. No extra language to learn, no codegen step to run by hand.
Real Postgres
Not an abstraction over a database. Our Postgres image ships with pgvector and PostGIS, and every table and policy is there to inspect with psql.
Self-host, no sales call
Docker Compose on any VM, same layout as local development. Images on Docker Hub.
Open where you touch it
MIT SDKs, Apache 2.0 CLI and services. The schema engine is BSL 1.1. Licensing
Supatype Cloud
FREE TIERThe same stack, operated for you. Start with 2 projects, 500 MB database and 1 GB storage, free and with no card. Paid plans start at £25 a month when you grow.
The basics, generated properly
Migrations you can review
Supatype diffs your types against the live database, classifies each change, and never renames or drops a column without your approval.
◆ Was post.title renamed to post.headline? (recorded in supatype/renames.json) │ ● Yes / ○ No 2 change(s): [+] add_column post.excerpt (safe) [!] drop_column post.legacy_id (DANGER) 1 dangerous change(s). Review before pushing. ◆ 1 risky change(s) above. Proceed?
CREATE POLICY "post_select" ON "public"."post" FOR SELECT USING ( TRUE ); CREATE POLICY "post_insert" ON "public"."post" FOR INSERT WITH CHECK ( (SELECT _supatype.jwt_uid()) IS NOT NULL ); CREATE POLICY "post_update" ON "public"."post" FOR UPDATE USING ( "auth_user_id" = (SELECT _supatype.jwt_uid()) );
-- column access: same query, two roles anon title: "Zero drift" internal_notes: null owner title: "Zero drift" internal_notes: "check SEO"
Row and column access from one set of rules
Write read, create and update rules next to the model, down to individual fields. Row rules compile to Postgres RLS policies. Field rules hide columns per role with supatype_mask, or through generated views where the extension isn't installed.
Studio, a CMS built from your types
Your types are the content model. Studio reads them and generates the CMS your content team uses: list views, edit forms, rich text, media and role-based editing. Add a field to a type and editors get it on the next push. Studio
Auth built in
Email, magic link, phone and OAuth sign-in, with tokens your access rules check in Postgres on every request. Auth
Storage with permissions
File and image fields get buckets with matching rules, plus image transforms and signed URLs. Storage
Realtime
Subscribe to model changes. Events, deletes included, reach only subscribers allowed to read the row. Realtime
Edge functions
TypeScript functions on Deno. Drop a file in functions/ and it answers at /functions/v1 with the caller's token. Functions
APIs and a typed client
REST via PostgREST, GraphQL via pg_graphql, API docs in Studio and a generated TypeScript client. Client
The same types in every component.
React, React Native, Vue, Svelte and Solid, plus SSR for Next.js server components, route handlers and middleware. Pre-built auth UI for React and React Native. Frameworks
# pick yours $ npm i @supatype/react $ npm i @supatype/vue $ npm i @supatype/svelte $ npm i @supatype/solid $ npm i @supatype/ssr
Where the types stop.
| Tool | TABLES + MIGRATIONS | ROW + COLUMN ACCESS | API | CLIENT TYPES | ADMIN / CMS |
|---|---|---|---|---|---|
| tRPC | you write | you write | you write | inferred | you build |
| Prisma | from schema | you write | you write | from schema | DB browser |
| Supabase | you write SQL | you write SQL | generated | introspected after | table editor |
| Convex | schema.ts, you migrate data | you write, in functions | you write functions | generated | dashboard |
| Payload | from config | app-level, not RLS | from config | generated from config | from config |
| Supatype | from your types | from your types | from your types | from your types | from your types |
Moving over? Coming from Supabase and Coming from Prisma map what you have to what you write here.
Three commands to
a running stack.
$ npm install -g @supatype/cli $ supatype init $ supatype dev supatype dev applies your types, watches for changes, migrates the database and regenerates the client. supatype push applies them to staging or production. You need Node 22 or newer, and Docker running for the default mode. Local development covers native mode, ports and the frontend proxy.
The same platform,
wherever it lives.
Cloud is the self-hosted stack, operated for you. There is no cut-down community edition, and your schema, data and Studio come with you if you leave.
Self-host
Docker Compose on any box you own, with the same project layout as local development. SDKs MIT, CLI and services Apache 2.0, schema engine BSL 1.1. Licensing
$ supatype self-host compose up -d Self-hosting guide Cloud
Managed Postgres, custom domains, team roles and usage dashboards, hosted in Helsinki, Finland. Free to start; paid plans from £25 a month.
$ supatype deploy - NAME
- supatype - one set of types, database to component
- WHAT DO I ACTUALLY WRITE?
- TypeScript types and the access rules next to them. Supatype generates the tables, migrations, policies, API, client and Studio from those.
- CAN I SELF-HOST?
- Yes. Docker Compose on any VM, with the same project layout as local development. See the self-hosting guide.
- WHICH DATABASES?
- Postgres, shipped as our own image.
- IS THERE A FREE TIER?
- Yes. Cloud starts free with 2 projects, 500 MB database and 1 GB storage, and no card. Paid plans start at £25 a month. See pricing. Self-hosting is free.
- HOW IS IT LICENSED?
- SDKs are MIT. CLI and services are Apache 2.0. The schema engine is BSL 1.1. See licensing.
- WHAT IF WE LEAVE?
- Your data stays in ordinary Postgres tables, and access rules are ordinary row level security policies, so the database keeps working with Postgres and PostgREST without the CLI. Migration history stays in the
_supatypeschema, andsupatype migrate -o file.sqlwrites a change as plain SQL. Model hooks run in the Supatype server, so those would need a new home. - WHAT IF A RULE CANNOT EXPRESS MY POLICY?
- A model hook runs a handler of yours before a write through the API, and can refuse it. A hook is not a security boundary, because direct SQL skips it. There is no raw SQL rule type, on purpose. A push leaves policies you wrote by hand in place and reports them, and
supatype adoptdecides which objects Supatype owns. See model hooks. - WE ALREADY USE AUTH0.
- Supatype issues its own tokens, and
auth.claim()reads any claim in them. Accepting tokens from another issuer directly is not supported yet. Book a call if you need it. - HOW ARE ACCESS RULES TESTED?
- Against a real Postgres in CI on every change: generated policies, field access, attempts to leak masked values through filters and ordering, and every field type against one shared fixture.
- FOUND A SECURITY ISSUE?
- Email hello@supatype.com privately rather than opening a public issue. Details are in security.txt.
- SEE ALSO
- quick-start(7), schema(7), self-hosting(7), llms.txt
Running it for a team?
Book a call. We can talk through your stack, self-hosting with support, and Cloud plans for a team.
Zero drift.
Closed beta: creating an account requests access. We email you when you are in.