
R
Reladraw
Open Source๐ Alt to MermaidA diagram language where you decide exact placement
๐ณ Self-Hostable๐ No Sign-upโก Editorial Signal: 90/100โ
1,209 Stars
npm install -g reladrawReladraw is a code-driven diagramming tool that gives developers explicit control over element placement instead of relying solely on automated auto-layout engines. It bridges the gap between the speed of text-to-diagram generators and the precision of manual canvas tools.
Define exact coordinates and relative placements using an intuitive domain-specific language.
Store your architecture diagrams cleanly in version control alongside your source code.
Override automatic layout failures instantly by declaring exact node locations when needed.
Creating complex system architecture diagrams that require strict layout positioning
Maintaining version-controlled network topologies alongside infrastructure-as-code
Generating clean sequence and flow charts without fighting automated layout engines
Unlike Mermaid which entirely automates node placement often resulting in messy routing, Reladraw empowers developers to explicitly dictate where things go.
Software architects and developers who want code-driven diagrams without losing manual layout control.
Reladraw is engineered to eliminate critical operational friction in devtools & cli. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
Reladraw is a deterministic code-driven diagramming compiler engineered to permanently resolve the erratic layout behavior and edge-routing jitter that plague traditional text-to-diagram generators. Monolithic layout tools like Graphviz (dot) and Mermaid rely on probabilistic hierarchical or force-directed layout algorithms that recalculate all coordinate vectors upon minor text edits, producing jarring visual instability and disrupted reader comprehension. Reladraw dismantles this paradigm through a TypeScript-based compiler pipeline built upon a custom lexical tokenizer and recursive descent parser. Instead of guessing node positions through stochastic heuristics, the layout engine executes a deterministic geometric constraint solver that evaluates explicit relative spatial declarations: keywords including above, below, left of, right of, and axis alignment primitives such as even with and level with. The parsing pipeline models nested containment hierarchies using dot notation (such as server.docker), translating high-level spatial assertions into an immutable Cartesian coordinate graph. The layout calculation engine strictly respects declared dimensional gaps (such as gap: tight or explicit numerical pixel offsets), calculating precise bounding boxes and collision-free connection routes without perturbing surrounding visual components. The final compilation pass emits clean, standards-compliant, standalone SVG markup with embedded vector styling, guaranteeing pixel-perfect rendering across modern web browsers, documentation engines, and vector design tools.
Developer ergonomics in Reladraw are meticulously optimized for Git-native software development and architectural documentation workflows. Diagrams are authored entirely in lightweight, human-readable plain text files (.reladraw), allowing architectural schemas, network topologies, and microservice maps to live directly alongside source code in version control. Because the compilation engine is completely deterministic, minor edits to a single node produce surgical, clean Git diffs, eliminating the chaotic multi-line diff churn typical of auto-layout tools. The developer feedback loop is near-instantaneous: the Reladraw CLI compiles complex multi-node architecture diagrams in single-digit milliseconds, integrating smoothly into local pre-commit hooks and automated documentation builds. Command-line flags provide flexible workflows, including output destination flags (-o output.svg) and live filesystem watch modes. Configuration ergonomics are clean and declarative, removing the need for verbose JSON styling files. Error reporting is exceptionally developer-friendly: if contradictory geometric placement rules create an impossible layout dilemma (such as circular directional dependencies), the compiler halts immediately and emits line-numbered syntax diagnostics pointing directly to the offending rule. Additionally, an interactive browser-based playground enables engineers to prototype, visualize, and refine relative placement rules interactively before committing source files to project repositories.
Distributed under the permissive MIT open-source license, Reladraw establishes an unbeatable total cost of ownership advantage over commercial cloud diagramming SaaS platforms. Enterprise visual collaboration software (such as Lucidchart, Miro, or Draw.io Cloud) regularly levies recurring subscription fees ranging from $8 to $20 per user per month, accumulating thousands of dollars in annual software overhead across engineering departments while siloing technical documentation behind proprietary cloud formats. Reladraw completely eradicates software licensing expenditures: it is 100% free, fully auditable, and self-contained with zero telemetry backdoors, user tracking, or cloud lock-in. From a hardware and compute resource perspective, the compiler runtime is exceptionally lean, requiring less than 40MB of memory and negligible CPU overhead during single-threaded execution. The developer hour opportunity cost is equally compelling: while Reladraw requires slightly more intentionality during initial layout specification compared to zero-configuration auto-layout tools like Mermaid, it saves 30 to 40 hours of engineering maintenance time annually per architect by eliminating the constant, frustrating layout re-tweaking and routing gymnastics that plague automated diagram engines. By keeping diagram source text inside local Git repositories, teams completely prevent third-party telemetry harvesting and eliminate recurring enterprise seat subscription invoices forever.
Reladraw earns an enthusiastic ToolsRadar production readiness verdict: it is the premier recommendation for software architects, systems engineers, and technical documentation leads who demand absolute, deterministic control over diagram geometry without abandoning the power of diagram-as-code workflows. It is ideally suited for microservice architecture documentation, cloud network infrastructure maps, and formal technical publications where element placement carries critical semantic meaning. Conversely, developers needing quick, low-fidelity scratchpad sequence flows or automated entity-relationship dumps where aesthetic precision is irrelevant may find Mermaid or PlantUML slightly faster for initial drafts. Potential operational failure modes are confined to authoring syntax errors, such as cyclical relative placement definitions or unresolved node identifiers, which the compiler proactively flags with clear geometric contradiction errors. Deployment readiness is turnkey across all modern software stacks: Reladraw installs globally via npm (npm install -g reladraw) or runs as a headless CI build step in GitHub Actions, GitLab CI, and Docker container pipelines. It integrates seamlessly into modern static site generators including Astro, VitePress, Docusaurus, and Next.js, compiling crisp, responsive architecture diagrams directly into production documentation portals. For teams operating across polyglot microservice ecosystems, Reladraw guarantees unambiguous, reproducible architectural communication.
Reladraw is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike Mermaid which entirely automates node placement often resulting in messy routing, Reladraw empowers developers to explicitly dictate where things go.
Yes. Reladraw is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Reladraw. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Reladraw quickly using the following command: npm install -g reladraw Visit the official portal at https://github.com/reladraw/reladraw for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Reladraw was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Reladraw and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/reladraw-a-diagram-language-where-you-decide-where-to-place-)<a href="https://lordorange.top/tool/reladraw-a-diagram-language-where-you-decide-where-to-place-" target="_blank"><img src="https://lordorange.top/badge/reladraw-a-diagram-language-where-you-decide-where-to-place-.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Reladraw.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.