draw.io: Open Source AI Repository & Self-Hosting Guide
Open-source diagramming platform powering diagrams.net across browser and Electron desktop for UML, cloud architecture, BPMN, ERDs, and flowcharts.
draw.io: Architecture & Practical Workflow
draw.io maintains strict local-first file control—saving XML `.drawio` and editable `.drawio.svg`/`.drawio.png` files directly to local disk, Git repos, or Nextcloud with extensive AWS/Azure/GCP/Kubernetes shape libraries.
Author infrastructure topology diagrams in draw.io desktop, export `.drawio.svg` files committed directly inside GitHub Markdown READMEs, and re-open them lossless later.
Quick Setup & Installation Steps
Platform target: Web and desktop app (GitHub). Always verify environment variables and dependencies in the upstream repository README.
- 1Clone the repository from GitHub: `git clone https://github.com/jgraph/drawio.git && cd drawio`.
- 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
- 3Install or launch the project directly: `brew install --cask drawio` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
- 4Validate end-to-end behavior with a small sample input (Author infrastructure topology diagrams in draw.io desktop, export `.drawio.svg` files committed directly inside GitHub Markdown READMEs, and re-open them lossless later.)
Hardware & VRAM Notes
Runs on standard developer workstations without specialized hardware unless loading large local weights.
Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).
Optional unless running local neural weights; pairs cleanly with local inference servers (Ollama / llama.cpp) or remote endpoints.
Web and desktop app (GitHub)
Strengths & Best For
- Flowcharts and diagrams
- Many templates
- Works offline in the desktop app
- Best suited for: Teams, Students
Limitations & Caveats
- Interface is utilitarian
- Complex diagrams need patience
- Check the repo's license. Model weights may have a different license.
3 Similar Tools on /tools (Design)
Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.
Penpot
Open-source, browser-based UI/UX design and interactive prototyping platform built on native SVG, CSS Flex, and Grid standards.
Framer AI
Interactive website design and publishing platform featuring AI layout generation, localization, and smooth scroll animations.
Recraft
AI generative graphic design engine for vector art, 3D icons, and brand illustrations.
| Factor | draw.io (Self-Hosted) | Penpot | Framer AI |
|---|---|---|---|
| Execution & Privacy | Runs locally via Web and desktop app (GitHub); data stays on your disk or private server. | Hosted cloud web interface; zero local dependency setup required. | Hosted cloud web interface; zero local dependency setup required. |
| Cost & Quota | Apache-2.0 code; bound only by local CPU/GPU hardware. | Open Source; subject to vendor free-tier limits or paid plans. | Freemium; subject to vendor free-tier limits or paid plans. |
| Primary Fit | Flowcharts and diagrams; Many templates | Open-source, browser-based UI/UX design and interactive prototyping platform built on native SVG, CSS Flex, and Grid standards. | Interactive website design and publishing platform featuring AI layout generation, localization, and smooth scroll animations. |
| Key Trade-off | Interface is utilitarian | Requires internet access and vendor account/quota limits. | Requires internet access and vendor account/quota limits. |
Matching Ready-Made Prompts
Customize variables in Live Prompt Studio for draw.io workflows.
Compare Alternatives
Compare draw.io side-by-side on setup ease, privacy, and role scorecards.
More Open Source Design & Diagrams Repositories
Excalidraw
Open-source collaborative virtual whiteboard rendering crisp hand-drawn style system diagrams, wireframes, and text-to-diagram visuals in the browser.
Mermaid
Open-source JavaScript text-to-diagram library transforming declarative Markdown syntax into flowcharts, sequence diagrams, ERDs, Gantt charts, and C4 views.
Frequently Asked Questions
What does draw.io do and how does it work?
draw.io (jgraph/drawio) is an open-source design & diagrams project with 9,739 stars on GitHub. Open-source diagramming platform powering diagrams.net across browser and Electron desktop for UML, cloud architecture, BPMN, ERDs, and flowcharts. draw.io maintains strict local-first file control—saving XML `.drawio` and editable `.drawio.svg`/`.drawio.png` files directly to local disk, Git repos, or Nextcloud with extensive AWS/Azure/GCP/Kubernetes shape libraries.
Is draw.io free to self-host and use commercially?
draw.io provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.
What hardware, runtime, or VRAM does draw.io require?
draw.io targets Web and desktop app (GitHub). Typical installation runs via `brew install --cask drawio`. Interface is utilitarian
How does self-hosting draw.io compare to hosted tools like Penpot?
Self-hosting draw.io gives you full local data control, zero per-usage vendor fees, and customizable Web and desktop app (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Penpot (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.
Is draw.io actively maintained and what workflow fits it best?
Repository metadata records 9,739 stars on GitHub with the latest recorded push on Dec 2, 2026. Author infrastructure topology diagrams in draw.io desktop, export `.drawio.svg` files committed directly inside GitHub Markdown READMEs, and re-open them lossless later.