open-diagram uses short Python scripts to describe panels, boxes, connections, and groups. The library measures the width of each label based on font kerning before placing them. During the build process, it checks the layout: if two panels are too close or a connection crosses another panel, it explicitly reports the issue and suggests how to fix it. After save() writes out SVG and PNG files, it throws a complete list of issues. Text is converted into shapes, ensuring consistent display in browsers, PowerPoint, Keynote, and Figma, with the Inter font included. It can draw system maps, release pipelines, hierarchical structures, data models, and business processes, while also providing an MCP server and agent skills.
Why it matters Designed for agents to draw: labels are measured for width according to the font, and layout issues are listed directly during the build with suggested fixes, making it less likely to produce misaligned diagrams on the first attempt.
Stars 404 (+17 / 24h)
Reasons
- 17 new stars in 24 hours, total stars 404 (indicating attention only); MIT license
- The README echoes comparison pages for tools like Mermaid, D2, draw.io, and Excalidraw, as well as explanatory paragraphs that can be pasted into AGENTS.md
Usage
- pip install open-diagram (Python 3.10+); exporting PNG requires Chrome, Chromium, or Edge installed locally; in Claude Code, run claude mcp add open-diagram -- uvx open-diagram mcp, then ask the agent to "use open-diagram to draw the request chain for this service"
Risks
- Requires writing Python scripts to describe diagrams, unlike Mermaid which can generate diagrams from a single text block; if no browser is found, it only outputs SVG
- The project was created just over a week ago, so the interface may still change