pgmagmig

JSON →
library 0.1.2 ·javascript
verified Jun 7, 2026

PostgreSQL migration tool with integrated schema differ, powered by PGlite (PostgreSQL compiled to WASM). Current stable version 0.1.2. Schema extraction, DDL generation, diffing, and diff validation run in-process against PGlite without needing an external PostgreSQL server. Features automatic diff validation via round-tripping, hazard annotations for destructive operations, YAML migration drafting, and an ephemeral database mode for tools like Prisma. Requires Node.js >=20.