SQL Compose

JSON →
library 2.4.5 ·javascript
verified Jun 7, 2026

SQL Compose (v2.4.5) is a lightweight JavaScript library for building parameterized SQL queries using function composition and string interpolation. Released in 2019, it follows a semver cadence with infrequent updates. It differentiates from raw template literals and ORMs by offering safe interpolation via wrapper functions, automatic parameter numbering, and support for nested thunks. The library is ESM-only and provides TypeScript definitions. Alternatives like sql-template-strings or squel offer similar functionality but with different API designs.