关于
供人类和智能体使用的官方 Excalidraw CLI
其他项目可以做什么
- 🖼️ Render to PNG or SVG: any .excalidraw file, light or dark, transparent, up to 16× scale.
- 🎞️ Export slides: each frame to its own image, in presentation order.
- 🧜 Mermaid to Excalidraw: flowcharts, sequence, class, ER and state diagrams, Gantt charts, quadrant charts and timelines become editable shapes.
- 🔒 Runs locally: uses the browser you already have. Nothing is uploaded, no account needed.
实测星标增长
- 24小时
- +2
- 7天
- +14
- 15天
- +81
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Documentation · npm · Excalidraw+ · Excalidraw
Render Excalidraw drawings and Mermaid diagrams from your terminal, free and without an account. Log in to Excalidraw+ to manage your workspace too.
Features
- 🖼️ Render to PNG or SVG: any
.excalidrawfile, light or dark, transparent, up to 16× scale. - 🎞️ Export slides: each frame to its own image, in presentation order.
- 🧜 Mermaid to Excalidraw: flowcharts, sequence, class, ER and state diagrams, Gantt charts, quadrant charts and timelines become editable shapes.
- 🔒 Runs locally: uses the browser you already have. Nothing is uploaded, no account needed.
- ☁️ Excalidraw+ workspace: log in with your browser, then manage scenes, collections, share links, presentations, members and audit logs.
- 🤖 Made for scripts and AI agents: JSON output, stdin and stdout, and
EXCALIDRAW_API_KEY. - ✏️ Excalidraw+ MCP tools, no setup:
excalidraw mcpgives agents the drawing tools (diagrams, charts, slides, screenshots) through the CLI's login.
Install
npm install -g @excalidraw/cli
Or run it without installing: npx @excalidraw/cli --help. Requires Node.js 22 or newer. excalidraw update updates it.
Quick start
# No account needed
excalidraw render drawing.excalidraw --out drawing.png
excalidraw render deck.excalidraw --all-frames --out slides/
excalidraw mermaid flow.mmd --out flow.excalidraw
# With Excalidraw+
excalidraw login --web # log in with your browser
excalidraw scenes list --output table
excalidraw scenes render <sceneId> --out scene.png
Every command has --help with examples.
Logging in
excalidraw login asks how to log in; pick the browser, or run excalidraw login --web. It opens Excalidraw+, where you sign in, pick a workspace and allow the CLI. The CLI then acts as you in that workspace, with your role, and stays logged in until you run excalidraw logout or disconnect it under Settings → Connected apps; either cuts it off at once.
For scripts, CI and machines without a browser, use an API key instead: excalidraw login --api-key <key>, --api-key or EXCALIDRAW_API_KEY. A key passed with --api-key or EXCALIDRAW_API_KEY takes priority over the saved login, so unset it to use your browser login. excalidraw whoami shows which one is in use. See Configuration and API keys.
Documentation
📚 plus.excalidraw.com/docs/cli
- Render to PNG or SVG
- Mermaid diagrams
- Editing scene content
- MCP tools
- Scripting and agents
- Configuration and API keys
- Command reference
The same guides are in docs/.
Contributing
See CONTRIBUTING.md for building the CLI and running the tests.
License
探索相关项目
加载中…