CTD Studio: Local-First Code to Diagram Editor
Write diagram code, drag boxes and connector lines into place, and export SVG or PNG directly in your browser. No account, no paywall, and local-first IndexedDB storage.
Supported Formats (7)
- Mermaid (v12.3.0): Full local runtime (flowchart, class, state, ER, sequence, gantt, mindmap, pie, journey, gitGraph, C4, requirement).
- Graphviz DOT:
digraph/graph, rankdir, node labels & shapes, and -> / -- edges.
- PlantUML:
@startuml sequence, state, and class diagrams.
- D2:
direction, nested { ... } containers, .shape, and labeled edges.
- SQL DDL:
CREATE TABLE, PRIMARY KEY, and FOREIGN KEY / REFERENCES into ER diagrams.
- TypeScript:
interface, class, and object type declarations into class diagrams.
- XML: Explicit
<diagram>, Draw.io mxGraphModel, BPMN sequenceFlow, and generic XML trees.
Quick Arrow & Shape Reference
A --> B (solid arrow), A -.-> B (dotted arrow), A ==> B (thick arrow), A --- B (line)
[Process], ([Start/End]), {Decision}, [/I/O/], [(Database)], ((Circle))
Links & MCP
GitHub Repository (Elastic 2.0 / Commercial) ·
ctd-mcp on npm (npx -y ctd-mcp) ·
Enable JavaScript to launch the interactive editor and Docs & tutorial.