Dia, the open-diagram robot MapDocsAboutGitHub
Overview

Get started

Quick start

Write a diagram

PythonJSONMermaidTemplates

Run it

Command lineAI agents

Fix it

Layout problems

Documentation

Learn to draw diagrams in Python, JSON or Mermaid, and fix what the checks report.

Get started

Quick startInstall open-diagram and draw your first diagram.

Write a diagram

PythonBuild a diagram from blocks, place them, and set its colors and sizes with a theme.JSONDescribe a diagram as plain data, from any language or agent.MermaidDraw a Mermaid flowchart you already have, and see what changes.TemplatesStart from a finished cloud diagram, keep its shape, and replace its words.

Run it

Command lineDraw, check and describe diagrams from a terminal or a CI job.AI agentsLet Claude, Cursor or Codex draw diagrams and fix their layout problems.

Fix it

Layout problemsWhat each problem message means, and how to fix it.