中文 | English
An AI-powered diagram platform lets you describe charts in natural language and interact with AI for easy creation. It supports Mermaid, Excalidraw, and Draw.io engines. Users can privately deploy with Docker, store and manage diagram files, and choose between local or cloud use, and supports multi-user usage.
AI驱动的图表创作平台,与AI对话,轻松使用Mermaid、Excalidraw和Draw.io绘图,支持docker私有部署、绘图文件存储和管理、本地和云端两种使用模式,支持多用户使用。
AI Draw 是一个智能绘图平台,通过自然语言对话形式,即可快速生成流程图、时序图、架构图等各类图表,无需复杂的拖拽操作,让所想即刻呈现。支持 Mermaid、Excalidraw 和 Draw.io 三大引擎,支持docker私有部署,支持绘图文件存储和文件分组管理。
基于 next-ai-drawio 和 ai-draw-next 二次开发,增加文件管理、文件分组管理、本地/云端两种模式支持、动态绘图效果、多用户模式等功能,并调整较多交互,优化使用体验。
Important
收藏项目,你将从 GitHub 上无延迟地接收所有发布通知~⭐️
您的反馈对我们非常重要。如果您在使用过程中遇到任何问题,或者有任何功能建议,可通过github-issues反馈问题,同时可通过以下方式在线联系我们。
1. docker部署并启动项目
Tip
国内使用阿里云镜像地址下载速度会更快: registry.cn-hangzhou.aliyuncs.com/stone-yu/ai-draw:latest
version: '3.8'
services:
ai-draw:
build: .
image: ghcr.io/stone-yu/ai-draw:latest
container_name: ai-draw
restart: unless-stopped
ports:
- "3000:3000"
volumes:
# Map local data directory to container data directory
# On NAS, change ./data to your actual path, e.g., /volume1/docker/aidraw/data
- ./data/aidraw:/app/data
environment:
- PORT=3000
- DATA_DIR=/app/data
- DEBUG=false2.访问地址: 访问http://<NAS_IP>:3000即可使用,数据将保存在项目目录下的/app/data文件夹中;
3.管理员登录: 登录默认管理员账号:admin/admin123,登录后及时更改密码;**
4.设置全局LLM模型: 左侧系统设置-全局LLM模型,填写信息;
1.启动项目
git clone https://github.com/stone-yu/ai-draw
cd ai-draw
pnpm install
# 同时启动前端和后端
pnpm run dev
# 访问 http://localhost:8787
# 或者分别启动:
pnpm run dev:frontend # 仅 Vite (http://localhost:5173)
pnpm run dev:backend # 仅 Wrangler Pages (http://localhost:8787)2.访问控制台上的前端地址,数据将保存在项目目录下的/app/data文件夹中;
2.管理员登录: 登录默认管理员账号:admin/admin123,登录后及时更改密码;**
3.设置全局LLM模型: 左侧系统设置-全局LLM模型,填写信息;
- 前端:React 19 + Vite + TypeScript + Tailwind CSS
- 状态管理:Zustand
- 本地存储:Dexie.js (IndexedDB)
- 图标库:Lucide React
| 服务商 | AI_PROVIDER | AI_BASE_URL | 推荐模型 |
|---|---|---|---|
| OpenAI | openai | https://api.openai.com/v1 | gpt-5 |
| Anthropic | anthropic | https://api.anthropic.com/v1 | claude-sonnet-4-5 |
| 其他兼容服务 | openai | 自定义 URL | - |
MIT





