Building a Client-Side SQL Formatter with Vanilla JS and Web Workers
Most SQL formatters process queries server-side. That means every time you click "Format", your SQL gets sent to a random backend — with no guarantee of what happens to it. I wanted something different: a formatter where your data never leaves your browser. sqlformat.io is built with: Vanilla JavaScript — no framework, no build step sql-formatter — the formatting engine Web Workers — formatting runs off the main thread so the UI stays snappy even on 1000+ line queries Cloudflare Pages — zero-cos


