darold/pgFormatter
A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/ observed · 2026-10-11
Health v2 · maintenance only
87/100
- Activity 95
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 118
- age_days: 5050
- days_rel: 46
- days_push: 30
- n_releases_24m: 6
Adoption not part of the score
1958 stars · 122 forks observed · 2026-10-11
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pgFormatter is a PostgreSQL SQL syntax beautifier that reformats SQL and PL/pgSQL code according to SQL standards and PostgreSQL-specific keywords. It runs as a console program or CGI script, outputting text, HTML, or JSON.
Use cases
- format messy SQL queries for readability
- beautify PL/pgSQL code from PostgreSQL
- standardize SQL formatting across a team
- anonymize literals in SQL before sharing queries
- serve an online SQL formatting service via CGI
- reformat SQL files in place from the command line
When to choose
- you work with PostgreSQL or PL/pgSQL and need consistent SQL formatting
- you want a lightweight CLI formatter without a database connection
- you need to hide sensitive literals before formatting queries
- you want to embed SQL formatting in a web service
When to avoid
- you need formatting for other SQL dialects with vendor-specific extensions beyond PostgreSQL
- you want an IDE-integrated formatter with live preview
- you need SQL linting or query validation, not just formatting
Facets
cli-tool · maturity active
formatter cli developer-tools databases developer-tools cli cross-platform sql-formatter postgresql beautifier plpgsql cgi command-line web-server
1 source
- readme: https://github.com/darold/pgFormatter · fetched 2026-10-11 · 35aab6791170
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| darold/pgFormatter | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="darold/pgFormatter")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem