libpq
npmv1.11.0Low-level native bindings to PostgreSQL libpq
Overview
libpq is an npm package that low-level native bindings to PostgreSQL libpq. It is very popular, with about 175K downloads per week and 1 known dependents in the graph. The latest version is 1.11.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need low-level native bindings to PostgreSQL libpq and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (175K weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of libpq.
Dependencies
Runtime (2)
Dev (5)
Used by
Popular packages that depend on libpq.
Alternatives to libpq
PostgreSQL client - pure javascript & libpq with the same API
A slightly nicer interface to Postgres over node-libpq
Connection pool for node-postgres
Module for reading .pgpass
Drizzle ORM package for SQL databases
sql named placeholders to unnamed compiler
Fastest full featured PostgreSQL client for Node.js
AWS RDS SSL certificates bundles.
Type safe SQL query builder
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped.
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 1.11.0latest | 2 months ago | MIT |
| 1.10.0 | 4 months ago | MIT |
| 1.9.0 | 5 months ago | MIT |
| 1.8.15 | 1 year ago | MIT |
| 1.8.14 | 1 year ago | MIT |
| 1.8.13 | 2 years ago | MIT |
| 1.8.12 | 3 years ago | MIT |
| 1.8.11 | 3 years ago | MIT |
| 1.8.10 | 3 years ago | MIT |
| 1.8.9 | 7 years ago | MIT |
| 1.8.8 | 8 years ago | MIT |
| 1.8.7 | 9 years ago | MIT |
| 1.8.6 | 9 years ago | MIT |
| 1.8.5 | 10 years ago | MIT |
| 1.8.4 | 10 years ago | MIT |
| 1.8.3 | 10 years ago | MIT |
| 1.8.2 | 10 years ago | MIT |
| 1.8.1 | 10 years ago | MIT |
| 1.8.0 | 10 years ago | MIT |
| 1.7.0 | 11 years ago | MIT |
Maintainers
Frequently asked questions
How do I install libpq?
Run `npm install libpq` to add libpq to your npm project.
What license is libpq released under?
libpq is distributed under the MIT license.
How popular is libpq?
libpq has approximately 174,964 downloads per week and 1 known dependent packages.