A lightweight, composable SQL builder for TypeScript and JavaScript that constructs SQL statements programmatically without string concatenation or ORM overhead. Current stable version 0.3.4 (semver pre-1.0). It provides a flexible `sql` tagged template literal and function, along with a `ParameterCollector` for named or indexed parameters to prevent SQL injection. Key differentiators: no dependency on ORM, intuitive function-based query construction (e.g., `INSERT_INTO`, `SELECT`, `WHERE`), support for conditional fragments via falsy values, and a small API surface focused solely on SQL generation. TypeScript types included.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package is ESM-only. Use named import, not default.
All fragment functions (e.g., INSERT_INTO, VALUES, SELECT) are named exports, not default exports.
Use named import with ES module syntax.
Shows building a parameterized INSERT with conditional rows using ParameterCollector.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.