open-diagram: open-source Python library lets LLMs generate collision-checked SVG diagrams
kalyan_kpl · x · 2026-11-23
open-diagram is a new open-source project that lets LLMs (Claude, Codex, Cursor) or humans generate clean diagrams from short Python scripts:
- Describe panels, tiles, lines and groups with primitives like Diagram / Panel / Tile; covers software systems, release pipelines, layered stacks, data models and business processes
- The library measures every label from font metrics, lays out blocks automatically, and runs collision checks—if two panels overlap or a line crosses a panel, the build fails with the named elements
- Outputs vector SVG plus PNG, sharp at any scale
The sample API shows d.rightof() positioning, d.link(kind, label) for data-flow vs planned connections, and status="planned" states—handy for agents maintaining reproducible architecture diagrams.
More from coding & agent
- OpenAI tutorial shows how to build agents with time awareness and async questions — xiaohu · 2026-11-23
- Developer runs AI agents to crack high-Tc superconductivity theory with a golden experimental set — builderjaydub · 2026-11-23
- Amazon memo: blocking AI agents while building a 'World Product Graph' to own agentic shopping — AccBalanced · 2026-11-23
- FileMaker MCP Server adds read-only DB access with metadata and relationship inference — modelcontextprotocol · 2026-11-23
- Twilio MCP Pack lets agents send SMS, list messages and place calls via REST API — modelcontextprotocol · 2026-11-23
- Anthropic hackathon winner open-sources Claude Code setup with 68 subagents and 286 skills — nikola_mr64990 · 2026-11-23