exodusjs is a simple PostgreSQL database migration tool for Node.js. Version 2.1.1 is stable, with infrequent releases. It provides a CLI for creating, migrating, and rolling back migrations, tracking applied migrations in a dedicated database table. Unlike more feature-rich tools like node-pg-migrate or db-migrate, exodusjs focuses on minimalism: migrations are plain SQL in JavaScript modules with only 'up' and 'down' exported. No schema management, no seeding, no TypeScript support. Requires a DATABASE_URL environment variable and a local postgres connection.
npm install exodusjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the full workflow: install, create a migration file, run it against PostgreSQL, and rollback.
Use the CLI's 'create' command which auto-generates a timestamp prefix.
Run 'npm install pg' alongside exodusjs.
Always test your SQL against the database before running 'exodus migrate'.
npm install pg --save-dev
Verify PostgreSQL is running and DATABASE_URL env var is correct.
If you manually dropped the table, re-run 'exodus migrate' to recreate it. Or check if migrations have already been applied.