Show HN: Reladraw – A diagram language where you decide where to place things (opens in a new tab)github.com
415 pointsI love making diagrams to help understand, plan, etc. However, the options are (A) auto-placement languages like Mermaid or Graphviz (which don't let me decide how the diagram looks), or (B) software like Draw.io which are powerful but are very time consuming (and inefficient for agents to manipulate).
I wanted to have the benefits of both, where you can define a diagram in a diagram language, but also retain a high degree of control over what the diagram looks like.
I also wanted this to work well for humans and agents.
On the Github link, there's a playground where you can try it out without installation. There's also instructions for a simple npm install and for installing a skill you can use with Claude or other agents.
Comments (119) 47 threads
Earlier commentsAs a compiler writer I'm pondering if it'd be possible to parametrise to a degree with data-sources or you think that's something better suited to custom script generators (right now, it feels like you want to write a lot of this manually, but the grouping system does lend itself to wildcard expansions from data.
Am I getting that right? Super curious, because that sounds cool.
It's a great starting point and I can see functions,etc being useful for other purposes so I think there's a tightrope to be walked in the design to be extensible but not get bogged down early either (if a function can result in an enumeration, you don't need a specific CSV/JSON syntax if it's just the result of a function.. but that adds other complciations naturally).
The idea with Reladraw is that a human or agent could just state "I want this node to the right of this other one", rather than have a layout engine decide. Hopefully less fiddling for agents!
All comments shown.
Couldn't load more comments. Check your connection and try again.