swiftlysingh/excalidraw-cli
316 stars · Last commit 2026-11-06
Generate editable Excalidraw diagrams from text or JSON for agents and developer workflows
README preview
# excalidraw-cli <p> <a href="https://www.npmjs.com/package/@swiftlysingh/excalidraw-cli"><img src="https://img.shields.io/npm/v/@swiftlysingh/excalidraw-cli" alt="npm version"></a> <a href="https://github.com/swiftlysingh/excalidraw-cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License"></a> </p> Generate Excalidraw diagrams from DSL, JSON, or Graphviz DOT. Built for agents and scripts. <p align="center"> <img alt="This repository's src/ turned into an architecture diagram with excalidraw-cli" src="docs/demo.gif" /> </p> ## Features - **Text-based DSL** for quick flowchart creation - **JSON API** for programmatic use - **Auto-layout** using ELK.js (Eclipse Layout Kernel) - **Multiple flow directions**: TB (top-bottom), BT, LR, RL - **Export to PNG & SVG** with dark mode, custom backgrounds, scale, and padding - **Programmable API** for integration into other tools