# dbmate: 7.6 out of 10

A strong pick. 1st of 7 in [Database migration tools](https://elestia.ai/opensource/migrations/index.md).

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

- **Overall: 7.6** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.1): 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.
- **Needed by many: 6.3** (likely 5.3 to 7.3)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.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.
- **Helps a lot: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Holds up over time: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Used widely: 5.2** (likely 3.9 to 6.5)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (5.4): 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.
- **Vouched for: 6.0** (likely 4.4 to 7.0)
  - Claude Opus 5.5 (5.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).
  - GPT-6.2 Sol (6.9): 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.
- **Safe: 6.9** (likely 5.8 to 8.0)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.8): 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.

## 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

- Downloads, 4 weeks: 2.2M
- In a year: ×16
- GitHub stars: 7.6k
- Commits, 12 months: 139
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/amacneil/dbmate
- npm: https://www.npmjs.com/package/dbmate

Written in Go. The package installs its binary.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
