Anarchy.Toolkit.Web.Ui 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Anarchy.Toolkit.Web.Ui --version 3.0.0
                    
NuGet\Install-Package Anarchy.Toolkit.Web.Ui -Version 3.0.0
                    
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="Anarchy.Toolkit.Web.Ui" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Web.Ui" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Web.Ui" />
                    
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 Anarchy.Toolkit.Web.Ui --version 3.0.0
                    
#r "nuget: Anarchy.Toolkit.Web.Ui, 3.0.0"
                    
#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 Anarchy.Toolkit.Web.Ui@3.0.0
                    
#: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=Anarchy.Toolkit.Web.Ui&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Web.Ui&version=3.0.0
                    
Install as a Cake Tool

Anarchy.Toolkit.Web.Ui

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Web · Package catalog

An interactive-server Blazor UI pipeline with reusable components and cookie-session OAuth login.

dotnet add package Anarchy.Toolkit.Web.Ui
  • Derive from UiWebAppStartupBase and supply the application's environment catalog through UiAuthenticationOptions.Environments.
  • Use UiApiClientBase for downstream API clients and the supplied login, notification, confirmation, JSON and pagination components for UI composition.
  • Pages, API clients and environment URLs belong to the consuming application.

When to use it

Use this package for a server-interactive Blazor WebApp, with or without a login. AddToolkitUi runs on a plain WebApplication; the cookie session add-on (AddCookieSession) signs in with OAuth client credentials and calls environment-specific downstream APIs. It provides shared UI infrastructure and components, not your application's pages, API contracts or identity server.

How to use it

  1. Call services.AddToolkitUi(), app.UseToolkitUi() and endpoints.MapToolkitUi(), or derive a startup from UiWebAppStartupBase<TAppSettingsDiModule, TAppSettings>.
  2. For a login, opt into the session with AddToolkitUi(ui => ui.AddCookieSession(options)) (or by overriding GetUiAuthenticationOptions), providing UiAuthenticationOptions, including the required OAuth scope and an environment catalog with auth and API URLs. The deployed host's environment must be present in that catalog.
  3. Register AddToolkitUiApiHttpClient, your own clients and presenters. Derive a client from UiApiClientBase to resolve the target environment and send authenticated calls.
  4. Map your Razor application with interactive server rendering, then compose pages and layouts with the supplied login, session, notification, modal and pagination components. Keep real credentials and deployment URLs in appropriate configuration or secret stores.

The UI guide includes startup and client examples; the sample startup also demonstrates a local stub setup.

See the UI guide, UI sample and toolkit overview.

Theme

css/toolkit-ui.css follows the documentation sites and the Anarchy brand guide: neutral surfaces, a black header with the red/orange gradient rule, red/orange kept for primary actions and important states, and Inter and JetBrains Mono when installed (system fonts otherwise; nothing is downloaded).

  • Light and dark mode. Every colour token is a light-dark(<light>, <dark>) pair. Pages follow the system preference; add <ThemeToggle /> (for example to the navbar) to let users switch, and their choice is remembered in the browser. <html data-theme="light"> or "dark" forces a mode.
  • Assets. Served from the usual wwwroot layout: css/toolkit-ui.css, js/toolkit-ui.js, and from Anarchy.Toolkit.Web favicon.svg, favicon.png and images/logo-dark.png.
  • Login logo. LoginForm shows the Anarchy I/O logo above the heading, images/logo.png in light mode and images/logo-dark.png in dark mode. Set BrandLogoPath and DarkBrandLogoPath to use your own, or BrandLogoPath="" to show none.
  • Logo. images/logo-dark.png is the Anarchy I/O logo with white text (for dark backgrounds), sized for the dark navbar with the navbar-logo class (as in the sample and scaffolded layouts).
  • Rebranding. Override the tokens at the top of css/toolkit-ui.css (--primary-color, --link-color, --header-bg, --brand-gradient, …) in a stylesheet passed to UiHeadAssets' Stylesheets, which load after the toolkit's.

Releases

3.0.0

  • feat(automation): establish onboarding and layering conventions
  • feat(telemetry)!: introduce provider-neutral application telemetry
  • refactor(packages)!: restructure persistence and automation packages
  • refactor(infrastructure.correlationid)!: decouple correlation scopes from Serilog
  • refactor(core)!: reshape telemetry, event and health contracts
  • fix(persistence)!: preserve unit-of-work transaction ownership
  • refactor(telemetry)!: remove legacy APIs and simplify namespaces
  • feat(automation)!: configure layering and bridge build telemetry
  • refactor(telemetry)!: update consumers and samples
  • docs(onboarding): align package guidance, skills, and architecture

2.0.0

  • refactor(Web.Ui)!: make the cookie session an opt-in add-on and allow UIs without a startup base

1.2.2

  • fix(Web.Ui): serve static web assets of unpublished builds outside Development

1.2.1

  • docs(packages): identify each package's pillar and layer
  • build(packages): attribute the copyright to Leandro Melão Medeiros
  • build: relicense under Apache-2.0 and update the package metadata

1.2.0

  • build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1
  • feat(Web): serve OpenAPI 3.2 and theme Swagger UI with a light and dark Anarchy theme
  • feat(Web.Ui): align the UI theme with the documentation and add dark mode

1.0.8

  • docs: expand XML docblocks across all projects for the DocFX API reference

1.0.7

  • References Anarchy.Toolkit.Web 1.0.7, aligned with the .NET 10 LTS.

1.0.6

  • refactor(src): clean up code style across library packages
  • chore(deps): update AWS SDK, Lambda ASP.NET Core server and MySqlConnector packages

1.0.5

  • chore(deps): update AWS SDK packages

1.0.3

  • build: migrate local automation to build tooling

1.0.2

  • docs: expand package guides and release histories
  • chore(deps): update AWS, Polly, and xUnit packages

1.0.1

  • Added a package-specific NuGet README.

1.0.0

  • Introduced Blazor UI hosting, session handling, presentation services, HTTP client infrastructure and reusable components.
Product Compatible and additional computed target framework versions.
.NET 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 Anarchy.Toolkit.Web.Ui:

Package Downloads
Anarchy.Toolkit.Web.MockServer.Ui

Browser UI for Anarchy.Toolkit.Web.MockServer, built on Anarchy.Toolkit.Web.Ui: loaded expectations, received requests, plugged-in middlewares and a live log. Runs standalone or from a host of your own.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 0 11/21/2026
3.0.0 0 11/20/2026
2.0.0 85 11/17/2026
1.2.2 76 11/17/2026
1.2.1 83 11/17/2026
1.2.0 83 11/17/2026
1.1.0 82 11/17/2026
1.0.8 85 11/16/2026
1.0.7 99 11/15/2026
1.0.6 87 11/14/2026
1.0.5 91 11/13/2026
1.0.4 82 11/9/2026
1.0.3 80 11/9/2026
1.0.1 93 11/6/2026
1.0.0 93 11/5/2026

Initial release.