Migrei

JSON →
library 1.1.0 ·javascript
verified Jun 7, 2026

Migrei is a lightweight SQL migration library for PostgreSQL databases, currently at version 1.1.0. It provides a simple CLI to apply and rollback SQL migration scripts stored in a local folder. Unlike other migration tools, Migrei does not require a global installation and can be executed via npx. It automatically generates rollback statements, eliminating the need to write reverse queries. The library reads database connection details from a .env file and supports batch processing of migration files. Its release cadence is currently unknown as it's a newer project with limited releases.