node-pg-migrate

node-pg-migrate

Node.js database migration management built exclusively for PostgreSQL, also usable with CockroachDB and other SQL-standard databases, with JavaScript migration files, a programmatic pgm operation stack that infers down migrations where possible, create, up and down commands, DATABASE_URL connection and extensible, pass-through SQL values.

node-pg-migrate at salsita.github.io is a free MIT Node.js migration tool built for PostgreSQL and compatible with CockroachDB and other SQL-standard databases, JavaScript migration files, programmatic pgm operation stack with inferred down migrations where possible, create up down commands, DATABASE_URL connection and pass-through SQL values, Node 20.11+ and PostgreSQL 13+, npm package with pg dependency, GitHub source and docs, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is node-pg-migrate free?

node-pg-migrate: node-pg-migrate is free open-source software under the MIT License, published on npm and maintained by an active maintainer team. It requires Node.js 20.11 or higher and PostgreSQL 13 or higher, with the pg library installed as a direct or dev dependency; migration files export up and down functions that receive a pgm object, and the operation stack builds SQL while passing user values through directly instead of forcing framework-specific type constants. Source code and documentation are published on GitHub and the project docs site; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is node-pg-migrate free?

The code is free to self-host, but a hosted plan from the vendor may not be. node-pg-migrate publishes its source, so cost depends on where you run it.

How much does node-pg-migrate cost?

node-pg-migrate is free open-source software under the MIT License, published on npm and maintained by an active maintainer team. It requires Node.js 20.11 or higher and PostgreSQL 13 or higher, with the pg library installed as a direct or dev dependency; migration files export up and down functions that receive a pgm object, and the operation stack builds SQL while passing user values through directly instead of forcing framework-specific type constants. Source code and documentation are published on GitHub and the project docs site; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check node-pg-migrate's current pricing?

On node-pg-migrate's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is node-pg-migrate?

A create command writes a timestamped JavaScript file in the migrations folder; the up function calls createTable, addColumns, createIndex and similar pgm methods, the tool composes the SQL, and the stack can sometimes infer the reverse down migration so simple changes do not need hand-written reverse logic.

How does pricing work?

The npm package is free MIT with no seat count; install it as a dev dependency in your Node project and connect to your own PostgreSQL database, and any commercial support you arrange is outside the package license.

How does node-pg-migrate compare with other tools in Dev Workflow & Productivity?

node-pg-migrate is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
node-pg-migrateOpen sourcenode-pg-migrate is free open-source software under the MIT License, published on npm and maintained by an active maintainer team. It requires Node.js 20.11 or higher and PostgreSQL 13 or higher, with the pg library installed as a direct or dev dependency; migration files export up and down functions that receive a pgm object, and the operation stack builds SQL while passing user values through directly instead of forcing framework-specific type constants. Source code and documentation are published on GitHub and the project docs site; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
DBMateOpen sourceDBMate is free open-source software under the MIT License, a standalone command line migration tool that keeps the database schema in sync across multiple developers and production servers. It writes plain SQL migrations named by timestamp to avoid version conflicts between developers, runs migrations atomically inside a transaction where supported, can create and drop databases in development and test, saves a schema.sql file for git diffs, reads the connection URL from DATABASE_URL or a .env file, and ships as a single self-contained binary with NPM, Homebrew, Linux, Windows Scoop, Docker and GHCR installs. The project README states it does not upsell a SaaS service; source code and documentation are published on GitHub, and no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
golang-migrateOpen sourcegolang-migrate is free open-source software under the MIT License, forked from mattes/migrate and maintained by the golang-migrate project. Each migration carries an up and a down SQL file; the CLI wraps the library, handles SIGINT gracefully, has no config search paths or magic environment injection, and the Go API is stable and frozen for v3 and v4, thread-safe with graceful stop and bring-your-own logger. Source code, CLI and library are published on GitHub; no paid commercial edition or per-seat license is sold by the project, while third-party support or consulting may be offered separately under their own terms (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

node-pg-migrate's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: node-pg-migrate is free open-source software under the MIT License, published on npm and maintained by an active maintainer team. It requires Node.js 20.11 or higher and PostgreSQL 13 or higher, with the pg library installed as a direct or dev dependency; migration files export up and down functions that receive a pgm object, and the operation stack builds SQL while passing user values through directly instead of forcing framework-specific type constants. Source code and documentation are published on GitHub and the project docs site; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Current Alternatives

Tool Information

  • Official Websitesalsita.github.io
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates