node-postgres

JSON →
library 1.0.0 ·javascript
verified Jun 5, 2026

Non-blocking PostgreSQL client for Node.js. Pure JavaScript with optional native libpq bindings. Current stable version is 8.x. Supports parameterized queries, prepared statements, connection pooling, COPY operations, LISTEN/NOTIFY, and extensible type coercion. Key differentiators: same API for both pure JS and native bindings, lightweight abstractions, and a monorepo with modular packages (pg, pg-pool, pg-cursor, pg-query-stream, pg-connection-string, pg-protocol).