FindSoftware

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

Current major version
498
Last release
2026-11-068

Adoption

GitHub stars
4,9371
npm downloads a week
283,48510
Contributors
589
Dependent repositories
24511
Dependent packages
9011

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/gajus/slonik
  2. 2026-11-16: links
    raw.githubusercontent.com/gajus/slonik/main/packages/slonik/README.md
  3. 2026-11-16: Categories, Runtime, Databases
    raw.githubusercontent.com/gajus/slonik/main/README.md
  4. 2026-11-16: Minimum runtime, License
    raw.githubusercontent.com/gajus/slonik/slonik@49.13.0/packages/slonik/package.json
  5. 2026-11-16: Install with
    registry.npmjs.org/slonik/latest
  6. 2026-11-16: License model, Maintainer
    raw.githubusercontent.com/gajus/slonik/main/LICENSE
  7. 2026-11-16: First release
    registry.npmjs.org/slonik
  8. 2026-11-16: Current major version, Last release
    api.github.com/repos/gajus/slonik/releases
  9. 2026-11-16: Contributors
    api.github.com/repos/gajus/slonik/contributors?per_page=1
  10. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/slonik
  11. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/slonik

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON