CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.
TypeScript ai-agentsai-diagramai-presentationbomcadcanvasdiagramdiagram-generatordrawioflowchartinfographicspptppt-generatorpresentation-generatorreactsvgedittext-to-diagramtypescriptworkflow
refactor(i18n): the English name is Diagram, not Flow
codingFeng101bdf2b3405b77
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 307d63e..d9d3f14 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -40,7 +40,7 @@ Good contribution areas include:- 🐛 Bug fixes with clear reproduction steps- ⚡ Performance and stability improvements- 📝 Documentation improvements-- 🎨 UX improvements for the Flow, CAD, and PPT workspaces+- 🎨 UX improvements for the Diagram, CAD, and PPT workspaces- 📦 Deployment improvements for the app serviceFor large changes, open an issue first so the direction can be discussed before implementation.diff --git a/README.md b/README.mdindex 9c3fe3a..80a8923 100644--- a/README.md+++ b/README.md@@ -5,7 +5,7 @@<h1 align="center">CanvasAnvil</h1><p align="center">- <strong>AI-powered multi-canvas creation for Flow, CAD, and PPT.</strong>+ <strong>AI-powered multi-canvas creation for Diagrams, CAD, and PPT.</strong></p><p align="center">@@ -33,7 +33,7 @@> CanvasAnvil brings diagramming, interior design workflows, and presentation production into one unified workspace.-## 🔷 Flow Canvas+## 🔷 Diagram CanvasTurn structured prompts into clear diagrams for research, systems, delivery plans, and teaching maps, then keep refining layout, labels, and node relationships in one place.@@ -41,12 +41,12 @@ Turn structured prompts into clear diagrams for research, systems, delivery plan<table><tr>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/01.png" alt="Flow example: academic research framework" width="100%" /><br/><strong>Academic Research Framework</strong></td>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/02.png" alt="Flow example: intelligent Q&A system architecture" width="100%" /><br/><strong>Intelligent Q&A System Architecture</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/01.png" alt="Diagram example: academic research framework" width="100%" /><br/><strong>Academic Research Framework</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/02.png" alt="Diagram example: intelligent Q&A system architecture" width="100%" /><br/><strong>Intelligent Q&A System Architecture</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/03.png" alt="Flow example: project implementation roadmap" width="100%" /><br/><strong>Project Implementation Roadmap</strong></td>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/04.png" alt="Flow example: course design mind map" width="100%" /><br/><strong>Course Design Mind Map</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/03.png" alt="Diagram example: project implementation roadmap" width="100%" /><br/><strong>Project Implementation Roadmap</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/04.png" alt="Diagram example: course design mind map" width="100%" /><br/><strong>Course Design Mind Map</strong></td></tr></table>@@ -107,7 +107,7 @@ Generate full presentations through a controlled pipeline: outline first, visual| Workspace | Focus | Typical output || --- | --- | --- |-| `Flow` | structured diagram generation and partial editing | flowcharts, architecture diagrams, logic diagrams |+| `Diagram` | structured diagram generation and partial editing | flowcharts, architecture diagrams, logic diagrams || `CAD` | interior planning, drawing coordination, and delivery packaging | concept boards, 2D drawings, render briefs, material lists || `PPT` | structured presentation generation and mixed export workflows | presentations, pitch decks, editable decks, report slides |@@ -120,7 +120,7 @@ fixes that came out of it. See [CHANGELOG.md](CHANGELOG.md) for the full list.**Narrowed**-- Three canvases only: Flow, Interior Design and PPT. The poster, product and infographic canvases are gone.+- Three canvases only: Diagram, Interior Design and PPT. The poster, product and infographic canvases are gone.- The embedded `pptist-lab` editor is gone; editable decks export directly as `.pptx`.- One OpenAI-compatible request path. The provider list is gone from the app *and* from the `cad-skill` and `ppt-skill` bundles, which had carried a nine-vendor image registry of their own — eight of them with no reachable endpoint.- The Next.js port that shadowed the Vite client is gone, along with roughly 900 lines of unreachable code the old `PptWorkspace` was hiding.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 044984a..5af94c8 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -5,7 +5,7 @@<h1 align="center">CanvasAnvil</h1><p align="center">- <strong>面向流程绘制、室内设计与 PPT 的 AI 多画布创作平台。</strong>+ <strong>面向图表绘制、室内设计与 PPT 的 AI 多画布创作平台。</strong></p><p align="center">@@ -31,9 +31,9 @@<strong>⭐ 如果 CanvasAnvil 对你有帮助,欢迎给仓库点个 Star,也可以 Fork 一份继续扩展你自己的画布工作流。</strong></p>-> CanvasAnvil 将流程图、室内设计工作流和 PPT 制作整合到一个统一工作区中。+> CanvasAnvil 将图表、室内设计工作流和 PPT 制作整合到一个统一工作区中。-## 🔷 流程绘制画布+## 🔷 图表绘制画布将结构化提示快速转成清晰图表,适合学术框架、系统架构、实施路线和课程导图,并在同一画布中持续迭代布局、节点关系与说明文案。@@ -41,12 +41,12 @@<table><tr>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/01.png" alt="流程图示例:学术研究框架图" width="100%" /><br/><strong>学术研究框架图</strong></td>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/02.png" alt="流程图示例:智能问答系统架构图" width="100%" /><br/><strong>智能问答系统架构图</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/01.png" alt="图表示例:学术研究框架图" width="100%" /><br/><strong>学术研究框架图</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/02.png" alt="图表示例:智能问答系统架构图" width="100%" /><br/><strong>智能问答系统架构图</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/03.png" alt="流程图示例:项目实施路线图" width="100%" /><br/><strong>项目实施路线图</strong></td>- <td width="50%" align="center"><img src="public/examples/readme-previews/flow/04.png" alt="流程图示例:课程设计思维导图" width="100%" /><br/><strong>课程设计思维导图</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/03.png" alt="图表示例:项目实施路线图" width="100%" /><br/><strong>项目实施路线图</strong></td>+ <td width="50%" align="center"><img src="public/examples/readme-previews/flow/04.png" alt="图表示例:课程设计思维导图" width="100%" /><br/><strong>课程设计思维导图</strong></td></tr></table>@@ -107,7 +107,7 @@| 画布 | 核心能力 | 常见输出 || --- | --- | --- |-| `流程绘制` | 结构化图表生成与局部编辑 | 流程图、架构图、逻辑图 |+| `图表绘制` | 结构化图表生成与局部编辑 | 流程图、架构图、逻辑图 || `室内设计` | 室内方案规划、图纸协同与交付打包 | 概念板、二维图纸、渲染任务单、材料清单 || `PPT 演示` | 结构化演示文稿生成与多种导出 | 演示文稿、汇报幻灯片、可编辑演示稿、提案稿 |@@ -119,7 +119,7 @@**做减法**-- 只保留三个画布:流程绘制、室内设计、PPT 演示。海报、产品、信息图画布已移除。+- 只保留三个画布:图表绘制、室内设计、PPT 演示。海报、产品、信息图画布已移除。- 移除内嵌的 `pptist-lab` 编辑器;可编辑演示稿直接导出 `.pptx`。- 统一为一条 OpenAI 兼容请求路径。厂商列表不仅从应用中移除,也从 `cad-skill` 和 `ppt-skill` 两个 skill 包中移除 —— 它们各自还带着一份九厂商的图像注册表,其中八个根本没有可用的接口地址。- 移除与 Vite 客户端重复的 Next.js 移植版本,以及旧 `PptWorkspace` 藏着的约 900 行不可达代码。@@ -158,7 +158,7 @@CanvasAnvil 为每个画布都提供了专用本地 skill,用来保证工作流稳定、输出一致,而不是把所有任务都塞进同一条通用提示链。-- `flow-skill` · 流程图生成与打包+- `flow-skill` · 图表生成与打包输出整洁的图表资源,并默认跳过独立 HTML 预览。- `cad-skill` · 室内设计交付流程导出图纸打包结果与 CSV 材料清单,便于后续交付。diff --git a/client/pages/portal/PortalPage.tsx b/client/pages/portal/PortalPage.tsxindex f3716c2..1e68f38 100644--- a/client/pages/portal/PortalPage.tsx+++ b/client/pages/portal/PortalPage.tsx@@ -169,9 +169,9 @@ const detailConfigs: Record<PortalWorkspace, DetailConfig> = {const detailConfigsEn: Record<PortalWorkspace, DetailConfig> = {flow: {- title: "Flow Canvas",- subtitle: "Turn a short requirement into a structured flowchart",- intro: "Flow Canvas converts natural-language process descriptions into editable diagrams. It supports node and connector edits, local revisions, and draw.io XML export.",+ title: "Diagram Canvas",+ subtitle: "Turn a short requirement into a structured diagram",+ intro: "Diagram Canvas converts natural-language process descriptions into editable diagrams. It supports node and connector edits, local revisions, and draw.io XML export.",tags: ["Structured diagrams", "Local edits", "draw.io XML"],bullets: ["Parse requirements into nodes and relationships", "Edit nodes and connectors directly", "Revise selected parts without regenerating the whole diagram", "Export draw.io XML for collaboration and reuse"],previews: detailConfigs.flow.previews,@@ -184,7 +184,7 @@ const detailConfigsEn: Record<PortalWorkspace, DetailConfig> = {{ title: "Export", text: "Export XML for reuse and collaboration.", icon: Upload },],cta: "Start Drawing",- slogan: "Create flowcharts with the freedom of a canvas",+ slogan: "Create diagrams with the freedom of a canvas",},cad: {title: "Interior Design Canvas",@@ -580,7 +580,7 @@ export function PortalPage({ onEnterWorkspace }: PortalPageProps) {titleB: "for multi-canvas",titleAccent: "creation",intro:- "CanvasAnvil supports three canvases: flow, interior, and PPT. It combines structured generation with local Patch / Replace editing so visual creation stays fast and controllable.",+ "CanvasAnvil supports three canvases: diagram, interior, and PPT. It combines structured generation with local Patch / Replace editing so visual creation stays fast and controllable.",tagA: "Three Canvases",tagB: "Structured Output",tagC: "Patch and Replace",diff --git a/client/pages/portal/data.ts b/client/pages/portal/data.tsindex fa1cd34..12896a0 100644--- a/client/pages/portal/data.ts+++ b/client/pages/portal/data.ts@@ -15,9 +15,9 @@ export const portalCanvasItems: PortalCanvasItem[] = [{id: "flow",zhTitle: "\u56fe\u8868\u753b\u5e03",- enTitle: "Flow Canvas",+ enTitle: "Diagram Canvas",zhSummary: "\u7ed3\u6784\u5316\u56fe\u8868\u4e0e\u8282\u70b9\u7ea7\u5c40\u90e8\u4fee\u6539",- enSummary: "Structured flow diagrams with node-level edits",+ enSummary: "Structured diagrams with node-level edits",image: "/examples/flow/01.png",angle: -90,accent: "#C96442",@@ -27,7 +27,7 @@ export const portalCanvasItems: PortalCanvasItem[] = [zhTitle: "\u5ba4\u5185\u8bbe\u8ba1\u753b\u5e03",enTitle: "Interior Canvas",zhSummary: "\u5e73\u9762\u65b9\u6848\u3001\u6548\u679c\u56fe\u4e0e\u6750\u6599\u6e05\u5355\u8054\u52a8",- enSummary: "Layouts, renders, and material lists in one flow",+ enSummary: "Layouts, renders, and material lists in one pass",image: "/examples/cad/01.png",angle: 30,accent: "#7C8B6E",diff --git a/client/shared/chat/global-constraints-dialog.tsx b/client/shared/chat/global-constraints-dialog.tsxindex 2fe1660..50405b8 100644--- a/client/shared/chat/global-constraints-dialog.tsx+++ b/client/shared/chat/global-constraints-dialog.tsx@@ -21,7 +21,7 @@ import { t, useUiLanguage } from "@/shared/i18n"export const STORAGE_GLOBAL_CONSTRAINTS_KEY = "CanvasAnvil-global-constraints"const WORKSPACE_LABELS: Record<string, string> = {- flow: "Flow",+ flow: "Diagram",cad: "CAD",ppt: "PPT",}diff --git a/client/shared/i18n/messages.ts b/client/shared/i18n/messages.tsindex 5fa15a1..ea0709e 100644--- a/client/shared/i18n/messages.ts+++ b/client/shared/i18n/messages.ts@@ -40,7 +40,7 @@ const messages = {"chat.collapseLocked": { zh: "PPT 生成完成前不能收起聊天", en: "Chat cannot be collapsed while PPT is generating" },"chat.collapse": { zh: "收起聊天", en: "Collapse chat" },- "nav.flow": { zh: "图表绘制", en: "Flow" },+ "nav.flow": { zh: "图表绘制", en: "Diagram" },"nav.cad": { zh: "室内设计", en: "CAD" },"nav.ppt": { zh: "PPT演示", en: "PPT" },diff --git a/client/workspaces/flow/lib/translations.ts b/client/workspaces/flow/lib/translations.tsindex 2d9779d..1f5fd48 100644--- a/client/workspaces/flow/lib/translations.ts+++ b/client/workspaces/flow/lib/translations.ts@@ -9,7 +9,7 @@ const messages = {"app.about": { zh: "关于", en: "About" },"chat.panel.show": { zh: "展开交互区 (Ctrl+B)", en: "Show chat panel (Ctrl+B)" },"chat.panel.hide": { zh: "收起交互区 (Ctrl+B)", en: "Hide chat panel (Ctrl+B)" },- "chat.panel.title": { zh: "图表交互区", en: "Flowchart Assistant" },+ "chat.panel.title": { zh: "图表交互区", en: "Diagram Assistant" },"chat.settings": { zh: "设置", en: "Settings" },"chat.vertical.title": { zh: "AI 对话", en: "AI Chat" },@@ -97,8 +97,8 @@ const messages = {// ExamplePanel"example.aws.title": { zh: "AWS 架构图", en: "AWS Architecture" },"example.aws.desc": { zh: "用 AWS 图标生成云架构图", en: "Create a cloud architecture diagram with AWS icons" },- "example.flowchart.title": { zh: "复刻图表", en: "Replicate Flowchart" },- "example.flowchart.desc": { zh: "上传并复刻已有图表", en: "Upload and replicate an existing flowchart" },+ "example.flowchart.title": { zh: "复刻图表", en: "Replicate Diagram" },+ "example.flowchart.desc": { zh: "上传并复刻已有图表", en: "Upload and replicate an existing diagram" },"example.creative.title": { zh: "创意绘图", en: "Creative Drawing" },"example.creative.desc": { zh: "生成有趣的创意图形", en: "Draw something fun and creative" },"example.cached": { zh: "示例已缓存,可快速响应", en: "Examples are cached for instant response" },