brianc/node-postgres

PostgreSQL client for node.js.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 54 minutes ago
Added to GitGenius on September 4th, 2026
Created on October 15th, 2010
Open Issues & Pull Requests: 527 (+0)
GitHub issues: Enabled
Number of forks: 1,351
Total Stargazers: 13,204 (+0)
Total Subscribers: 179 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.2 hours
Mean response time: 88.6 days
90th percentile: 179.1 days
Tracked items: 258

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 88% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "waiting for more info" is answered fastest, typically in about 11 hours, while "bug" waits about 6 days. Only 4% of issues opened in the past year have been closed. Three people close 79% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 118
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 1,320 days
Stale 30+ days: 102
Stale 90+ days: 87

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 1

Top labels

  • feature request (24)
  • question (20)
  • bug (19)
  • waiting for more info (13)
  • 9.0 (2)
  • duplicate (2)

Detailed Description

node-postgres is a PostgreSQL client for Node.js that provides non-blocking database access through pure JavaScript or optional native libpq bindings.

The tool solves the problem of connecting Node.js applications to PostgreSQL databases by offering a non-blocking client that works across multiple JavaScript runtimes including Node.js, Bun, Deno, and Cloudflare Workers. It implements the PostgreSQL wire protocol in pure JavaScript while also supporting native libpq bindings, allowing developers to choose between portability and performance. The client handles parameterized queries, connection pooling, named statements with query plan caching, async notifications via LISTEN/NOTIFY, and bulk operations through COPY TO/COPY FROM.

Developers should choose this tool if they need a lightweight PostgreSQL client without heavy abstraction layers. It suits projects ranging from simple scripts to production applications requiring connection pooling and advanced PostgreSQL features. The monorepo structure provides modular packages for specific needs: the core pg module for basic connectivity, pg-pool for connection management, pg-native for native bindings, pg-cursor and pg-query-stream for streaming results, and pg-protocol for low-level protocol handling.

The project maintains active development with regular updates to address bugs and improve documentation. The maintainer actively engages with the community through issue tracking and social channels, soliciting feedback on documentation clarity. The tool has established itself as a foundational library in the Node.js PostgreSQL ecosystem, with community contributions documented through a sponsors list.