Mermaider 0.17.0

dotnet add package Mermaider --version 0.17.0
                    
NuGet\Install-Package Mermaider -Version 0.17.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mermaider" Version="0.17.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mermaider" Version="0.17.0" />
                    
Directory.Packages.props
<PackageReference Include="Mermaider" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mermaider --version 0.17.0
                    
#r "nuget: Mermaider, 0.17.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mermaider@0.17.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mermaider&version=0.17.0
                    
Install as a Cake Addin
#tool nuget:?package=Mermaider&version=0.17.0
                    
Install as a Cake Tool

Mermaider

Mermaider

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

NuGet

A flowchart with two subgraphs, labelled edges and dashed event edges, rendered by Mermaider

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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed