StandardBeagle.Strata.Render.Spectre
0.1.0-alpha.5
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
<PackageReference Include="StandardBeagle.Strata.Render.Spectre" Version="0.1.0-alpha.5" />
<PackageVersion Include="StandardBeagle.Strata.Render.Spectre" Version="0.1.0-alpha.5" />
<PackageReference Include="StandardBeagle.Strata.Render.Spectre" />
paket add StandardBeagle.Strata.Render.Spectre --version 0.1.0-alpha.5
#r "nuget: StandardBeagle.Strata.Render.Spectre, 0.1.0-alpha.5"
#:package StandardBeagle.Strata.Render.Spectre@0.1.0-alpha.5
#addin nuget:?package=StandardBeagle.Strata.Render.Spectre&version=0.1.0-alpha.5&prerelease
#tool nuget:?package=StandardBeagle.Strata.Render.Spectre&version=0.1.0-alpha.5&prerelease
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 | 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 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. |
-
net10.0
- Spectre.Console (>= 0.49.1)
- StandardBeagle.Strata.Abstractions (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Core (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Layout.Yoga (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Properties.Styling (>= 0.1.0-alpha.5)
- Wcwidth (>= 2.0.0)
- Yoga.Net (>= 3.2.3)
-
net8.0
- Spectre.Console (>= 0.49.1)
- StandardBeagle.Strata.Abstractions (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Core (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Layout.Yoga (>= 0.1.0-alpha.5)
- StandardBeagle.Strata.Properties.Styling (>= 0.1.0-alpha.5)
- Wcwidth (>= 2.0.0)
- Yoga.Net (>= 3.2.3)
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 |