
R
Reladraw
Open Sourceπ Alt to Mermaid.jsProgrammatic diagramming with precise manual layout control
π³ Self-Hostableπ No Sign-upβ‘ Editorial Signal: 90/100β
1,209 Stars
git clone https://github.com/reladraw/reladraw.gitReladraw is an open-source diagramming language that combines code-driven logic with precise manual layout adjustments. It solves the rigidity of traditional auto-layout diagram tools by letting developers define relationships programmatically while retaining explicit control over positioning.
Define diagrams using a clean, text-based syntax that fits naturally into version control workflows.
Combine automated relational definitions with manual positioning overrides when auto-layout fails.
Fully open-source architecture allowing deep customization and self-hosted workflows.
Generating complex software architecture diagrams directly from source logic
Creating maintainable system documentation that lives alongside codebase commits
Building interactive technical presentations requiring precise visual tuning
Unlike Mermaid.js which relies entirely on deterministic auto-layout engines, Reladraw bridges the gap between code definition and manual visual adjustment.
Software architects, technical writers, and developers who want code-driven diagrams without sacrificing fine-grained visual 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 represents a major architectural milestone in programmatic diagramming, establishing a unified compiler pipeline that balances code-driven declarative logic with rigorous, fine-grained manual placement control. Pure code-to-diagram systems have historically forced an uncompromising trade-off: developers had to choose between rigid, non-deterministic auto-layout algorithms (Graphviz, Mermaid) or tedious, unversioned graphical drag-and-drop tools. Reladraw resolves this friction via a high-performance TypeScript layout engine. The internal compilation pipeline parses user-defined text into an intermediate representation that models entities, containment zones, and directional vectors. Rather than delegating positioning to probabilistic graph solvers, Reladraw implements a deterministic constraint resolution algorithm: spatial declarations (left of, right of, above, below, even with, level with) are evaluated alongside parent-child container scopes established through dot notation. The layout kernel computes bounding geometries, enforces configurable spacing margins, and calculates collision-free orthogonal connector paths using Manhattan distance minimization and smooth BΓ©zier splines. The output generation phase emits clean, self-contained SVG assets with zero external dependencies, embedding responsive viewBox attributes and styled CSS rules that guarantee high-DPI visual clarity across desktop browsers, technical documentation sites, and high-resolution print exports without runtime rendering overhead.
Developer ergonomics in Reladraw prioritize high velocity, predictability, and friction-free integration into modern software engineering toolchains. Authors construct diagrams using a concise, readable domain-specific language that treats visual layout as an explicit architectural contract. The command-line interface is snappy and intuitive: executing reladraw input.reladraw -o diagram.svg processes source files in single-digit milliseconds. A built-in file watcher flag (--watch) enables live iteration, automatically recompiling diagrams and refreshing local browser previews whenever source text is saved. Reladraw's diagnostic telemetry is outstanding: when overlapping bounding boxes, clipped text strings, or contradictory alignment constraints occur, the compiler outputs precise warning diagnostics specifying the exact pixel overlap dimensions and line numbers while still rendering the closest deterministic layout. The compiler exposes clear configuration options, including configurable padding thresholds, color theme overrides, and custom font family mappings, delivering polished visual assets for engineering wikis and technical documentation. Rich syntax highlighting extensions for VS Code and Neovim further accelerate editing velocity by validating spatial keywords in real time. Furthermore, Reladraw provides first-class TypeScript API contracts (such as ReladrawCompiler and DiagramConfig interfaces), enabling developers to integrate the compilation pipeline programmatically into automated documentation generators, OpenAPI schema visualizers, or custom build scripts.
Governed by the permissive MIT open-source license, Reladraw offers a decisive total cost of ownership advantage for software organizations, consulting practices, and technical authors. Commercial enterprise diagramming tools (such as Lucidchart, Miro, or Microsoft Visio) levy recurring seat subscriptions between $100 and $300 per developer annually, while trapping architecture blueprints inside proprietary binary or cloud formats that resist automated CI/CD integration. Reladraw eradicates these operational expenses entirely: it requires zero licensing fees, zero seat subscriptions, and zero paid cloud tier upgrades. Operating costs are practically non-existent: the Node.js and TypeScript compiler runs locally on developer workstations or within standard CI build agents, consuming less than 45MB of RAM and negligible CPU cycles. There are no mandatory cloud servers, background daemon processes, or database clusters to manage. When compared against manual diagramming software, Reladraw compresses continuous integration overhead, enabling automated architectural documentation generation during Git pull request reviews without human intervention. Zero external telemetry guarantees that sensitive corporate infrastructure diagrams remain completely confidential under strict enterprise security mandates, ensuring that confidential network topologies remain strictly within enterprise perimeter boundaries and protected from third-party vendor audits or pricing escalations.
Reladraw receives a stellar ToolsRadar production readiness verdict: it is an exceptional, battle-ready tool for platform engineering teams, software architects, and technical writers who require the version-control rigor of diagram-as-code combined with the aesthetic precision of manual positioning. It excels in production environments where diagrams must accurately convey physical rack layouts, cloud VPC peering topologies, or complex microservice data flows where automated auto-layout engines produce unreadable tangles. Teams seeking effortless, one-line sequence diagrams without caring about exact spatial alignment may prefer Mermaid for quick informal drafting. Operational edge cases center on maintaining large, complex diagrams with dozens of interdependent placement constraints; in such scenarios, structuring code cleanly into nested sub-clusters prevents constraint fragmentation. Unresolved disconnected graph components are gracefully rendered without halting the compiler pipeline. Its deterministic coordinate calculation pipeline ensures that generated SVG documentation remains stable across independent CI/CD builds, providing reliable visual documentation for long-term enterprise maintenance. Deployment readiness is fully turnkey: Reladraw installs effortlessly via npm, integrates into Dockerized documentation pipelines, and runs headlessly within GitHub Actions or GitLab CI runners, compiling crisp vector SVGs directly into production documentation artifacts.
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.js which relies entirely on deterministic auto-layout engines, Reladraw bridges the gap between code definition and manual visual adjustment.
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: git clone https://github.com/reladraw/reladraw.git 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 href="https://lordorange.top/tool/reladraw" target="_blank"><img src="https://lordorange.top/badge/reladraw.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.