pgsqwell

JSON →
library 6.0.1 ·javascript
verified Jun 5, 2026

pgsqwell is an immutable SQL template tag library for PostgreSQL, currently at version 6.0.1. It provides tagged template literals (sql, sqlPart) and helpers (escapeSQLIdentifier, joinSQLValues) for safe SQL construction without risk of injection. Unlike alternatives (e.g., node-postgres template libraries), it emphasizes immutability and separation of concerns: use `sql` for full statements and `sqlPart` for subparts. It ships TypeScript declarations and requires Node >=24.14.0. The library is actively maintained with a focus on correctness and composability.