← Back to AI Insights
Gemini Executive Synthesis

Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation.

Technical Positioning
Combines the benefits of auto-placement languages (Mermaid, Graphviz) with the control of manual software (Draw.io), addressing the inefficiency for agents.
SaaS Insight & Market Implications
Reladraw addresses a critical gap in diagramming tools: the trade-off between automated layout and precise manual control. By offering a language-based approach that allows explicit placement, it caters to both human users seeking aesthetic control and AI agents requiring programmatic manipulation. This dual focus on human and agent usability is a significant market differentiator, anticipating the increasing role of AI in design and documentation workflows. The inefficiency of traditional tools like Draw.io for agents is a direct pain point Reladraw aims to solve. Its integration with agents like Claude via a 'skill' demonstrates a forward-looking approach to AI-driven design, potentially streamlining complex system architecture, process flows, and data model documentation within B2B contexts.
Proprietary Technical Taxonomy
diagram language decide where to place things auto-placement languages like Mermaid or Graphviz software like Draw.io time consuming (and inefficient for agents to manipulate) define a diagram in a diagram language retain a high degree of control work well for humans and agents

Raw Developer Origin & Technical Request

Source Icon Hacker News Sep 27, 2026
Show HN: Reladraw – A diagram language where you decide where to place things

I 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.

Developer Debate & Comments

picardo • Sep 27, 2026
Love it! I created a VSCode extension to render it in markdown files and highlight its syntax: https://github.com/volkanunsal/relative-diagrams-vscode/
atombender • Sep 27, 2026
The readme says:> Mermaid, Graphviz and D2 let you declare boxes and connections, then determine positions for you. If you have a particular picture in mind, these aren't the right tool.D2's layout engine TALA [1] actually allows you to provide a lot of manual control. TALA used to be commercial, but is now open source.In my own testing, TALA tends to produce much better layouts than Mermaid, including the ELK layout algorithm (which is not Mermaid's default; D2 also supports ELK).TALA supports controlling direction per container, defining which shapes have to be near each other, and so on. I've not played with this yet, though.[1] https://d2lang.com/tour/tala/
tonnydourado • Sep 27, 2026
That's an interesting idea, and an unexplored design space. Graphviz's dot has rank and head/tail ports, and Plantuml's class diagram has some support for relative position, but both are more hints for the layout engine, not deterministic declarations. If I had a nickel for every hour I spent fiddling with a Plantuml diagram to get the relation directions to force the layout into at least an approximation of what I wanted, I'll be a lot closer to retirement.I like that you're going for one generic syntax instead of many specific ones, like mermaid and Plantuml, but it's as much as a pro as it is a con, it's one reason why these languages evolved in the first place, instead of everyone just using DOT. One possible mitigation would be some sort of reuse mechanism? Some way that generic nodes could be defined once and instantiated many times, so if I wanted to draw something like a sequence diagram, I could define/change my participant lanes just once.Another issue the "No multi-line statements, no line continuations, no blocks." philosophy. I get *why* you chose it, and has its advantages, but it's a pretty annoying constraint, specially if one wants to have longer node names, or have more detailed description of the node in its label, like listing the responsibilities of a class, for instance. "No blocks" is something that can probably won't make much difference, but line continuations (i.e., some distinction between physical and logical lines) can make or break the user experience, IMHOThe syntax for line breaks is another thing I urge you to reconsider, '/' is waaay to common of a character, and being forced to write long strings in a single line can get *really* annoying. Some sort of multiline string support would really make your existing syntax shine.The last two suggestions/complaints would complicate your parser a lot, specially since you're writing it manually, so, they are trade offs, but as a user who'd love to have something like this on my toolbelt, not having these features would make me hesitate a lot on investing time in this tool.That said, it's a nice idea, I'll keep an eye on it =)
atoav • Sep 27, 2026
The best looking diagram library where you can explicitly place elements IMO is schemdraw (python). Ironically it is a library for drawing electronic circuit diagrams with some flowchart functionality on the side.Examples: https://schemdraw.readthedocs.io/en/stable/gallery/flowchart...Usage: https://schemdraw.readthedocs.io/en/stable/elements/flow.htm...
boblehest • Sep 27, 2026
The README looks LLM generated. Sorry, but that's where my interaction stops
apinstein • Sep 26, 2026
This is very needed in the AI coding age! I find diagramming is one of the best ways for high bandwidth alignment between my mental model and the agent’s. I have been working on this problem a bit as I see good visuals as a key bottleneck in faster development while maintaining a real architecture.Will def be adding this to my list of diagramming tools the agent can use!
threecheese • Sep 26, 2026
Does this need to be shipped with a renderer? A better question is, are the node layout instructions ultimately being translated into absolute positions?If so, you could target any number of render backends, keeping the same simple interface for your agent, avoiding the bazillion problems rendering engines face to work well across the ecosystem.
zikohh • Sep 26, 2026
https://d2lang.com/ works well?
HeavyStorm • Sep 26, 2026
Mermaid works great for fixed layouts like sequence diagrams and Gantts. For flowcharts, where position is king, it's bad.I've tried using svg in my MD files but they get unwieldy quite fast. This is a great idea. My first reaction was - but what's if I need something more exact. But reflecting on it, I've realized that this relative positioning is probably enough.
recroad • Sep 26, 2026
Seems a little buggy, I added this line:edge parser -> renderer "test edge" from: left to: rightand it wasn't smart enough to make a curved arrow

Frequently Asked Questions

Market intelligence mapped to Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation..

What problem does Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation. solve?
Based on our AI analysis of the original developer request, its primary technical positioning is: Combines the benefits of auto-placement languages (Mermaid, Graphviz) with the control of manual software (Draw.io), addressing the inefficiency for agents.
How is the developer community reacting to Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation.?
Yes, we have tracked 119 direct responses and active debates regarding this specific topic originating from Hacker News.
What architecture is tied to Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation.?
Our proprietary extraction maps Reladraw – A diagram language that allows users to define diagrams while retaining a high degree of control over element placement, designed for both human and AI agent manipulation. to adjacent architectural concepts including diagram language, decide where to place things, auto-placement languages like Mermaid or Graphviz, software like Draw.io.

Engagement Signals

415
Upvotes
119
Comments

Cross-Market Term Frequency

Counts stored text matches for foundational terms like npm install and playground in analysed public discussions. These counts do not measure adoption.

Stored text matches, not adoption or market-share measurements.

  • npm install: 10 records
  • playground: 6 records
  • diagram language: 1 records
  • decide where to place things: 1 records
  • auto-placement languages like Mermaid or Graphviz: 1 records
  • software like Draw.io: 1 records
  • time consuming (and inefficient for agents to manipulate): 1 records
  • define a diagram in a diagram language: 1 records
  • retain a high degree of control: 1 records
  • work well for humans and agents: 1 records
  • Github link: 1 records
  • installing a skill you can use with Claude or other agents: 1 records