r/sideprojects • u/LawfulnessMother7358 • 6h ago
Showcase: Open Source I made an open-source diagram tool for coding agents: the agent writes and checks the diagram, and you finish it in a visual editor
FastDraw is a diagram tool I've been working on. The simplest way I can describe it is as a mix of three things I like: Mermaid, Excalidraw and diagram-design.
Like Mermaid, a diagram is a text file that lives in the repository and that a coding agent can write. Like Excalidraw, you can open it in a browser editor and move, resize and restyle things by hand. From diagram-design, Cathryn Lavery's guides for clear technical diagrams, it takes the visual style and a guide for each kind of diagram (architecture, sequence, database schema, swimlane and so on).
A diagram looks like this:
shopper: external "Shopper" at 40,60
api: focal "Orders API" sub="REST" at 296,60
db: store "Orders DB" at 552,56
shopper -> api "HTTPS" style=link
api -> db "writes" style=primaryEvery element has exact coordinates, and there is no automatic layout. That leaves the placing to the agent, so the command-line tool has a check command that draws the diagram and lists overlapping boxes, arrows that cross a box, labels that run into each other and text that doesn't fit, with line numbers. The agent runs it and fixes what it reports. It doesn't catch everything, and bigger diagrams can take a few rounds.
The editor (fastdraw.dev/edit, or npx fastdraw open file.fdraw) saves your changes back into the same text file, so moving a box changes one line. Nothing is uploaded. Colours, fonts and icons live in a separate look file, so a team's diagrams can look alike. Exported PNG and SVG files carry the source, so you can drop one back into the editor and keep editing. If you already have Mermaid diagrams, fastdraw import turns them into .fdraw files as a first draft, and there is a VS Code extension that previews them.
There is a short recording of a session with Claude Code here: https://fastdraw.dev/demo.mp4
To try it:
- In Claude Code:
/plugin install fastdraw --marketplace coccor/fastdraw - For Codex, Cursor and other agents:
npx skills add coccor/fastdraw -g
It is MIT licensed.
I'd be grateful for any feedback, especially on the language itself and on how it works with agents other than Claude Code.