postgres
npmv3.4.9TypeScriptFastest full featured PostgreSQL client for Node.js
Overview
postgres is an npm package that fastest full featured PostgreSQL client for Node.js. It is extremely widely used, with about 11.5M downloads per week and 1 known dependents in the graph. The latest version is 3.4.9, released under the Unlicense license.
Who should use it
Teams working in the npm ecosystem who need fastest full featured PostgreSQL client for Node.js and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (11.5M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (Unlicense).
- Zero runtime dependencies — minimal footprint.
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of postgres.
Used by
Popular packages that depend on postgres.
Alternatives to postgres
PostgreSQL client - pure javascript & libpq with the same API
Drizzle ORM package for SQL databases
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.
Connection pool for node-postgres
Module for reading .pgpass
Type safe SQL query builder
Media Type Database
sql named placeholders to unnamed compiler
AWS RDS SSL certificates bundles.
The fastest and simplest library for SQLite in Node.js.
Mongoose MongoDB ODM
Frequently installed together
TypeScript definitions for pg
PostgreSQL client - pure javascript & libpq with the same API
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Type safe SQL query builder
Type definitions and documentation for Bun, an incredibly fast JavaScript runtime
The fastest and simplest library for SQLite in Node.js.
TypeScript typings for Cloudflare Workers
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
TypeScript definitions for better-sqlite3
Asynchronous, non-blocking SQLite3 bindings
libSQL driver for TypeScript and JavaScript
The official Node.js client library for Gel
Version history
| Version | Published | License |
|---|---|---|
| 3.4.9latest | 3 months ago | Unlicense |
| 3.4.8 | 6 months ago | Unlicense |
| 3.4.7 | 1 year ago | Unlicense |
| 3.4.6 | 1 year ago | Unlicense |
| 3.4.5 | 1 year ago | Unlicense |
| 3.4.4 | 2 years ago | Unlicense |
| 3.4.3 | 2 years ago | Unlicense |
| 3.4.2 | 2 years ago | Unlicense |
| 3.4.1 | 2 years ago | Unlicense |
| 3.4.0 | 2 years ago | Unlicense |
| 3.3.5 | 3 years ago | Unlicense |
| 3.3.4 | 3 years ago | Unlicense |
| 3.3.3 | 3 years ago | Unlicense |
| 3.3.2 | 3 years ago | Unlicense |
| 3.3.1 | 3 years ago | Unlicense |
| 3.3.0 | 3 years ago | Unlicense |
| 3.2.4 | 4 years ago | Unlicense |
| 3.2.3 | 4 years ago | Unlicense |
| 3.2.2 | 4 years ago | Unlicense |
| 3.2.1 | 4 years ago | Unlicense |
Maintainers
Funding
Frequently asked questions
How do I install postgres?
Run `npm install postgres` to add postgres to your npm project.
What license is postgres released under?
postgres is distributed under the Unlicense license.
How popular is postgres?
postgres has approximately 11,520,410 downloads per week and 1 known dependent packages.