Slonik
Node.js PostgreSQL client with strict types, detailed logging and assertions, built on the node-postgres driver.
Slonik is a PostgreSQL client for Node.js, written in TypeScript. It is built on top of pg, the node-postgres driver, and provides methods for building queries and querying data. The repository is a monorepo that holds the library’s packages, and its README describes the API and compares Slonik with other PostgreSQL clients.
Worth knowing
The README says the library does not handle migrations, because a database client and migrations are separate problems. It names other tools for that job.
Identity
- Status
- Active
- Maintainer
- Gajus Kuizinas6
- Maintained by
- Individual
- First release
- 20177
Rendering and deploy
- Install with
- npm5
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/gajus/slonik - 2026-11-16: links
raw.githubusercontent.com/gajus/slonik/main/packages/slonik/README.md - 2026-11-16: Categories, Runtime, Databases
raw.githubusercontent.com/gajus/slonik/main/README.md - 2026-11-16: Minimum runtime, License
raw.githubusercontent.com/gajus/slonik/slonik@49.13.0/packages/slonik/package.json - 2026-11-16: Install with
registry.npmjs.org/slonik/latest - 2026-11-16: License model, Maintainer
raw.githubusercontent.com/gajus/slonik/main/LICENSE - 2026-11-16: First release
registry.npmjs.org/slonik - 2026-11-16: Current major version, Last release
api.github.com/repos/gajus/slonik/releases - 2026-11-16: Contributors
api.github.com/repos/gajus/slonik/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/slonik - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/slonik