dbmate
A strong pick. 1st of 7 database migration tools.
dbmate is a single Go binary that runs plain SQL migration files with up and down sections on Postgres, MySQL, SQLite, ClickHouse and others. npm ships it as a thin wrapper. It is a well-maintained, low-risk pick for teams that want language-neutral SQL migrations. It generates nothing and has no TypeScript-first migration API.
Best for: Teams that write SQL by hand and want one simple migration CLI shared across Node, Go and other services or Docker setups.
Scores
Overall7.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
dbmate is a solid, actively maintained, low-risk choice for SQL-first migrations, especially across several languages or databases. It ranks near node-pg-migrate and above stale peers like ley and Graphile Migrate's old release. Node teams on Postgres who want JS migrations may still prefer node-pg-migrate. Its thin dependency count and lack of migrations written in code keep it out of the top tier.
- peers: Most stars and strong release cadence vs peers
- encore.dev/articles/database-migration-tools: Recommended for polyglot SQL migrations
- pkgpulse.com/guides/drizzle-kit-vs-atlas-vs-dbmate-schema-migration-tools-2026: Fits SQL-fluent teams; not for schema diffing
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
dbmate is a strong first choice among these peers for a new project that wants plain SQL in Git and a migration step independent of the app runtime. Its release cadence and deployment features make it a good bet for that workflow. For teams that need typed Node.js migrations, node-pg-migrate is a better fit on PostgreSQL and Umzug offers a flexible programmatic API. Checksum validation and limited visibility into direct adoption keep dbmate below a category-wide default.
- github.com/amacneil/dbmate/blob/v2.38.2/README.md: Current stable release documents a complete SQL-first CLI workflow.
- github releasesLastYear, npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, dependents, peers: Frequent releases and fast download growth accompany a much smaller indexed footprint than the leading Node peers.
- github.com/salsita/node-pg-migrate: PostgreSQL-focused migrations with a Node.js API.
- github.com/sequelize/umzug: Typed application-side migrations with configurable storage.
Needed by many6.3
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most backend JS/TS projects with a SQL database need migrations. dbmate works with any framework and many databases. Its SQL-only CLI approach leaves out ORM users, who mostly use their ORM's migration tooling.
- encore.dev/articles/database-migration-tools: Single binary for polyglot repos and Docker
- pkgpulse.com/guides/drizzle-kit-vs-atlas-vs-dbmate-schema-migration-tools-2026: Language-agnostic, plain SQL, multi-database
GPT-6.2 Sol: 6.6, likely 5.5 to 7.6
Schema migration is a common need for teams that own a relational database, and dbmate covers widely used engines including PostgreSQL, SQLite, and MySQL. Its standalone CLI works across frameworks and languages. The survey measures database use, so the share of JavaScript teams that want a separate SQL runner is an estimate.
- survey.stackoverflow.co/2026/technology/data/databases: PostgreSQL, SQLite, and MySQL led reported database use.
- github.com/amacneil/dbmate/blob/v2.38.2/README.md: Documents supported engines and standalone installation methods.
Helps a lot7.6
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It does the core job cleanly. Migrations are transactional, there is Postgres locking, a strict ordering mode, a schema dump, a wait-for-database option and broad database support. The command set is small, and AI agents handle plain SQL well. It cannot generate or diff schemas, has no drift detection, cannot run code-based migrations, and only rolls back one step at a time.
- raw.githubusercontent.com/amacneil/dbmate/master/README.md: Features: transactions, locking, --strict, dump, wait
- pkgpulse.com/guides/drizzle-kit-vs-atlas-vs-dbmate-schema-migration-tools-2026: No generation, drift detection or linting
- dev.co/databases/open-source/dbmate: Rollback only for the most recent migration
- npm hasTypes: Typed npm wrapper
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
Version 2.38.2 makes the core workflow easy to follow with documented SQL templates, transactions where supported, rollback, status checks, and schema dumps. The small CLI and explicit file format are easy for an agent to follow, though agent accuracy and runtime performance remain unmeasured here. Applied files lack checksum validation, and Umzug offers a better fit when migrations need typed application code.
- github.com/amacneil/dbmate/blob/v2.38.2/README.md: Documents the migration format, strict mode, rollback, dumps, and PostgreSQL locking.
- schemadrawer.com/blog/go-migration-tools-compared: Compares migration history, transactions, and file integrity checks.
- github.com/amacneil/dbmate/pull/672: A downstream contributor's checksum proposal remains open.
- github.com/sequelize/umzug: Documents the typed programmatic API and TypeScript migrations.
Holds up over time7.6
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
The project has been active for ten years. In the last year it had 139 commits and 19 releases, and the latest came two days before collection. Only 14 issues are open, and 93 people have contributed. Breaking changes are rare and small. The main risk is that it depends heavily on one maintainer with no visible funding.
- github commitsLastYear / releasesLastYear: 139 commits, 19 releases
- github openIssues / closedIssues: 14 open vs 212 closed
- github.com/amacneil/dbmate/releases: Steady releases, no labelled breaking changes
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
The project shipped 19 releases and made 139 commits in the past year, and the release history shows several distinct publishers. A reported Linux startup regression was fixed the same day as the affected release, with a CI test added. Funding and long-term maintainer availability are less clear, and some feature requests remain open.
- github commitsLastYear, releasesLastYear, contributors, openPullRequests: 139 commits, 19 releases, 93 lifetime contributors, and 17 open pull requests.
- github.com/amacneil/dbmate/releases: Recent 2.x releases show multiple publishers and fixes.
- github.com/amacneil/dbmate/issues/886: User-reported startup crash received a same-day release fix and a CI regression check.
- github.com/amacneil/dbmate/pull/672: Checksum support has remained open since 2025.
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
npm downloads rose from 140k to 2.2M per 4 weeks, a ratio near 15.7 against a 4.1 median. That gain looks driven largely by CI, because ecosyste.ms finds only 81 dependent repos, far below node-pg-migrate, Postgrator or Umzug. Its 7.5k stars are the most in the category, and many users install it through Homebrew, Docker or Go rather than npm. That makes npm-based use hard to estimate.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 2.2M vs 140k, well above median growth
- dependents repos: 81, low vs peers
- github stars: 7,562, highest among peers
- hub.docker.com/r/amacneil/dbmate: Distributed as a Docker image too
GPT-6.2 Sol: 5.4, likely 3.8 to 7.0
Four-week npm downloads reached 2.2 million, up 15.7 times year over year against the 4.1-times catalog baseline, the fastest growth among the listed peers. dbmate leads the group in stars, but the 81 indexed dependent repositories trail node-pg-migrate and Umzug by a wide margin. Homebrew, Docker, and standalone installs sit outside the npm count, while repeated CI installs inflate it, so direct adoption is hard to size.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 2,202,589 versus 140,120 downloads, compared with a 4.1-times catalog baseline.
- github stars, dependents, peers: 7,562 stars and 81 indexed repositories versus 1,035 for node-pg-migrate and 52,927 for Umzug.
- bluesky posts, hackerNews stories: Three Bluesky posts and zero matched Hacker News stories.
- github.com/amacneil/dbmate/blob/v2.38.2/README.md: Documents several installation routes outside npm.
Vouched for6.0
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.0 to 6.0
Independent write-ups recommend it. These include Julia Evans' note on using it in production and comparison guides from Encore and others. No major survey covers it, and I found no prominent public production users or frameworks built on it. Community chatter is light (3 Bluesky posts, no HN stories matched).
- jvns.ca/til/dbmate-for-sql-migrations: Positive independent user report
- encore.dev/articles/database-migration-tools: Listed among recommended migration tools
- bluesky posts / hackerNews stories: 3 posts, 0 stories
GPT-6.2 Sol: 6.9, likely 5.7 to 8.0
Supabase uses dbmate in its Postgres migration and schema build workflow, and the Institut Laue-Langevin documents it for deploying VISA updates. An independent comparison identifies a good fit for teams that share a database across languages, and developers report successful PostgreSQL use. Evidence on satisfaction and measured reliability across deployments remains limited.
- github.com/supabase/postgres/blob/develop/migrations/README.md: Supabase documents dbmate for authoring and testing Postgres migrations and building schema dumps.
- github.com/ILLGrenoble/visa-api-server: VISA documents dbmate for incremental updates during deployment.
- schemadrawer.com/blog/go-migration-tools-compared: Hands-on comparison identifies a fit for mixed-language teams.
- reddit.com/r/Clickhouse/comments/1x1ruq8/schema_management_migration: A developer reports successful PostgreSQL use, while another describes ClickHouse friction.
Safe6.9
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
There are no advisories, and the npm wrapper has no runtime dependencies. The licence is MIT. Releases are quickly rebuilt when Go publishes security fixes. Scorecard is 5.5, with weak token permissions, pinned dependencies, branch protection and signed releases, and no security policy. The npm package also installs a prebuilt native binary.
- advisories total: 0 advisories
- npm dependencies: 0 dependencies
- scorecard score: 5.5; unsigned releases, no security policy
- github.com/amacneil/dbmate/releases: Prompt rebuilds for Go CVEs
GPT-6.2 Sol: 6.8, likely 5.6 to 8.0
The MIT-licensed package has no direct OSV advisories in the snapshot and lists zero regular npm dependencies, though the executable bundles Go drivers and libraries. The latest release updates affected Go components, and npm publishing uses provenance in a dedicated job. The 5.5 OpenSSF score still flags weak branch protection and dependency pinning, missing artifact signatures, and no security policy.
- advisories total, npm dependencies, npm license, scorecard checks: Zero direct advisories, zero regular npm dependencies, MIT license, and several weak controls.
- github.com/amacneil/dbmate/blob/v2.38.2/go.mod: The executable draws on multiple Go drivers and libraries.
- github.com/amacneil/dbmate/releases/tag/v2.38.2: Updates the Go toolchain and libraries to address published advisories.
- github.com/amacneil/dbmate/pull/880: Moves trusted npm publishing with provenance into a dedicated tagged-release job.
Good
- Plain SQL files with up and down sections, and only a DATABASE_URL to configure.
- One binary works the same for any language and in Docker or CI, and it can wait for the database to come up.
- Supports many databases (Postgres, MySQL/MariaDB, SQLite, ClickHouse, BigQuery and more), with a schema dump and Postgres locking.
- Ships often (19 releases in a year), quickly rebuilds on Go security fixes, has no npm runtime dependencies, and has no advisories.
Bad
- It cannot generate migrations or diff schemas, so every change is hand-written SQL.
- Migrations cannot be written in JavaScript or TypeScript, so data migrations that need app code must be done elsewhere.
- Rollback steps back one migration at a time, and there is no drift detection or linting of destructive changes.
- It is mostly led by one maintainer, and its releases are not signed (Scorecard 5.5).
The numbers
- npm downloads, 4 weeks
- 2.2M ×16 in a year
- GitHub stars
- 7.6k
- Commits, 12 months
- 139
- npm version
- 2.38.2 Nov 2026
- Versions, 12 months
- 19
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.5 out of 10, Nov 2026
- Licence
- MIT
Written in Go. The package installs its binary.
Read on 21 November 2026 from GitHub (amacneil/dbmate), npm (dbmate), OSV and the OpenSSF Scorecard.