typesafe-migration-guard
Automated database migration safety reviewer powered by TypeSafe AI (Jev System One model)
How it uses Jev
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…
Highlights
- ⚡ Sub-Second Real-Time Interception : Average evaluation latency of 250ms , ensuring that CI/CD pipelines remain blazing fast.
- 🚫 Strict HTTP 403 Production Gate : Any destructive DDL targeting a production environment immediately fails the HTTP request with status 403 Forbidden , halting automated deploy…
- 🎯 Calibrated Probabilistic Confidence : Jev returns mathematical confidence scores (e.g. 100% ) and probability distributions for audit trails.
- 🗄️ Supabase PostgreSQL Ready : Configured with dual connection strings ( DATABASE URL for pooled queries via Supavisor, DIRECT URL for schema migrations).
- 🖥️ Interactive Operations Dashboard : Next.js App Router visual console to inspect migrations, preview verdicts, and test deployment scenarios with one click.
- 🔄 AWS EC2 Zero-Downtime Deployment : Production bash script utilizing PM2 cluster reload, automated pre-flight checks, and rollback hooks.
Getting started
Prerequisites - Node.js : v20.x or v22.x - TypeSafe AI API Key - Supabase PostgreSQL Database (or local Postgres instance)
Source: community catalog. Details and metrics reflect the published community snapshot and are not a performance endorsement. Documentation details extracted from GitHub · the README.
