Mermaider 0.18.0

dotnet add package Mermaider --version 0.18.0
                    
NuGet\Install-Package Mermaider -Version 0.18.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.18.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mermaider" Version="0.18.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.18.0
                    
#r "nuget: Mermaider, 0.18.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.18.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.18.0
                    
Install as a Cake Addin
#tool nuget:?package=Mermaider&version=0.18.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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.  net11.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (20)

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.18.0 0 11/23/2026
0.17.0 4,562 11/12/2026
0.16.1 121 11/12/2026
0.16.0 956 11/11/2026
0.15.2 134 11/11/2026
0.15.1 32,873 10/6/2026
0.15.0 136 10/6/2026
0.14.1 3,516 10/5/2026
0.14.0 210 10/5/2026
0.13.1 46,970 9/11/2026
0.13.0 180 9/11/2026
0.12.2 22,171 8/11/2026
0.12.1 8,809 7/22/2026
0.12.0 188 7/22/2026
0.11.1 193 7/22/2026
0.11.0 304 7/21/2026
0.10.1 172 7/21/2026
0.10.0 159 7/21/2026
0.9.0 368 7/14/2026
0.8.0 12,741 6/2/2026
Loading failed