95
Points
19
Comments
robhati
Author

Top Comments

written-beyondJun 14
100/10 for mobile usability. Panning, Zooming, selecting and moving was so seamless I thought I was tripping out.
corkybetaJun 14
Could we have the option of straight lines and 90 degree angles? I’ve never really liked the bendy ones. Looks cool, good job!
robhatiJun 14
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

rognjenJun 14
There's also Azimutt: https://azimutt.app/gallery
WhyIsItAlwaysHNJun 14
Maybe you can support schemas in more dialects by using a similar approach to a little tool I made: sqlscope.netlify.app

Basically integrate sqlglot to translate the schema between dialects and then use a base dialect for generating the schema.

The two tools seem complementary and you seem to be a better designer, so it would be nice to see it all together

agentic_vectorJun 14
I was looking for it, thanks! Great work!
_f1ouJun 14
The GitHub link takes you to the front page of GitHub instead of the actual project.
John_KwickJun 14
Okay thats pretty cool. Nice job!
Visit the Original Link

Read the full content on sqltoerdiagram.com

Source
sqltoerdiagram.com
Author
robhati
Posted
June 14, 2026 at 03:43 AM


More Top Stories

phoenixframework.org Jun 14
Phoenix LiveView 1.2 Released
8214 commentsby ksec
Details
juniperspring.org Jun 14
Honda Civics and the Evil Valet
26043 commentsby librick
Details
twitter.com Jun 13
GLM 5.2 Is Out
556297 commentsby aloknnikhil
Details
desfontain.es Jun 13
Noise infusion banned from statistical products published by Census Bureau
818509 commentsby nl
Details
garrit.xyz Jun 14
Don't trust large context windows
5640 commentsby computersuck
Details
tonsky.me Jun 13
Every Frame Perfect
686226 commentsby ravenical
Details
👋 Need help with code?