GnOuGo.Flow.Mermaid 0.20.0

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

GnOuGo.Flow.Mermaid

AOT-compatible Mermaid diagram renderer for GnOuGo.Flow YAML workflows.

The package parses a workflow YAML document with GnOuGo.Flow.Core and emits Mermaid flowchart diagrams. It renders the selected main workflow and can also emit separate diagrams for local sub-workflows referenced by workflow.call or static local candidates in workflow.route.

Usage

using GnOuGo.Flow.Mermaid;

var result = MermaidWorkflowRenderer.Render(yaml, new MermaidRenderOptions
{
    SubWorkflowMode = MermaidSubWorkflowMode.ReferencedLocalOnly,
    IncludeEmitSteps = false,
    GuardRenderMode = MermaidGuardRenderMode.EdgeLabel
});

File.WriteAllText(result.Main.SuggestedFileName, result.Main.Content);

foreach (var subWorkflow in result.SubWorkflows)
    File.WriteAllText(subWorkflow.SuggestedFileName, subWorkflow.Content);

Build

dotnet build src/GnOuGo.Flow.Mermaid/GnOuGo.Flow.Mermaid.csproj

Test

dotnet test tests/GnOuGo.Flow.Mermaid.Tests/GnOuGo.Flow.Mermaid.Tests.csproj

Notes

  • kind: local workflow references are resolved from the same YAML document.
  • kind: workspace, kind: url, database routes, and generated workflows are shown as call/router nodes but are not fetched or executed by the renderer.
  • emit steps are hidden by default to keep diagrams focused on execution structure. Set IncludeEmitSteps = true to show them.
  • Step if guards are rendered as incoming edge labels by default. Set GuardRenderMode = MermaidGuardRenderMode.NodeLabel to render them in node labels.
  • The library is pure C# and does not require a Mermaid runtime.
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

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
0.20.0 81 10/2/2026
0.20.0-dev.847 50 9/30/2026
0.20.0-dev.837 54 9/30/2026
0.20.0-dev.786 47 9/25/2026
0.20.0-dev.784 51 9/25/2026
0.19.4-dev.756 57 9/24/2026
0.19.3 91 9/24/2026
0.19.3-dev.730 55 9/23/2026
0.19.3-dev.728 56 9/22/2026
0.19.2 88 9/22/2026
0.19.2-dev.715 54 9/22/2026
0.19.1 141 8/16/2026
0.19.0 116 8/16/2026
0.18.4 106 8/15/2026
0.18.3 112 8/15/2026
0.18.2 108 8/15/2026
0.18.1 116 8/14/2026
0.18.0 113 8/14/2026
0.18.0-dev.415 76 8/14/2026
0.18.0-dev.406 68 8/12/2026
Loading failed