Driver-Agnostic Database Migrations

JSON →
library 0.8.1 ·javascript
verified May 27, 2026

Ley is a lightweight, driver-agnostic database migration tool for Node.js, currently at version 0.8.1. It provides both a command-line interface (CLI) and a programmatic API for managing database schema changes. Ley's core differentiators include its agnosticism towards specific database drivers (supporting `pg`, `postgres`, `mysql`, `mysql2`, `better-sqlite3`, and custom drivers without bundling them), its lightweight nature, and its transactional approach to migrations, ensuring atomicity for each change. It emphasizes working directly with your chosen driver's API, avoiding new abstractions, and enforces an append-only, immutable task chain for migrations to maintain database integrity across environments. Releases are consistent, with recent updates focusing on ESM support and improved TypeScript integration.

total hits 19
actors 7 distinct systems
last hit 1d ago human
MetaBot
4
GPTBot
2
Script
2
Search engines
3
Humans
1

top countries 🇺🇸 United States · HK · 🇳🇴 Norway · 🇨🇦 Canada · LR