json-sql

JSON →
library 0.5.0 ·javascript maintenance
verified Jun 5, 2026

A Node.js library that translates MongoDB-style query objects into SQL queries. Version 0.5.0 is the current stable release, though development activity appears low. It is not a database driver; it only generates SQL strings and parameter values for use with any SQL driver (e.g., node-postgres). Supports SELECT, INSERT, UPDATE, DELETE, JOINs, nested conditions, and parameterized queries with automatic variable naming. Differentiators include a simple JSON-based query syntax, no DSL, and zero runtime dependencies.