DiagramForge 1.1.0

dotnet add package DiagramForge --version 1.1.0
                    
NuGet\Install-Package DiagramForge -Version 1.1.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="DiagramForge" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DiagramForge" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DiagramForge" />
                    
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 DiagramForge --version 1.1.0
                    
#r "nuget: DiagramForge, 1.1.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 DiagramForge@1.1.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=DiagramForge&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DiagramForge&version=1.1.0
                    
Install as a Cake Tool

DiagramForge

DiagramForge banner

Text in, SVG out. DiagramForge is a .NET library and CLI for rendering diagram text to real SVG without a browser, JavaScript runtime, or headless Chrome.

DiagramForge focuses on the cases where Mermaid-style diagram authoring is useful, but browser-generated SVG is not: PowerPoint decks, Keynote slides, Inkscape workflows, docs pipelines, and image conversion with tools like librsvg.

Diagram gallery

Why DiagramForge

  • Real SVG output with native text elements
  • No browser, Node.js, or headless Chrome dependency
  • Deterministic rendering suitable for snapshot testing
  • Mermaid subset support plus presentation-oriented conceptual layouts
  • Built-in themes, JSON themes, palette overrides, and embedded frontmatter styling

Theme gallery

Install

DiagramForge targets .NET 10.

Library

dotnet add package DiagramForge

CLI (dnx)

dnx DiagramForge.Tool --help

With .NET 10, dnx can run the tool package directly without a prior install.

Basic usage

using DiagramForge;

var renderer = new DiagramRenderer();
string svg = renderer.Render("""
flowchart LR
  A[Plan] --> B[Build]
  B --> C[Ship]
""");

CLI usage

dnx DiagramForge.Tool diagram.mmd -o diagram.svg
dnx DiagramForge.Tool diagram.mmd --theme dracula --transparent -o overlay.svg

Supported today

  • Mermaid subset: flowchart, block, sequence, state, mindmap, timeline, venn, architecture, and xychart
  • Conceptual DSL: matrix, pyramid, cycle, pillars, funnel, and radial
  • Theme presets, theme JSON files, palette overrides, and frontmatter styling

DiagramForge intentionally implements a focused Mermaid subset rather than full Mermaid.js parity.

Documentation

Feedback

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.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 168 3/17/2026
1.0.0 353 3/13/2026
1.0.0-rc.2 40 3/13/2026
1.0.0-rc.1 44 3/12/2026
0.1.0 115 3/11/2026
0.0.0-alpha.0.30 46 3/11/2026