sql-formatter-org/sql-formatter
A whitespace formatter for different query languages observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 99
- Release rhythm 89
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 16
- age_days: 3642
- days_rel: 73
- days_push: 10
- n_releases_24m: 34
Adoption not part of the score
2886 stars · 455 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript/TypeScript library that pretty-prints SQL queries across many dialects including PostgreSQL, MySQL, BigQuery, Snowflake, and PL/SQL. It can be used programmatically, via a CLI, or through a web demo, with options for keyword casing, indentation, and placeholder replacement.
Use cases
- format sql queries
- pretty print sql code
- format mysql queries in javascript
- sql formatter cli
- standardize sql formatting in codebase
- format bigquery or snowflake sql
- replace placeholders in prepared sql statements
When to choose
- you need to format SQL across many dialects in a JS/TS project
- you want a CLI or browser-based SQL formatter
- you need configurable keyword casing and indentation styles
When to avoid
- you need to format stored procedures or custom delimiters
- you need a full SQL parser or linter rather than a whitespace formatter
- you work outside the JavaScript ecosystem and prefer a native tool
Facets
library · maturity active
formatter parser cli developer-tools databases web-development cli browser cross-platform sql pretty-printing sql-dialects typescript code-formatting nodejs
2 sources
- readme: https://github.com/sql-formatter-org/sql-formatter · fetched 2026-08-28 · ae82ec8e3979
- homepage: https://sql-formatter-org.github.io/sql-formatter/ · fetched 2026-08-29 · 31d9ffa2a75f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sql-formatter-org/sql-formatter | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="sql-formatter-org/sql-formatter")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem