Reladraw: A Diagram Language with Precise Placement Control
Original source
Show HN: Reladraw – A diagram language where you decide where to place things
Hacker News →Reladraw is a new text-based diagram language that allows users to specify the exact placement of elements. Unlike auto-layout tools like Mermaid or Graphviz, which determine placement automatically, or absolute-positioning tools like draw.io, which require manual coordination adjustments, Reladraw enables users to define relative positions using statements such as ‘above,’ ‘below,’ ‘left of,’ and ‘right of.’ This approach ensures that diagrams remain precise and intentional, making it easier to modify specific elements without rebuilding the entire layout. The language is designed to be agent-friendly, with a syntax that can be understood and generated by AI tools. Reladraw is currently in its early stages but includes a parser, resolver, and SVG renderer, with plans to add diagnostics and edge routing in future updates.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.