← Back to Leaderboard
Olukendeasy

lukendeasy/open-diagram

Python diagram engine with build-time layout checks and an MCP server

Engineering Health (Methodology)
A+ · 89/100
Maintenance Activity
● Updated 5d ago
Latest Release
v0.6.2
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence20/20
License Clarity20/20
MCPCLI
Total Stars
★ 447
24h Growth
+8
7d Growth
+57
Forks
36

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

lukendeasy/open-diagram Star History (2026-11-17 - 2026-12-01) DAILY STAR HISTORY (15-DAY D1 TELEMETRY) +446 in 14d · avg +32/day 472 236 0 2026-11-17: ★ 12026-11-18: ★ 82026-11-19: ★ 92026-11-20: ★ 92026-11-21: ★ 92026-11-22: ★ 1612026-11-23: ★ 3712026-11-24: ★ 3902026-11-25: ★ 4052026-11-26: ★ 4192026-11-27: ★ 4302026-11-28: ★ 4372026-11-29: ★ 4392026-11-30: ★ 4392026-12-01: ★ 447 ★ 447 11-17 11-24 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

open-diagram is an MIT-licensed Python diagram engine exposed as a library, CLI, and MCP server. Authors build up a Diagram from panels, tiles, groups, and links. Relative placement methods such as right_of establish the arrangement, while fontTools supplies font spacing and kerning to size labels before placement. Validation then checks the resulting geometry. SVG text is drawn as paths, so viewers do not need the bundled Inter font installed.

The package maps the open-diagram executable to open_diagram.cli:run; the MCP server starts through open-diagram mcp. Python is the direct API, JSON provides a declarative input, and Mermaid has an import path. The manifest lists fonttools>=4.40 and mcp>=2.3,<3 as runtime dependencies, with pillow>=9 in the optional png extra. MCP is an integration surface for coding agents, not a requirement for the layout engine to run.

Key Capabilities & Differentiators

The primitives cover software system maps, layered stacks, release pipelines, data models, and business processes. Panels can carry tiles, footers, and statuses; links can carry labels and kinds. The generated legend includes only the statuses and link kinds used in the diagram. v0.6.0 added packaged JSON templates for AWS ETL, AWS architecture, Azure web apps, and GCP event pipelines.

The layout checker identifies the actual objects involved in a violation: it can report the gap between two named panels or identify the link and panel involved in a crossing. Authors can reposition blocks, specify a route with via_x or via_y, or explicitly permit an intentional crossing with cross_ok=True. v0.6.2 adds diagram-wide routing="orthogonal" for horizontal and vertical line segments. Orthogonal routing changes the shape of links; it does not remove the need to check the layout.

Trade-offs & Limitations

Compared with Mermaid or D2, open-diagram asks authors to make more placement decisions. That is useful when a system map needs a specific reading order or tight control over grouping, but adds work for a simple graph that an automatic layout can handle. Mermaid import offers a starting point, not a reason to assume identical output. Compared with draw.io or Excalidraw, the source-first workflow favors reviewable changes over direct canvas editing. Path-based text avoids font substitution but is less convenient to edit as text after export.

save() writes output and prints a summary before raising LayoutError, so the presence of an SVG is not proof that validation passed. In CI, gate publication on a successful build and keep failed renders only if they are useful for debugging. PNG adds a browser dependency that SVG-only jobs can avoid. MIT covers the project code; check the separate notices for bundled fonts and cloud-provider assets before redistribution.

Hardware & Deployment Guide

Install with pip install open-diagram on Python 3.10 or later. SVG generation does not require a browser. The documented PNG workflow uses Chrome, Chromium, or Microsoft Edge; set CHROME if the executable is outside the usual locations. Start the MCP server with uvx open-diagram mcp, or register it with Claude Code using claude mcp add open-diagram -- uvx open-diagram mcp. A GitHub Action is also available for repository workflows.

v0.6.1 added Windows test coverage alongside Linux and normalized SVG line endings for consistent output across those platforms. v0.6.2 moved MCP into the standard install, kept the empty mcp extra for older commands, and added an MCP Registry listing. The rendering stack does not call for a GPU or model VRAM. For a repeatable CI setup, pin the package and decide whether PNG justifies provisioning a browser; initial package retrieval is separate from local rendering.

Font metrics: fontTools supplies spacing and kerning for label measurement; bundled Inter text is rendered as SVG paths.
Build validation: diagnostics name panels that violate spacing requirements and links that cross panels; save() writes files before raising LayoutError.
Routing controls: routing="orthogonal" produces right-angle paths; via_x and via_y can steer individual links.
Authoring formats: Python and JSON support source-controlled diagrams, and Mermaid import provides a migration starting point.
Agent integration: open-diagram mcp ships in the standard v0.6.2 install, and the server is listed in the MCP Registry.
Cloud templates: packaged JSON examples include aws_etl, aws_architecture, azure_web_app, and gcp_event_pipeline.
Best For

Engineering teams that version architecture diagrams alongside code and want CI or a coding agent to catch named layout violations before publishing.

Skip If

Authors need direct canvas editing, editable text in exported SVGs, or fully automatic placement without maintaining relative positions.

Reviewed on 2026-11-29 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

MCPCLI
pip install open-diagram

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
open-diagram ★447+57PythonMITPython diagram engine with build-time layout checks and an MCP server
archify102k+2.4kJavaScriptApache-2.0Agent skill and Node CLI for source-backed, interactive architecture diagrams.
diagram-design76.8k+4.4kHTMLMITAn Agent Skill for turning diagram prompts into branded HTML and SVG
skills203k+3kPython—A Claude Agent Skills catalog for packaging and reusing task workflows

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/lukendeasy/open-diagram.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

lukendeasy/open-diagram Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about open-diagram

Does a project need MCP to generate diagrams?

No. Use the Python API to define panels and links directly, or use JSON when the diagram should be maintained as declarative data. MCP gives a compatible coding agent access through its client; it isn't required to author or render diagrams. Since v0.6.2 the standard package includes MCP, and the mcp extra remains for compatibility with older install commands.

What runtime resources should we budget for CI?

No GPU or model VRAM is required by the documented rendering stack. SVG generation uses Python and fontTools; the documented PNG workflow needs a supported browser. For CI capacity planning, measure browser startup and memory with representative diagrams at your intended concurrency. If SVG is enough, the rendering job does not need a browser.

Can we run it internally and redistribute it commercially?

Yes. The MIT code license permits commercial use and modification, subject to retaining the required copyright and license notices in redistributed copies or substantial portions. The CLI and client-launched MCP server can run in your own environment. Review the notices for bundled fonts and provider icons separately, particularly before redistributing assets or generated diagrams that incorporate them.

When should we choose it over Mermaid, D2, or a canvas editor?

Keep Mermaid or D2 if concise graph descriptions and automatic placement are the priority. Choose open-diagram when you want explicit control over panel relationships and build diagnostics that name the obstacles. Use draw.io or Excalidraw if direct canvas editing matters more than source-based regeneration. Try Mermaid import on one representative diagram before committing to a migration.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining lukendeasy/open-diagram? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature lukendeasy/open-diagram on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare