StacyClouds.C4Sharp.Renderer
0.9.8
Due to a naming conflict this package will move forward as C4.Net.Renderer
dotnet add package StacyClouds.C4Sharp.Renderer --version 0.9.8
NuGet\Install-Package StacyClouds.C4Sharp.Renderer -Version 0.9.8
<PackageReference Include="StacyClouds.C4Sharp.Renderer" Version="0.9.8" />
<PackageVersion Include="StacyClouds.C4Sharp.Renderer" Version="0.9.8" />
<PackageReference Include="StacyClouds.C4Sharp.Renderer" />
paket add StacyClouds.C4Sharp.Renderer --version 0.9.8
#r "nuget: StacyClouds.C4Sharp.Renderer, 0.9.8"
#:package StacyClouds.C4Sharp.Renderer@0.9.8
#addin nuget:?package=StacyClouds.C4Sharp.Renderer&version=0.9.8
#tool nuget:?package=StacyClouds.C4Sharp.Renderer&version=0.9.8
C4Sharp.NET
C4Sharp.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... |
|---|---|---|
StacyClouds.C4Sharp.Core |
Workspace, model, view, and styling APIs | Define people, software systems, containers, components, and views in .NET code |
StacyClouds.C4Sharp.Client |
Structurizr-compatible API client | Read or publish workspaces, preserve layout, and use optional client-side encryption |
StacyClouds.C4Sharp.Renderer |
SVG renderer | Generate standalone SVG diagrams from workspace views |
StacyClouds.C4Sharp.Editor |
Interactive Blazor editor components | Embed a browser-based layout editor for rendered workspace views |
Installation
dotnet add package StacyClouds.C4Sharp.Core
dotnet add package StacyClouds.C4Sharp.Client
dotnet add package StacyClouds.C4Sharp.Renderer
dotnet add package StacyClouds.C4Sharp.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 StacyClouds.C4Sharp;
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
- StacyClouds.C4Sharp.Core (>= 0.9.8)
-
net11.0
- StacyClouds.C4Sharp.Core (>= 0.9.8)
-
net8.0
- StacyClouds.C4Sharp.Core (>= 0.9.8)
-
net9.0
- StacyClouds.C4Sharp.Core (>= 0.9.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on StacyClouds.C4Sharp.Renderer:
| Package | Downloads |
|---|---|
|
StacyClouds.C4Sharp.Editor
Interactive Razor components for organising C4Sharp workspace SVG diagrams. |
GitHub repositories
This package is not used by any popular GitHub repositories.