porsager/postgres

Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 19 minutes ago
Added to GitGenius on September 7th, 2026
Created on November 22nd, 2019
Open Issues & Pull Requests: 299 (+0)
GitHub issues: Enabled
Number of forks: 371
Total Stargazers: 8,723 (+1)
Total Subscribers: 48 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.2 days
Mean response time: 48.1 days
90th percentile: 163.1 days
Tracked items: 172

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 50% of tracked open issues have had no activity in three months. Only 2% of issues opened in the past year have been closed. Three people close 58% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 161
New in 7 days: 4
Closed in 7 days: 1
Avg open age: 539 days
Stale 30+ days: 133
Stale 90+ days: 120

Recent activity

Opened in 7 days: 3
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 2

Top labels

  • Typescript (7)
  • enhancement (5)
  • bug (4)
  • v4 (3)
  • help wanted (1)
  • invalid (1)

Detailed Description

Postgres.js is a PostgreSQL client library for Node.js, Deno, Bun, and CloudFlare Workers that emphasizes performance and developer experience through ES6 tagged template strings.

The library addresses the need for a fast, full-featured PostgreSQL driver by using tagged template literals as its core query interface. This approach automatically extracts and parameterizes query values before sending them to the database, preventing SQL injection while enabling dynamic query construction. Parameters are serialized according to inferred types and sent separately to the database, which handles escaping and casting. Queries return result arrays with objects mapping column names to row values and are executed only when awaited or when explicitly calling execute().

Developers should choose this tool if they need a lightweight PostgreSQL client with a simple API surface that prioritizes performance. The project suits applications built with Node.js, Deno, Bun, or CloudFlare Workers where query safety and speed matter. The README highlights that the library is the fastest full-featured PostgreSQL client available in its category, though it does not name specific alternatives for comparison. Beyond basic queries, the tool supports transactions, data transformation, listen and notify functionality, realtime subscriptions, custom types, connection pooling with reserved connections, and TypeScript support.

Development activity shows consistent maintenance with regular updates to the changelog. The project maintains active community engagement through Gitter chat and social media presence. The codebase demonstrates attention to both performance optimization and API usability, with documentation covering connection management, advanced query methods, error handling, and type support across multiple JavaScript runtimes.