# sql-formatter — card for AI agents

Format and beautify SQL queries for improved readability.

Category: Utilities · npm package `sql-formatter` · latest version 15.9.0 (checked 2026-11-01)
Install: `npm install sql-formatter`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 51.2 (#1838 of all tools, 202 of 408 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 8,855,170 (as of 2026-11-24), +60.1% over 4 weeks
- GitHub stars: 2,897 (as of 2026-11-24)
- Last push: 2026-11-20

## Often used with
Prettier 83.3%, Tailwind CSS 100.0%, CodeMirror 66.7%, Marked 66.7%, Vite 66.7%, Vitest 66.7%

## Links
- AgentGid page: https://agentgid.com/tools/sql-formatter/
- Repository: https://github.com/sql-formatter-org/sql-formatter

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
