StandardBeagle.Strata.Render.Spectre 0.1.0-alpha.5

This is a prerelease version of StandardBeagle.Strata.Render.Spectre.
dotnet add package StandardBeagle.Strata.Render.Spectre --version 0.1.0-alpha.5
                    
NuGet\Install-Package StandardBeagle.Strata.Render.Spectre -Version 0.1.0-alpha.5
                    
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="StandardBeagle.Strata.Render.Spectre" Version="0.1.0-alpha.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StandardBeagle.Strata.Render.Spectre" Version="0.1.0-alpha.5" />
                    
Directory.Packages.props
<PackageReference Include="StandardBeagle.Strata.Render.Spectre" />
                    
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 StandardBeagle.Strata.Render.Spectre --version 0.1.0-alpha.5
                    
#r "nuget: StandardBeagle.Strata.Render.Spectre, 0.1.0-alpha.5"
                    
#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 StandardBeagle.Strata.Render.Spectre@0.1.0-alpha.5
                    
#: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=StandardBeagle.Strata.Render.Spectre&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=StandardBeagle.Strata.Render.Spectre&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Tool

StandardBeagle.Strata.Render.Spectre

A Spectre.Console projection for Strata: turns a styled tree into an IRenderable for inline console output.

dotnet add package StandardBeagle.Strata.Render.Spectre --prerelease

End-to-end: adapter → cascade → projection.

using Strata.Core;
using Strata.Css;
using Strata.Properties.Styling;
using Strata.Render.Spectre;

var registry = StylingProperties.CreateRegistry();
var sheet    = new CssStylesheetParser(new CssSelectorLanguage(), registry).Parse(cssText).ThrowIfErrors();
var result   = new Cascade(registry).Compute(root, sheet);

IRenderable view = new SpectreProjection().Project(root, result);
AnsiConsole.Write(view);

To honor layout (display: grid, position: absolute), register LayoutProperties and give the projection the cell area; it runs the Yoga layout pass and sizes every auto leaf by the text it draws (DrawnText: tabs expanded, control characters replaced, a Button's [ … ]):

LayoutProperties.RegisterAll(registry);
var projection = new SpectreProjection();
AnsiConsole.Write(projection.Project(root, result, new Strata.Layout.Yoga.Size(80, 24)));
// or keep the rects: var layout = projection.ComputeLayout(root, result, size);

On a 16- or 8-color terminal, pass the console's color system so Strata picks the palette entry and keeps hue (Spectre's own downgrade turns pastels grey: #88ccff → silver):

var projection = new SpectreProjection { ColorSystem = AnsiConsole.Profile.Capabilities.ColorSystem };

Control characters in node text (ESC, BEL, CSI, …) are shown as visible stand-ins (␛), so data cannot drive the terminal; set EscapeControlCharacters = false to opt out. Unstyled text keeps the terminal's default color. Projection is iterative over plain containers, so deep trees do not overflow the stack.

root is any ITreeNode — wrap your data with StandardBeagle.Strata.Adapters.JsonNode, StandardBeagle.Strata.Adapters.PSObject, or your own adapter. See the docs.

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 was computed.  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. 
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 StandardBeagle.Strata.Render.Spectre:

Package Downloads
StandardBeagle.Strata.Dsl

PowerShell-facing DSL element model and console render facade for Strata: build a styled element tree from PowerShell and render it via the Spectre projection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.5 0 12/2/2026
0.1.0-alpha.4 9 12/2/2026
0.1.0-alpha.3 184 12/1/2026
0.1.0-alpha.1 119 6/1/2026