跳到正文

正在自动登录…

← 返回项目列表

wevm/ondine

图表编译SVG生成

Ondine 是一个用 Rust 编译 Mermaid 图表的工具,可将图表预编译为 SVG,支持 Vite 插件、CLI、Node 编译器、Markdown/MDX 集成、浏览器内编译和 GitHub 图片服务,适用于需要快速、轻量渲染图表的开发者和文档编写者。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/21 13:21:39 · 查看原文

值得看Rust开发工具
累计 Stars
362
当前热度
1~7 天 · 小火
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/21 13:21:39

使用方式

可通过 Vite 插件在构建时编译 .mmd 文件,或使用 CLI 命令从文件或标准输入编译图表,也可在 Node 脚本或服务器中使用编译器,或通过 Markdown/MDX 插件替换代码块。

查看 README 依据
- **Compiled.** Diagrams compile ahead of time, so pages ship SVG instead of a renderer. - **Compatible.** Every diagram accepts the same input as Mermaid. - **Precise.** Square outlines and rounded orthogonal edges. - **Small.** A 210-byte runtime (gzip) mounts precompiled diagrams. ## Features - [**Vite Plugin**](site/src/content/docs/guides/vite.mdx): `.mmd` imports compiled to SVG at build time. - [**CLI**](site/src/content/docs/guides/cli.mdx): the `ondine` command compiles diagrams from files or standard input.
- [**Node Compiler**](site/src/content/docs/guides/node.mdx): `ondine/compiler` renders source to SVG in scripts and servers. - [**Markdown and MDX**](site/src/content/docs/api/remark.mdx): `ondine/remark` replaces ` ```mermaid ` fences with compiled SVG. - [**In-Browser Compilation**](site/src/content/docs/guides/browser.mdx): opt-in `ondine/compiler/wasm` modules, one per diagram type or `all`. - [**GitHub Images**](site/src/content/docs/guides/github.mdx): an image Worker renders diagrams encoded in a URL for READMEs.
部署要求

需要 Node.js 环境以使用 Node 编译器或相关插件,浏览器内编译需使用 WASM 模块。

查看 README 依据
- [**Node Compiler**](site/src/content/docs/guides/node.mdx): `ondine/compiler` renders source to SVG in scripts and servers. - [**Markdown and MDX**](site/src/content/docs/api/remark.mdx): `ondine/remark` replaces ` ```mermaid ` fences with compiled SVG. - [**In-Browser Compilation**](site/src/content/docs/guides/browser.mdx): opt-in `ondine/compiler/wasm` modules, one per diagram type or `all`. - [**GitHub Images**](site/src/content/docs/guides/github.mdx): an image Worker renders diagrams encoded in a URL for READMEs.
已知限制

图表需预先编译,页面加载时仅需挂载预编译的 SVG,无需下载解析器或布局代码。

查看 README 依据
- [**Theming**](site/src/content/docs/guides/theming.mdx): `--ondine-*` CSS custom properties switch schemes without compiling again. - [**Mounting**](site/src/content/docs/guides/mounting.mdx): `mount` inserts precompiled SVG without downloading a parser or layout code. ## Documentation Head to the [documentation](https://ondine.sh) to get started and learn more about Ondine. ## License [MIT](LICENSE)

README

正在加载 README…

收录信息

仓库创建时间
2026/10/18 13:51:05
首次达标收录
2026/10/21 13:16:07
统计更新时间
2026/10/22 19:00:56

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
3.6
实用价值
4.5
成熟度
4.1
实质含量
3.5

由 Jev 模型根据仓库描述与 README 评估,2026/10/21 13:16:07 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/22 09:50:34
许可证标识
NOASSERTION
Fork 数
16
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目