首页 › Windows 效率工具 › 开发终端 › D2 架构图绘制 v0.10.0

D2 架构图绘制 v0.10.0

活跃更新中
⭐ 25,875 GitHub Stars🕐 当前版本发布于 81 天前(2026-09-07)📊 综合活跃评分 0.68

D2 是一款把纯文本转成架构图的脚本语言工具,用代码描述节点和连线,图表随代码同步更新。支持多种布局引擎和主题,可导出常见图片格式,适合开发者、架构师在文档里维护可版本化的系统图。

核心亮点:

  • 用文本描述节点与连线,图表随代码一起改
  • 内置多种布局引擎与主题,样式可灵活定制
  • 支持导出多种图片格式,方便嵌入文档
  • 提供命令行与在线演练场,可实时预览

当前版本 v0.10.0(2026-11-27 发布),开源协议 MPL-2.0,GitHub 25,972 star。

D2 图标

D2 界面截图
D2 界面截图

核心信息

软件名称 D2(d2lang/d2)
当前版本 v0.10.0
更新日期 2026-11-27
开源协议 MPL-2.0
软件分类 Windows 效率工具
关键词 developer-tools、diagramming、diagrams、go、golang、software-architecture

本次更新内容

  • 新增动画过渡功能,可为样式、渐变和网格等元素添加动画,并支持导出为动图,目前处于测试阶段。
  • 支持分步动画,小改动即可保留节点位置与连线路径,让连接线逐步绘制、元素平滑移动。
  • 新增语言服务器,在编辑器中提供实时诊断、补全、格式化和跨图跳转重命名等能力。
  • 新增 MCP 服务,让 AI 客户端能查询语法、检查图表并渲染输出。
  • 新版本大幅提升构建体积、输出体积和运行速度,并修复大量边界问题。
  • 官方预告将发布正式版,并会统一命名风格,带来少量一次性不兼容改动。
查看官方英文更新日志(原文)
AI is ripping. Finally got around to clearing out some long-standing issues, formalize a grammar (though it's still wip), fix a bunch of corner cases, tedious issues, etc. I'm focusing on 2 things:
1. Performance -- across size of build (mainly for client-side/JS use case), size of output, and speed. All 3 have advanced significantly in this release, somewhat near capabilities of public frontier models. We'll revisit when the Reimann Hypothesis-solving generation of models come out.
2. Animations. I make a lot of [3b1b-type explainer videos](https://github.com/d2lang/d2/pull/2986) to understand things in my day-to-day work and the quality is tempermental. There's a 3b1b library for their animations but it didn't work well for me and I've removed it from my prompts. I'm more motivated to do well here for my own use case, so I want to make animations in D2 really nice throughout the 0.10 series of releases.

I plan to cut a 1.0 soon finally. There'll be more one-time breaking changes like consolidating casing/hyphenation (e.g. `sequence_diagram` to `sequence-diagram`).

AI-generated changelog:

#### Features 🚀

- **Animated transitions.** Set `animate-duration` to animate styles, gradients, text decorations, grid edits, and sketch shading in SVG or GIF. It defaults to zero. `animate-interval` sets the minimum time per board. [Timing](https://d2lang.com/tour/animation/#configuration) · [Grid examples](https://d2lang.com/tour/animation/#grid-animations)

<a href="https://d2lang.com/img/generated/cache-stampede.svg" aria-label="Open the full-size cache-stampede animation">
  <img src="https://d2lang.com/img/generated/cache-stampede.svg" width="1018" alt="A shield cache combines 1,200 requests from six edge locations into one origin read." />
</a>

[Cache stampede source](https://d2lang.com/tour/animation/)

- **TALA step animations.** Small edits can preserve node positions and routes across steps and scenarios. Connections draw in, groups move between containers, trailing SQL rows slide in or out, and sequence messages travel to their receivers. [Animated steps and source](https://d2lang.com/tour/animation/#animated-steps) · [Go API](https://github.com/d2lang/d2/blob/d70ec718/d2layouts/d2talalayout/README.md#L21-L33)

<a href="https://d2lang.com/img/animation/night-signal.svg" aria-label="Open the full-size Night Signal animation">
  <picture>
    <source media="(prefers-reduced-motion: reduce)" srcset="https://d2lang.com/img/animation/night-signal-still.svg" />
    <img src="https://d2lang.com/img/animation/night-signal.svg" width="1188" loading="lazy" alt="A telescope detects a signal. An outbox saves the receipt and reuses it when the publisher retries." />
  </picture>
</a>

> [!WARNING]
> Animated transitions are in alpha. [Send feedback or suggestions](https://github.com/d2lang/d2/issues/new).

- **Language server.** Run `d2 lsp` for live diagnostics, completion, and formatting in your editor. Go to definition, find references, and rename shape

下载地址

以下为官方原包,本站不二次打包;多个文件为不同包型,按需选择其中一个下载即可:

d2-v0.10.0-windows-amd64-user.msi(安装版 | 15.0 MB)

⬇ 本地下载
备用线路 · GitHub 加速

SHA256:31b9690bede9a8a2408bfb6f37567540c476694cba6c5ae1056de5aa41f0efc8

d2-v0.10.0-windows-amd64.msi(安装版 | 15.0 MB)

⬇ 本地下载
备用线路 · GitHub 加速

SHA256:5904a600801847f1e61c5bff6d0b9b5999786b9686de9516f2b5ede95287339f

✅ 上方 SHA256 与官方发布值一致,可自行核对。

快速上手

  1. 运行下载好的安装包,按向导完成安装,安装后 D2 命令行工具即可在终端中使用。
  2. 在终端进入存放图表的文件夹,新建文本文件并写入简单连线内容,保存为 .d2 文件。
  3. 在终端执行 d2 –watch 加输入文件名和输出 SVG 文件名,启动转换并进入监听模式。
  4. 浏览器会自动打开生成的 SVG,修改 .d2 文件后画面实时刷新,按需调整内容。

提示:保持终端窗口开启,监听模式才能持续刷新图表。

同类高活跃软件

本站评分

(No Ratings Yet)

版本历史

本站累计收录 2 个版本

  • v0.10.02026-11-27当前
  • v0.9.02026-09-07

讨论(0 条)

还没有讨论,说说你的使用体验?

🔒 无需注册 · 链接失效报告优先处理