brianc/node-postgres
PostgreSQL client for node.js. observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5801
- days_rel: n/a
- days_push: 15
- n_releases_24m: 0
Adoption not part of the score
13198 stars · 1345 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
node-postgres (pg) is the de facto PostgreSQL client library for Node.js, also supporting bun, deno, and cloudflare workers. It provides a non-blocking pure JavaScript client with optional native libpq bindings, connection pooling, parameterized queries, streaming, cursors, and extensible data-type parsing.
Use cases
- connect to postgres from node.js
- run parameterized sql queries safely
- pool database connections for a web app
- stream large query results
- listen for postgres notifications with LISTEN/NOTIFY
- bulk import and export with COPY
- run transactions from node
- connect to postgres over ssl
When to choose
- you need a mature, battle-tested PostgreSQL driver for Node.js or bun/deno
- you want connection pooling, prepared statements, and rich type parsing out of the box
- you need low-level control over queries and transactions without heavy ORM abstractions
When to avoid
- you want a high-level ORM with migrations and model relations
- you are connecting to a database other than PostgreSQL
- you need dynamic identifiers/table names built in (use pg-format alongside)
Facets
library · maturity stable
database-driver database http-server databases backend web-development developer-tools bun cross-platform postgresql pg connection-pooling sql libpq prepared-statements ssl query-pipelining nodejs deno
10 sources
- readme: https://github.com/brianc/node-postgres · fetched 2026-08-28 · f2d6096f0a72
- homepage: https://node-postgres.com · fetched 2026-08-29 · 56910f40d6bf
- site_page: https://node-postgres.com/features/connecting · fetched 2026-08-29 · ad1fa0b6eca4
- site_page: https://node-postgres.com/features/queries · fetched 2026-08-29 · e2c30d5f861c
- site_page: https://node-postgres.com/features/pipelining · fetched 2026-08-29 · 2bb220bafc97
- site_page: https://node-postgres.com/features/pooling · fetched 2026-08-29 · 04c14cad61b4
- site_page: https://node-postgres.com/features/transactions · fetched 2026-08-29 · e1ffaff7389d
- site_page: https://node-postgres.com/features/types · fetched 2026-08-29 · 48ea704afbf7
- site_page: https://node-postgres.com/features/ssl · fetched 2026-08-29 · 4b523d7689dc
- site_page: https://node-postgres.com/features/native · fetched 2026-08-29 · d44a41c83f58
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| brianc/node-postgres | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="brianc/node-postgres")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem