sql-js-builder
JSON →A lightweight, driver-agnostic SQL WHERE clause builder that uses plain JavaScript data structures and the builder pattern. Version 0.0.18 ships TypeScript types and is released on npm. Unlike many SQL builders, this library does not depend on any specific database driver or ORM, outputting raw SQL fragments with `?` placeholders. It is designed to simplify constructing parameterized WHERE clauses without string concatenation, with a focus on maintainability and minimal external dependencies. The library currently supports basic comparison operators (eq, neq, gt, gte, lt, lte) and logical grouping, but does not support indexed placeholders, joins, or subqueries. Its release cadence is infrequent, with the last update in 2024.
Resources
packagesql-js-builder ↗