Skip to content

agentdraw/agentdraw

Repository files navigation

AgentDraw

中文 README

npm version license: MIT SVG-first local-first powered by Excalidraw agent ready

AgentDraw helps coding agents create editable diagrams and article-style visual boards.

Ask Claude Code, Codex, Cursor, or another agent to draft a clean SVG or Mermaid diagram, convert it into an editable .agentdraw.json whiteboard, open it in a local browser editor, and export JSON, SVG, or PNG when you need to share the result.

Install

Recommended for agent workflows:

npm install -g @aidraw/agentdraw
npx skills add agentdraw/agentdraw --skill agentdraw -g -y

Agent bootstrap URL:

https://raw.githubusercontent.com/agentdraw/agentdraw/main/INSTALL.md

CLI-only usage:

npm install -g @aidraw/agentdraw
agentdraw --help
agentdraw guide

No global install:

npx @aidraw/agentdraw@latest import-svg board.svg --out board.agentdraw.json --style boardroom --json
npx @aidraw/agentdraw@latest open board.agentdraw.json --background --open

Quick Start

Convert an SVG draft into an editable local board:

npx @aidraw/agentdraw@latest import-svg board.svg --out board.agentdraw.json --style boardroom --json
npx @aidraw/agentdraw@latest repair board.agentdraw.json --style boardroom --write --json
npx @aidraw/agentdraw@latest validate board.agentdraw.json --style boardroom --json
npx @aidraw/agentdraw@latest open board.agentdraw.json --background --open

Use Mermaid for formal diagram grammar:

npx @aidraw/agentdraw@latest import-mermaid flow.mmd --out flow.agentdraw.json --style blueprint-formal --json

Run from this repository:

pnpm install
pnpm build
pnpm agentdraw open examples/complex-agentdraw-workbench.agentdraw.json --background --open

Gallery

AgentDraw examples are real editable scene files. Preview images are shown here for scanning; click an image to open the corresponding .agentdraw.json source.

Complex Board

Complex AgentDraw Workbench preview
Theme Examples · bundled design systems and visual moods

Theme previews link to the design.md system that produced the look.

AgentDraw Operating System preview
System Formal · precise architecture and workflow diagrams
Incident Command Center preview
Boardroom · executive operating reviews and decisions
Multi-Agent Message Bus preview
Blueprint Formal · technical systems and protocols
Agent Plugin Runtime preview
Runtime Doc · technical document explainers
Product Spec Notes preview
Slate Notes · clean product spec boards
Repair Runbook preview
Manual Cream · retro instruction manuals
Launch Room Loop preview
Riso Brut · editorial launch and growth loops
Quarterly Strategy Map preview
Grove · grounded strategy and planning maps
Creator Tool Roadmap preview
Mint Brut · playful product roadmaps
Customer Journey Signals preview
Coral · warm journeys and onboarding maps
Research Synthesis Wall preview
Violet Marker · clustering and research walls
Knowledge Shelf Map preview
Archive Shelf · catalog-card research maps
Spec Ledger preview
Inkline · severe technical memos and specs
Executive Brief Board preview
Espresso Paper · warm executive decision pages
KV Cache Incident Report preview
Incident Dark · dark RCA and incident reports
Runtime Signal Grid preview
Neon Grid · high-energy event and signal maps
Onboarding Momentum Map preview
Soft Pop · friendly product and onboarding maps
Scene Quality Matrix preview
Raw Grid · strict validation and issue matrices
Design Systems Win preview
Bold Poster · high-impact thesis boards
Product Discovery Board preview
Soft Editorial · research and discovery boards
Maker Mode Map preview
BlockFrame · playful maker workflows
Operating Meeting Ledger preview
Long Table · warm action tables and agendas
Workshop Decision Wall preview
Pin & Paper · pinned workshop synthesis boards
Data Flow Whiteboard preview
Hatch Whiteboard · hand-drawn data whiteboards
Crayon Idea Stack preview
Crayon Stack · playful idea stacks and maker maps
Data Whiteboard Examples · hand-drawn editable data-flow boards

These examples use Hatch Whiteboard and the rules in data-flow-whiteboard-patterns.md.

Transform Lanes data whiteboard preview
D01 Transform Lanes · MapReduce-like staged transforms
Warehouse Layer Ladder data whiteboard preview
D02 Warehouse Layer Ladder · layered data warehouse lineage
Spaghetti To Structure data whiteboard preview
D03 Spaghetti To Structure · chaos-to-governed target state
Governance Swimlanes data whiteboard preview
D04 Governance Swimlanes · trust-building data governance lanes
Layout Examples · communication structures, not just color themes

The layout rules live in editorial-layouts.md.

Monochrome Big Number layout preview
E01 Monochrome Big Number · three-stage editorial argument
Reading Room Overlap layout preview
E02 Reading Room Overlap · calm thesis with staggered panels
Swiss Statement Grid layout preview
E03 Swiss Statement Grid · executive claim plus evidence grid
Editorial Sidebar layout preview
E04 Editorial Sidebar · asymmetric article visual
Poster Ledger layout preview
E05 Poster Ledger · punchy headline with ruled proof rows
Reading Room Index layout preview
E06 Reading Room Index · long-form synthesis with several anchors
Strategic Quadrant layout preview
E07 Strategic Quadrant · SWOT and positioning analysis
Editorial Timeline layout preview
E08 Editorial Timeline · time progression with one inflection point
Roadmap Terrace layout preview
E09 Roadmap Terrace · phased roadmap and maturity ladder
Decision Scoreboard layout preview
E10 Decision Scoreboard · option comparison and recommendation
Ecosystem Orbit layout preview
E11 Ecosystem Orbit · stakeholder and platform force maps
Pyramid Stack layout preview
E12 Pyramid Stack · hierarchy, maturity, and dependency levels

Why AgentDraw

Agent-generated whiteboards often fail in predictable ways: text overlaps, labels are not centered, arrows miss their targets, or raw whiteboard JSON drifts into messy coordinates. AgentDraw turns that into a repeatable workflow:

  • Mermaid for formal diagrams with mature grammar;
  • restricted SVG for custom explanatory visuals and article images;
  • editable .agentdraw.json output instead of screenshots;
  • reusable design systems and layout rules instead of one-off colors;
  • repair, validation, quality scoring, preview export, and browser editing in one loop.

The goal is simple: fewer tokens, faster generation, and a better first visual that a human can still adjust.

Core Ideas

intent/source
  -> provider routing
  -> design style + layout system
  -> Mermaid or SVG source
  -> editable .agentdraw.json
  -> repair / validate / quality / preview
  -> local browser editor
  • Use Mermaid for flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, timelines, journeys, and other structured notation.
  • Use SVG for article visuals, architecture explainers, mechanism maps, strategy one-pagers, and slide-like single-page boards.
  • Keep design style separate from layout style. A theme controls visual language; a layout controls reading path, hierarchy, and information structure.

More Docs

Inspired By

AgentDraw is shaped by several projects and ideas:

License

MIT

About

Local-first editable whiteboard for AI agents. Generate polished diagrams with 44 built-in design themes, open them in a browser for manual editing, and export to SVG or PNG for docs, reports, and presentations.

Resources

License

Stars

13 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors