Mermaider 0.17.0
dotnet add package Mermaider --version 0.17.0
NuGet\Install-Package Mermaider -Version 0.17.0
<PackageReference Include="Mermaider" Version="0.17.0" />
<PackageVersion Include="Mermaider" Version="0.17.0" />
<PackageReference Include="Mermaider" />
paket add Mermaider --version 0.17.0
#r "nuget: Mermaider, 0.17.0"
#:package Mermaider@0.17.0
#addin nuget:?package=Mermaider&version=0.17.0
#tool nuget:?package=Mermaider&version=0.17.0
Mermaider

Render Mermaid diagrams to SVG in pure .NET. No browser, no DOM, no JavaScript runtime. AOT-ready.

Install
dotnet add package Mermaider
Quick start
using Mermaider;
var svg = MermaidRenderer.RenderSvg("""
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[OK]
B -->|No| D[End]
""");
// the same diagram as text, for a terminal, a log or a pull-request comment
var text = MermaidRenderer.RenderAscii("""
flowchart LR
A[(OrderEvents)] -->|"2/s"| B{{Orders}}
B --> C[Order]
""");
Hand it a Mermaid string; get a sanitized, consistently styled SVG back. No interop, no child processes, no headless browsers.
- Pure .NET, zero interop: just a NuGet reference. No Chromium, no Node.js, no subprocess management.
- Native AOT: every public API proven in CI on Linux, macOS and Windows.
- Built-in layout engine: Sugiyama, a zero-dependency layered layout with compound subgraphs and an orthogonal edge router.
- 24 diagram types: one API, one theming model for all of them.
- Unified theming: 15 themes, live-switchable via CSS custom properties.
- Always-on SVG sanitization: allowlist-only, no opt-out.
- Strict styling mode: enforce your design system on user-authored diagrams.
- Fast: ~95 µs and ~209 KB allocated to render a simple flowchart end to end.
Learn more
- Documentation: https://mermaider.nullean.net
- The full reference, with every render option and an example of each diagram type: https://github.com/nullean/mermaider#readme
- The command line tool: Mermaider.Cli
- Source and issues: https://github.com/nullean/mermaider
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.ObjectPool (>= 11.0.0)
- Sugiyama (>= 0.17.0)
NuGet packages (19)
Showing the top 5 NuGet packages that depend on Mermaider:
| Package | Downloads |
|---|---|
|
LiveMarkdown.Avalonia.Mermaid
This is a extension package for LiveMarkdown.Avalonia that adds support for rendering Mermaid diagrams. |
|
|
CodeWF.Avalonia.Markdown
Markdown 完整包:在 Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、行内样式(span style 字号/前景色/背景色,含选区浮动条与可读性回退)、PNG/PDF/Word/公众号 HTML 导出,以及源码编辑器与单栏实时编辑(所见即所得)控件,并内置能力控件主题。Full Markdown package: images, math, mermaid, highlighting, inline span styles (font size / foreground / background with selection bar and readability fallback), export and editors on top of the Lite engine. |
|
|
CodeWF.Markdown
CodeWF.Markdown 完整包:在 CodeWF.Markdown.Lite 渲染引擎之上提供图片(GIF/SVG/预览)、数学公式、Mermaid 图表、TextMate 代码高亮、PNG/PDF/Word/公众号 HTML 导出,以及 Markdown 源码编辑器与单栏实时编辑(所见即所得)控件。Full CodeWF.Markdown package: rendering capabilities plus source and WYSIWYG editors. |
|
|
CodeWF.Markdown.Themes
CodeWF.Markdown 完整包的样式入口:在 CodeWF.Markdown.Lite.Themes 的控件模板与 18 套排版主题之上,叠加图片能力控件外观。Styles entry point for the full CodeWF.Markdown package. |
|
|
Mermaider.Layout.Msagl
Optional, legacy-compatible Microsoft MSAGL layout provider for Mermaider. The built-in layout engine is faster and supports compound subgraph layout and orthogonal routing; use this package to keep output from earlier versions. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Mermaider:
| Repository | Stars |
|---|---|
|
DearVa/LiveMarkdown.Avalonia
High performance, real-time markdown renderer for AI/LLM
|
|
|
tig/winprint
Human and AI Agent friendly print utility with syntax highlighting, markdown support, multiple pages-up, headers/footers. Cross platform (Mac, Linux, Windows) GUI and TUI. Print source code, web pages, and reports generated by legacy systems.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.17.0 | 320 | 11/12/2026 |
| 0.16.1 | 57 | 11/12/2026 |
| 0.16.0 | 137 | 11/11/2026 |
| 0.15.2 | 78 | 11/11/2026 |
| 0.15.1 | 30,461 | 10/6/2026 |
| 0.15.0 | 134 | 10/6/2026 |
| 0.14.1 | 3,230 | 10/5/2026 |
| 0.14.0 | 210 | 10/5/2026 |
| 0.13.1 | 36,158 | 9/11/2026 |
| 0.13.0 | 174 | 9/11/2026 |
| 0.12.2 | 22,042 | 8/11/2026 |
| 0.12.1 | 8,532 | 7/22/2026 |
| 0.12.0 | 185 | 7/22/2026 |
| 0.11.1 | 193 | 7/22/2026 |
| 0.11.0 | 303 | 7/21/2026 |
| 0.10.1 | 170 | 7/21/2026 |
| 0.10.0 | 152 | 7/21/2026 |
| 0.9.0 | 347 | 7/14/2026 |
| 0.8.0 | 12,227 | 6/2/2026 |
| 0.7.1 | 304 | 5/20/2026 |