# ley: 3.2 out of 10

Keep, but not for new work. 7th of 7 in [Database migration tools](https://elestia.ai/opensource/migrations/index.md).

ley is a small CLI and API for SQL migrations that works with any database driver. It is simple and clean, but its README still calls it a work in progress. There has been no release since October 2022 and no commit since March 2024, so pick node-pg-migrate, Postgrator or Umzug for new work.

**Best for:** Existing projects that already run ley with postgres.js, pg, mysql or better-sqlite3 and want nothing more than plain up and down migration files.

## Scores

- **Overall: 3.2** (likely 2.1 to 4.3)
  - Claude Opus 5.5 (2.5): ley is a neat, minimal tool, but it was never finished and it has stalled, with no release in four years and unreviewed PRs. Its use is growing far slower than the category's. Actively maintained peers do the same job better: node-pg-migrate and Postgrator for Postgres, Umzug for any database, and dbmate for SQL files. Keep it where it already works, but do not start a new project with it.
  - GPT-6.2 Sol (3.8): Ley still handles basic migrations for teams already using it. Its long release gap, unresolved TypeScript friction, and falling relative download share make it a weak choice for new work. Umzug offers a more flexible Node.js API, and dbmate has a maintained plain-SQL workflow. Ley may still fit a small team whose current driver and migration workflow already match its defaults.
- **Needed by many: 5.1** (likely 4.0 to 6.3)
  - Claude Opus 5.5 (5.0): Most backend projects that use a SQL database without an ORM need migrations. ley serves Postgres, MySQL and SQLite through their drivers, which is broader than the Postgres-only tools. It still sits in a niche that ORM-bundled migrators like Prisma or Drizzle often fill.
  - GPT-6.2 Sol (5.2): Schema migrations are a common need for database-backed applications, and Ley covers three widely used database engines. Its fit is narrower for teams that already use an ORM's migrations or want plain SQL files. Database usage surveys give a sense of the audience, but they do not measure demand for a standalone Node.js runner.
- **Helps a lot: 4.6** (likely 3.5 to 5.8)
  - Claude Opus 5.5 (4.0): The core job works: up, down, new and status commands, a transaction per file, and a programmatic API. TypeScript migrations need tsm or tsx loaders, and the PR that adds a --ts flag was never merged. The migrations table name cannot be configured, and an old Jest segfault issue is still open. Peers like node-pg-migrate and Umzug offer more and are actively improved.
  - GPT-6.2 Sol (5.2): The published 0.8.1 package handles ordered apply, rollback, and pending status through a small API and CLI. Its built-in transaction model makes some PostgreSQL operations awkward, and a user reported an unhelpful error when the TypeScript loader was missing. Umzug offers typed migration context and more ways to store history, while dbmate lets individual SQL migrations opt out of transactions. There is little direct evidence on Ley's performance or how reliably coding agents configure it.
- **Holds up over time: 1.8** (likely 0.8 to 3.1)
  - Claude Opus 5.5 (1.5): The last release was in October 2022, the last push in March 2024, and there were no commits or releases in the past year. One maintainer controls it and nobody funds it, and five community PRs from 2023 to 2025 sit without review. A community fork (@upleveled/ley) exists, which shows that users have worked around the stalled upstream.
  - GPT-6.2 Sol (2.0): Ley had no commits in the past year and has published nothing to npm since October 2022. TypeScript and error-handling pull requests have been open for years, while several peers shipped releases in 2026. The small package may keep working on an existing stack, but release ownership beyond the original maintainer and funding are unclear.
- **Used widely: 2.4** (likely 1.3 to 3.5)
  - Claude Opus 5.5 (2.5): It had about 10k downloads in 4 weeks, against 7.5k a year before. That ratio of 1.38 is far below the 4.1 median, so it is losing ground. Its 339 dependent repos are a small number next to Umzug (52,927), Postgrator (3,053) and db-migrate (2,821), and peers' downloads are far higher.
  - GPT-6.2 Sol (2.2): Ecosyste.ms found 339 dependent repositories and eight dependent npm packages, a small footprint next to Umzug, Postgrator, and db-migrate. Downloads grew from 7,509 to 10,345, but the 1.38× ratio trails every listed peer and the catalog median of 4.1×. The trend points to lost ground. Incomplete repository coverage and repeat installs make the number of teams choosing Ley hard to pin down.
- **Vouched for: 2.0** (likely 1.0 to 3.2)
  - Claude Opus 5.5 (2.0): I found no Hacker News stories, no Bluesky posts and no independent comparisons or benchmarks that cover ley. The author is well known, and a bootcamp fork shows some teaching use. That is thin, single-source validation.
  - GPT-6.2 Sol (2.0): A developer reported an extensive set of Postgres.js migrations using Ley, and an UpLeveled example pins upstream 0.8.1. Another UpLeveled starter uses the separately published fork. Public examples show practical use, but evidence of major production adoption, survey satisfaction, or independent benchmarking for upstream Ley is sparse.
- **Safe: 5.4** (likely 4.0 to 6.9)
  - Claude Opus 5.5 (5.5): It has no advisories, only 4 dependencies and an MIT licence, and it bundles no drivers. The OpenSSF Scorecard is 3, with Maintained, Branch-Protection, Token-Permissions, Pinned-Dependencies and Security-Policy all at 0. No one is releasing it, so any future issue in it or its dependencies would likely go unpatched.
  - GPT-6.2 Sol (5.3): Ley uses the permissive MIT license, has four direct dependencies, and lets projects supply their own database driver. OSV and Snyk list no direct advisories. Its OpenSSF Scorecard is 3 out of 10, with zero scores for the security policy, branch protection, and workflow token permissions. Release signing and packaging went unscored, and the long release gap leaves the response to future issues uncertain.

## Good

- It works with your own driver (postgres, pg, mysql, mysql2, better-sqlite3 or a custom one) and adds no query layer.
- Each migration file runs inside a transaction.
- It is tiny, with 4 dependencies, an MIT licence and no known advisories.
- It supports both ESM and CommonJS migration files and ships type definitions.

## Bad

- There has been no release since v0.8.x in October 2022 and no commit since March 2024.
- Community PRs for TypeScript migrations and file filtering have been open since 2023–2024 without review.
- The README still labels it WIP, and test coverage and documentation are unfinished.
- Basic features are missing, such as a configurable migrations table name and a built-in way to generate TypeScript migrations.

## The numbers

- Downloads, 4 weeks: 10k
- In a year: +38%
- GitHub stars: 271
- Commits, 12 months: 0
- Last npm release: Oct 2022
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/lukeed/ley
- npm: https://www.npmjs.com/package/ley

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.
