ts-postgres

JSON →
library 2.0.4 ·javascript
verified Jun 5, 2026

Non-blocking PostgreSQL client for Node.js written in TypeScript, currently at v2.0.4. Supports both ESM and CommonJS modules. Key differentiators include built-in types, pipeline queries, extensible value model, and hybrid query result objects (iterable both synchronously and asynchronously). Has no runtime dependencies, but requires Node >=18 and @types/node peer dependency. Actively maintained on GitHub with regular releases. Compared to alternatives like `pg`, it offers TypeScript-first design and binary result data format.