StacyClouds.C4Sharp.Renderer 0.9.8

Suggested Alternatives

C4.Net.Renderer

Additional Details

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
                    
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="StacyClouds.C4Sharp.Renderer" Version="0.9.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StacyClouds.C4Sharp.Renderer" Version="0.9.8" />
                    
Directory.Packages.props
<PackageReference Include="StacyClouds.C4Sharp.Renderer" />
                    
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 StacyClouds.C4Sharp.Renderer --version 0.9.8
                    
#r "nuget: StacyClouds.C4Sharp.Renderer, 0.9.8"
                    
#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 StacyClouds.C4Sharp.Renderer@0.9.8
                    
#: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=StacyClouds.C4Sharp.Renderer&version=0.9.8
                    
Install as a Cake Addin
#tool nuget:?package=StacyClouds.C4Sharp.Renderer&version=0.9.8
                    
Install as a Cake Tool

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

Table of contents

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
0.9.8 125 9/6/2026 0.9.8 is deprecated because it is no longer maintained.
0.9.4 110 8/30/2026
0.9.0 109 8/26/2026