DiagramForge.Tool 1.1.0

dotnet tool install --global DiagramForge.Tool --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DiagramForge.Tool --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DiagramForge.Tool&version=1.1.0
                    
nuke :add-package DiagramForge.Tool --version 1.1.0
                    

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.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 130 3/17/2026
1.0.0 100 3/13/2026
1.0.0-rc.2 54 3/13/2026
1.0.0-rc.1 61 3/12/2026
0.1.0 103 3/11/2026
0.0.0-alpha.0.30 59 3/11/2026