hiddentao/squel
:office: SQL query string builder for Javascript observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 96
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5370
- days_rel: n/a
- days_push: 24
- n_releases_24m: 0
Adoption not part of the score
1570 stars · 230 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Squel is a lightweight SQL query string builder library for JavaScript and TypeScript with a fluent, method-chaining API. It generates standard SELECT/INSERT/UPDATE/DELETE statements plus dialect-aware features (CTEs, UPSERT, MERGE, RETURNING, window functions) for MySQL, PostgreSQL, SQLite, and MS SQL Server, running in both Node.js and the browser.
Use cases
- build sql queries in javascript without string concatenation
- sql query builder for node.js or typescript
- generate parameterized sql queries with safe value escaping
- build postgres upsert or mssql merge queries programmatically
- write cte and window function queries with a fluent js api
- construct sql statements dynamically at runtime in the browser
- avoid sql injection from brittle string substitution when assembling queries
When to choose
- You need to construct SQL query strings programmatically with a clean, fluent API but do not want a full ORM
- You want a tiny (~8 KB) dependency that works in both Node.js and the browser
- You need dialect-specific SQL features like Postgres UPSERT, SQL Server MERGE, RETURNING/OUTPUT clauses, or window functions
- You want a library you can extend with custom query blocks or commands
When to avoid
- You need to actually connect to and execute queries against a database - squel only builds SQL strings and ships no drivers
- You need full ORM capabilities such as migrations, schema management, or result mapping (consider Knex or a dedicated ORM)
- You intend to generate queries in the browser and execute them server-side, which is an unsafe pattern the project explicitly warns against
Facets
library · maturity active
database databases backend web-development developer-tools browser cross-platform sql query-builder query-string-builder typescript javascript mysql postgresql mssql sqlite fluent-api method-chaining parameterized-queries cte window-functions esm npm nodejs
3 sources
- readme: https://github.com/hiddentao/squel · fetched 2026-08-28 · 15d8950372c9
- homepage: https://hiddentao.github.io/squel · fetched 2026-08-29 · 61fb6e08f8fe
- registry_npm: https://registry.npmjs.org/squel · fetched 2026-08-29 · 1a27f4772d1f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hiddentao/squel | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem