{"library":"ley","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.8.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ley","imports":["import { run } from 'ley'","npx ley <command>","export async function up(sql: Client) { /* ... */ }","exports.up = async function (sql) { /* ... */ }"]},{"cmd":"yarn add ley","imports":[]},{"cmd":"pnpm add ley","imports":[]}],"homepage":"https://ley.xyz","github":"https://github.com/lukeed/ley","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ley","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ley/compatibility"}}