FoggyBalrog.MermaidDotNet
0.1.0
See the version list below for details.
dotnet add package FoggyBalrog.MermaidDotNet --version 0.1.0
NuGet\Install-Package FoggyBalrog.MermaidDotNet -Version 0.1.0
<PackageReference Include="FoggyBalrog.MermaidDotNet" Version="0.1.0" />
paket add FoggyBalrog.MermaidDotNet --version 0.1.0
#r "nuget: FoggyBalrog.MermaidDotNet, 0.1.0"
// Install FoggyBalrog.MermaidDotNet as a Cake Addin #addin nuget:?package=FoggyBalrog.MermaidDotNet&version=0.1.0 // Install FoggyBalrog.MermaidDotNet as a Cake Tool #tool nuget:?package=FoggyBalrog.MermaidDotNet&version=0.1.0
MermaidDotNet
<img src="./mermaid.png" alt="Mermaid icon" width="100"/>
A .NET library to generate Mermaid diagrams from C# code.
[!WARNING]
Still under development. Not ready for production.
Quick Start
The following code samples show how to create a simple Mermaid diagram of each implemented diagram type.
Flowchart
string diagram = Mermaid
.Flowchart()
.AddNode("N1", out var n1)
.AddNode("N2", out var n2)
.AddNode("N3", out var n3)
.AddLink(n1, n2, "some text")
.AddLink(n2, n3)
.Build();
Read more at docs/flowchart.md.
Sequence diagram
string diagram = Mermaid
.SequenceDiagram()
.AddParticipant("Alice", out var a)
.AddParticipant("Bob", out var b)
.SendMessage(a, b, $"Hello {b.Name}!")
.SendMessage(b, a, $"Hello {a.Name}!")
.Build();
Read more at docs/sequence-diagram.md.
Entity relationship diagram
string diagram = Mermaid
.EntityRelationshipDiagram()
.AddEntity("Customer", out var c)
.AddEntity("Order", out var o)
.AddEntity("Product", out var p)
.AddRelationship(Cardinality.ExactlyOne, c, Cardinality.ZeroOrMore, o, "places")
.AddRelationship(Cardinality.ExactlyOne, o, Cardinality.OneOrMore, p, "contains")
.Build();
Read more at docs/entity-relationship-diagram.md.
License
This project is licensed under the GNU Affero General Public License v3.0. See the LICENSE file for details.
Credits
Mermaid icon created by Smashicons on Flaticon.
Product | Versions 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 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- 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 |
---|---|---|
0.15.0 | 74 | 12/18/2024 |
0.14.0 | 297 | 11/5/2024 |
0.13.0 | 495 | 9/20/2024 |
0.12.0 | 141 | 8/13/2024 |
0.11.0 | 404 | 7/23/2024 |
0.10.0 | 92 | 7/8/2024 |
0.9.0 | 119 | 6/14/2024 |
0.8.0 | 103 | 6/13/2024 |
0.7.0 | 369 | 5/23/2024 |
0.6.0 | 87 | 5/13/2024 |
0.5.0 | 220 | 5/2/2024 |
0.4.0 | 122 | 4/29/2024 |
0.3.0 | 122 | 4/26/2024 |
0.2.0 | 162 | 4/16/2024 |
0.1.0 | 128 | 4/16/2024 |