{
  "listings": [
    {
      "slug": "d2",
      "name": "D2",
      "company": "The Hack Foundation (Hack Club), fiscal sponsor of the D2 project",
      "grade": "B",
      "fit": "yes",
      "why": "The local CLI renders .d2 text to SVG, PNG, PDF, PPTX, GIF or ASCII from stdin to stdout with automatic layout, and TALA is now bundled free. The man page says to trust the exit status, since a partial file can be written on error. Speed bar not stated.",
      "source": "https://raw.githubusercontent.com/d2lang/d2/master/ci/release/template/man/d2.1",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/d2"
    },
    {
      "slug": "kroki",
      "name": "Kroki",
      "company": "Yuzu tech, a French software firm. No registered legal form found",
      "grade": "C",
      "fit": "yes",
      "why": "POST /\u003ctype\u003e/\u003cformat\u003e with the diagram text returns SVG, PNG or PDF for about 29 formats, self-hosted from Docker with SECURE safe mode by default; acc-06 renders locally from Claude Code. Speed bar not stated; acc-04 needed several rounds of TikZ fixes.",
      "source": "https://docs.kroki.io/kroki/setup/usage/",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/kroki"
    },
    {
      "slug": "mermaid-chart",
      "name": "Mermaid Chart MCP",
      "company": "Mermaid Chart Inc.",
      "grade": "F",
      "fit": "yes",
      "why": "validate_and_render_mermaid_diagram validates Mermaid text and returns PNG and SVG with a playground link; a free account is enough. Rendering is hosted, not local (acc-09 used mermaid-cli for that). Speed bar not stated.",
      "source": "https://mermaid.ai/docs/ai/mcp-server",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/mermaid-chart"
    },
    {
      "slug": "ai-diagram-maker-mcp",
      "name": "AI Diagram Maker MCP",
      "company": "AI Diagram Maker (Rajasekar Elango)",
      "grade": "E",
      "fit": "caveat",
      "why": "generate_diagram_from_mermaid converts Mermaid to D2 and returns a PNG, but the conversion passes through AI and credits, the agent's own source isn't rendered as written, and it is hosted only.",
      "source": "https://raw.githubusercontent.com/erajasekar/ai-diagram-maker-mcp/main/README.md",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/ai-diagram-maker-mcp"
    },
    {
      "slug": "drawio",
      "name": "draw.io + MCP",
      "company": "draw.io Ltd",
      "grade": "B",
      "fit": "caveat",
      "why": "Source is draw.io XML or Mermaid text, but PNG, SVG and PDF come only from the plugin with draw.io Desktop's CLI installed; the hosted server and tool server return links, not images.",
      "source": "https://raw.githubusercontent.com/jgraph/drawio-mcp/main/README.md",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/drawio"
    },
    {
      "slug": "eraser",
      "name": "Eraser API + MCP",
      "company": "Eraser Labs, Inc.",
      "grade": "F",
      "fit": "caveat",
      "why": "Eraser's own diagram-as-code is text the agent keeps, and export_diagram returns PNG, JPEG, SVG or PDF. Rendering is hosted only, and whether a syntax error fails the call or renders is not documented.",
      "source": "https://docs.eraser.io/mcp.md",
      "confidence": "medium",
      "url": "https://www.anchorterminal.com/tools/eraser"
    },
    {
      "slug": "excaliclaw",
      "name": "ExcaliClaw",
      "company": "ExcaliClaw",
      "grade": "D",
      "fit": "caveat",
      "why": "Mermaid text in, export_design gives PNG or SVG, but only Mermaid's structure is read, rendering is hosted only, and the terms couldn't be read because they render by script.",
      "source": "https://excaliclaw.com/llms.txt",
      "confidence": "medium",
      "url": "https://www.anchorterminal.com/tools/excaliclaw"
    },
    {
      "slug": "excalidraw",
      "name": "Excalidraw",
      "company": "Excalidraw s.r.o.",
      "grade": "C",
      "fit": "caveat",
      "why": "The CLI renders a local .excalidraw file to PNG or SVG in under a second with Chrome, and excalidraw mermaid turns Mermaid into SVG. Only some Mermaid types become shapes, the rest a static image, and acc-03 found the look too rough.",
      "source": "https://plus.excalidraw.com/llms-full.txt",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/excalidraw"
    },
    {
      "slug": "lucid",
      "name": "Lucid API + MCP",
      "company": "Lucid Software Inc.",
      "grade": "B",
      "fit": "caveat",
      "why": "Mermaid text goes in and the export endpoint returns PNG, JPEG or SVG of one page by Accept header, but rendering is hosted only, and an invalid body is a generic 400 with no line.",
      "source": "https://lucid.readme.io/reference/createmermaiddiagram.md",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/lucid"
    },
    {
      "slug": "plantuml",
      "name": "PlantUML",
      "company": "No legal entity found. Copyright Arnaud Roques",
      "grade": "B",
      "fit": "caveat",
      "why": "java -jar plantuml.jar --svg -pipe renders text locally to SVG, PNG or PDF and exits above 0 on a syntax error. Without --no-error-image a bad diagram still writes an image of the error, and the default LEGACY profile lets !include read files and URLs.",
      "source": "https://plantuml.com/command-line",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/plantuml"
    },
    {
      "slug": "structurizr",
      "name": "Structurizr + MCP",
      "company": "Structurizr Limited",
      "grade": "B",
      "fit": "caveat",
      "why": "The DSL is text and MCP exports views to Mermaid, PlantUML or C4-PlantUML text, which then need a second renderer. PNG and SVG come from a separate export command or a self-hosted server, since the cloud service closed.",
      "source": "https://docs.structurizr.com/ai/mcp",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/structurizr"
    },
    {
      "slug": "cloudviz",
      "name": "Cloudviz API",
      "company": "SIA Cloudviz Solutions",
      "grade": "F",
      "fit": "no",
      "why": "No diagram text input; it renders from a scanned AWS account.",
      "source": "https://cloudviz.io/assets/developers/openapi.json",
      "confidence": "medium",
      "url": "https://www.anchorterminal.com/tools/cloudviz"
    },
    {
      "slug": "diagrams-so",
      "name": "Diagrams.so API + MCP",
      "company": "RedHold LLC",
      "grade": "B",
      "fit": "no",
      "why": "Input is prose, not diagram code the agent keeps; there is no text source to commit and render.",
      "source": "https://diagrams.so/llms.txt",
      "confidence": "medium",
      "url": "https://www.anchorterminal.com/tools/diagrams-so"
    },
    {
      "slug": "mumble",
      "name": "Mumble",
      "company": "tiny space",
      "grade": "F",
      "fit": "no",
      "why": "No diagram text language to commit and render; the canvas is JSON and images come from the app's PNG or PDF export.",
      "source": "https://www.tinyspace.ai/mumble/docs",
      "confidence": "medium",
      "selfAssessed": true,
      "url": "https://www.anchorterminal.com/tools/mumble"
    },
    {
      "slug": "mural-mcp",
      "name": "Mural MCP",
      "company": "Tactivos, Inc. (d/b/a Mural)",
      "grade": "F",
      "fit": "no",
      "why": "A whiteboard with no diagram-as-code format or text source to commit.",
      "source": "https://www.mural.co/ai/mcp",
      "confidence": "low",
      "url": "https://www.anchorterminal.com/tools/mural-mcp"
    },
    {
      "slug": "tldraw",
      "name": "tldraw SDK + MCP",
      "company": "tldraw, Inc.",
      "grade": "C",
      "fit": "no",
      "why": "No text diagram format or headless render; image export runs in the editor in a browser.",
      "source": "https://tldraw.dev/docs/ai",
      "confidence": "high",
      "url": "https://www.anchorterminal.com/tools/tldraw"
    },
    {
      "slug": "whimsical",
      "name": "Whimsical MCP",
      "company": "Whimsical, Inc.",
      "grade": "D",
      "fit": "no",
      "why": "Whimsical's syntax lives inside its boards; export is a PNG snapshot through fetch, with no SVG or source file to commit.",
      "source": "https://raw.githubusercontent.com/WhimsicalCode/mcp-server-guide/main/README.md",
      "confidence": "medium",
      "url": "https://www.anchorterminal.com/tools/whimsical"
    }
  ],
  "marks": "yes: the docs show it does the job as the success test says. caveat: it does the job with a limit an agent should know. no: it doesn't do this job. unchecked: we couldn't read it.",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-16",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.8",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "useCase": {
    "accounts": 11,
    "after": [
      "code.open-pr",
      "docs.write"
    ],
    "area": "design-diagrams",
    "asks": [
      "add a sequence diagram to the README",
      "render this Mermaid as PNG",
      "make a PlantUML diagram for the proposal",
      "draw the schema as an ERD"
    ],
    "before": [
      "code.read-repo"
    ],
    "blockers": [
      "syntax error rendered as an image of the error with a success status",
      "public render instance with no terms for private diagrams",
      "layout engine needs a paid licence"
    ],
    "capabilities": [
      "diagram.as-code",
      "diagram.export",
      "diagram.create"
    ],
    "category": "diagramming",
    "categoryName": "Diagramming",
    "checked": "2026-11-15",
    "companies": {
      "fit": 3,
      "fitWithLimit": 8,
      "tagged": 18
    },
    "competition": "few",
    "fits": [
      "d2",
      "kroki",
      "mermaid-chart"
    ],
    "fitsWithLimit": [
      "ai-diagram-maker-mcp",
      "drawio",
      "eraser",
      "excaliclaw",
      "excalidraw",
      "lucid",
      "plantuml",
      "structurizr"
    ],
    "id": "diagramming.render-as-code",
    "listings": {
      "caveat": 8,
      "no": 6,
      "notRead": 0,
      "tagged": 18,
      "unchecked": 0,
      "yes": 3
    },
    "name": "Write a diagram as code and render it for a doc, README or PR",
    "status": "draft",
    "success": "Diagram source committed or embedded as text, plus an SVG or PNG that renders without a parse error and shows every node and edge in the source, produced from the source alone. Measured: one render call under 5 seconds for a 30-node diagram.",
    "url": "https://www.anchorterminal.com/api/v1/use-cases/diagramming.render-as-code.json",
    "weight": 22,
    "weightBasis": "11 of 37 accounts (Mermaid, D2, PlantUML, Kroki, Structurizr export); what most HN users say they do day to day"
  }
}
