# porsager/postgres

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

Repository: https://github.com/porsager/postgres
Canonical: https://ross.abutalabs.com/products/porsager-postgres
Language: JavaScript
License: Unlicense
License Family: permissive
Topics: postgresql, postgres, database, nodejs, driver, client, deno, cockroachdb
Last push: 2026-04-05T16:02:19+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 54, longevity 100
- inputs: {"age_days": 2476, "days_push": 150, "days_rel": 150, "gap_med": 148.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8711, forks 362 (observed 2026-08-28T04:10:24.360717+00:00)

## What it is
Postgres.js is a fast, full-featured PostgreSQL client library for Node.js, Deno, Bun, and Cloudflare Workers. It uses ES6 tagged template strings for safe, ergonomic SQL queries with a simple surface API.

## Use cases
- query postgres from nodejs
- run parameterized sql queries without injection
- connect to postgres from deno or bun
- use postgres in cloudflare workers
- manage postgres transactions in javascript
- subscribe to postgres realtime updates
- listen and notify with postgres

## When to choose
- you want a fast, modern postgres driver with tagged-template query building
- you need edge or serverless runtime support like Cloudflare Workers
- you prefer a simple API over heavyweight ORMs

## When to avoid
- you need a full ORM with migrations and model relations
- you use a database other than PostgreSQL or CockroachDB
- you need connection pooling across multiple processes with advanced features of pg

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, web-development
- platform: bun, cloud
- tags: postgresql, sql, tagged-template-strings, esm, typescript-support, edge-runtime, nodejs, deno

## Member repositories
- porsager/postgres (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:24.360717+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:21.951627+00:00, confidence not recorded.
  - readme: https://github.com/porsager/postgres (fetched 2026-08-28T04:10:24.360717+00:00, sha 24883816eaf4)
  - registry_npm: https://registry.npmjs.org/postgres (fetched 2026-08-29T08:26:00.304234+00:00, sha 2c1e8cebf9e9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
