supaschema
From declarative schema to fully synced database in milliseconds. No ORM, no Docker, and no shadow database needed.
Get Started
Install supaschema and generate your first migration in minutes.
diffGenerate a replay-safe SQL migration from your declarative schema.
checkStatic replay-safety and lock-hazard gate for your migration SQL.
Common tasks
Set up CIAdd a GitHub Actions schema-diff job that validates every pull request.
Generate typesGet TypeScript types and Zod validators from your schema — no database needed.
Handle destructive changesUse hints to safely drop columns, rename tables, and change types.
Verify migrationsApply-twice proof in disposable databases to confirm idempotency.
Integrate with SupabaseUse supaschema alongside the Supabase CLI for local and remote projects.
Understand diagnosticsLook up any SUPA_* error or warning code and find the fix.