C4.Net.Renderer
0.9.13
dotnet add package C4.Net.Renderer --version 0.9.13
NuGet\Install-Package C4.Net.Renderer -Version 0.9.13
<PackageReference Include="C4.Net.Renderer" Version="0.9.13" />
<PackageVersion Include="C4.Net.Renderer" Version="0.9.13" />
<PackageReference Include="C4.Net.Renderer" />
paket add C4.Net.Renderer --version 0.9.13
#r "nuget: C4.Net.Renderer, 0.9.13"
#:package C4.Net.Renderer@0.9.13
#addin nuget:?package=C4.Net.Renderer&version=0.9.13
#tool nuget:?package=C4.Net.Renderer&version=0.9.13
C4.Net
C4.Net is a multi-targeted .NET library for building architecture workspaces in code, publishing them to Structurizr-compatible services, rendering diagrams to SVG, and adding interactive editing to Blazor applications.
For C4 model background and notation guidance, use the official C4 Model website.
Package overview
| Package | Purpose | Start here when you need to... |
|---|---|---|
C4.Net.Core |
Workspace, model, view, and styling APIs | Define people, software systems, containers, components, and views in .NET code |
C4.Net.Client |
Structurizr-compatible API client | Read or publish workspaces, preserve layout, and use optional client-side encryption |
C4.Net.Renderer |
SVG renderer | Generate standalone SVG diagrams from workspace views |
C4.Net.Editor |
Interactive Blazor editor components | Embed a browser-based layout editor for rendered workspace views |
Installation
dotnet add package C4.Net.Core
dotnet add package C4.Net.Client
dotnet add package C4.Net.Renderer
dotnet add package C4.Net.Editor
Install only the packages your application needs. Core is the foundation package. Client and Renderer build on Core, and Editor builds on Renderer.
Quick example
using C4.Net;
Workspace workspace = new Workspace("Getting Started", "A simple architecture workspace.");
Model model = workspace.Model;
Person user = model.AddPerson("User", "Uses the system.");
SoftwareSystem softwareSystem = model.AddSoftwareSystem("Software System", "Provides the core capability.");
user.Uses(softwareSystem, "Uses");
SystemContextView view = workspace.Views.CreateSystemContextView(
softwareSystem,
"system-context",
"A simple system context view.");
view.AddAllPeople();
view.AddAllSoftwareSystems();
Styles styles = workspace.Views.Configuration.Styles;
styles.Add(new ElementStyle(Tags.SoftwareSystem) { Background = "#1168bd", Color = "#ffffff" });
styles.Add(new ElementStyle(Tags.Person) { Background = "#08427b", Color = "#ffffff", Shape = Shape.Person });
Documentation
- Package map
- Core package guide
- Client package guide
- Renderer package guide
- Editor package guide
- Client-side encryption
Table of contents
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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. |
-
net10.0
- C4.Net.Core (>= 0.9.13)
-
net11.0
- C4.Net.Core (>= 0.9.13)
-
net8.0
- C4.Net.Core (>= 0.9.13)
-
net9.0
- C4.Net.Core (>= 0.9.13)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on C4.Net.Renderer:
| Package | Downloads |
|---|---|
|
C4.Net.Editor
Interactive Razor components for organising C4.Net workspace SVG diagrams. |
GitHub repositories
This package is not used by any popular GitHub repositories.