opaielsheikh/typesafe-migration-guard
User repository on GitHub
Automated database migration safety reviewer powered by TypeSafe AI (Jev System One model)
- Forks
- 0
- Last pushed
- Updated Sep 2026
Repo stats from the GitHub API, cached Oct 2026.
Next.js service with a POST /api/migration-guard endpoint that asks Jev a SAFE or DANGER choice about a SQL statement plus target environment, returning HTTP 403 to halt a CI step or HTTP 200 to let Prisma migrations proceed against Postgres.
opaielsheikh/typesafe-migration-guard
User repository on GitHub
Automated database migration safety reviewer powered by TypeSafe AI (Jev System One model)
Repo stats from the GitHub API, cached Oct 2026.
Typesafe Migration Guard is an automated, deterministic safety gatekeeper that intercepts database migrations in continuous integration (CI/CD) pipelines and production deployment runners. Powered by the TypeSafe AI SDK and its machine-native Jev System One model, it evaluates DDL statements in real-time, blocking destructive operations (such as DROP TABLE, DROP COLUMN, and unindexed truncation) with an HTTP 403 Forbidden status code before any migration touches your live Supabase PostgreSQL database.
Quoted from the project's README. Read the full README.
Watch out
The latency figures are the README's own, not a measurement you can rerun: its comparison table puts this project's calls at roughly 240 to 300 ms, regex linters near 10 ms and conversational models at 3,500 to 6,000 ms, with no harness or dataset in the repository behind them. Configuration is Supabase-shaped, with DIRECT_URL for migrations and DATABASE_URL through Supavisor, though a local Postgres also works. The clone command in the README still says your-org, so expect to fix the URL. Prerequisites are Node 20 or 22, a TypeSafe key and a Postgres database, and you must run npm run prisma:generate before the dev server. Only two migrations ship as fixtures, one CREATE TABLE and one DROP TABLE CASCADE. Copy reviewed against the repository README on 2026-10-04, not from running it.
Posts from builders shipping with Jev right now.