Free SQL→ER diagram tool, runs in the browser, nothing uploaded

robhati 20 points 9 comments June 14, 2026
sqltoerdiagram.com · View on Hacker News

Discussion Highlights (6 comments)

encodedrose

The GitHub link takes you to the front page of GitHub instead of the actual project.

robhati

It's a small too nothing great I just figured others might find it useful too. I kept finding myself needing to visualize database schemas, but most tools had the same problems: paywalls, mandatory signups, or sending your SQL to someone else's server. No backend, no accounts, no data leaving your machine. A few implementation details that were fun: * Built on <canvas> instead of DOM/SVG. Tables are rasterized into cached bitmaps with viewport culling, which keeps things smooth even with hundreds of tables on screen. * The SQL parser tracks source spans for every token. That lets edits stay surgical so a rename a table and only the relevant identifier (and its references) change while comments and formatting remain untouched. * The URL contains the entire schema. Sharing simply serializes the schema into the URL itself, so there's no backend, no stored state, and no account required. * I also experimented with a Rust/WASM version because why not? but the parser was ~37% slower because the JS↔WASM boundary cost outweighed the compute savings but The O(n^2) overlap-resolution pass was about 2.2x faster though * In the end I stuck with plain JavaScript. No framework ~32KB gzipped

agentic_vector

I was looking for it, thanks! Great work!

corkybeta

Could we have the option of straight lines and 90 degree angles? I’ve never really liked the bendy ones. Looks cool, good job!

John_Kwick

Okay thats pretty cool. Nice job!

written-beyond

100/10 for mobile usability. Panning, Zooming, selecting and moving was so seamless I thought I was tripping out.

Semantic search powered by Rivestack pgvector
10,416 stories · 97,847 chunks indexed