open-diagram

lukendeasy

Python building blocks for dense architecture diagrams that check their own layout for overlaps and crossings, with a gallery and a comparison against Mermaid, D2, draw.io and Excalidraw.

PythonCreated

What is lukendeasy/open-diagram?

open-diagram provides Python building blocks for dense architecture diagrams that check their own layout. You describe panels, tiles, lines and groups in a short script. The library measures each label from the font, places the blocks, and reports by name if two panels collide or a line runs through a panel. The output is an SVG and a PNG.

The same blocks can describe software systems, release pipelines and layered stacks. The README links to a gallery, documentation and a comparison with Mermaid, D2, draw.io, Excalidraw and archify, so readers can see where the tool fits among its alternatives. Generated diagrams are only as accurate as the description behind them, so layout checks reduce the need for review but do not remove it.

It suits engineers who document systems in code and want diagrams they can regenerate, and teams comparing diagram tools.

ai-agentsarchitecture-diagramsclaudediagramsdiagrams-as-codepythonsvg