Anarchy.Toolkit.Web.Ui
2.0.0
See the version list below for details.
dotnet add package Anarchy.Toolkit.Web.Ui --version 2.0.0
NuGet\Install-Package Anarchy.Toolkit.Web.Ui -Version 2.0.0
<PackageReference Include="Anarchy.Toolkit.Web.Ui" Version="2.0.0" />
<PackageVersion Include="Anarchy.Toolkit.Web.Ui" Version="2.0.0" />
<PackageReference Include="Anarchy.Toolkit.Web.Ui" />
paket add Anarchy.Toolkit.Web.Ui --version 2.0.0
#r "nuget: Anarchy.Toolkit.Web.Ui, 2.0.0"
#:package Anarchy.Toolkit.Web.Ui@2.0.0
#addin nuget:?package=Anarchy.Toolkit.Web.Ui&version=2.0.0
#tool nuget:?package=Anarchy.Toolkit.Web.Ui&version=2.0.0
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
UiWebAppStartupBaseand supply the application's environment catalog throughUiAuthenticationOptions.Environments. - Use
UiApiClientBasefor 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
- Call
services.AddToolkitUi(),app.UseToolkitUi()andendpoints.MapToolkitUi(), or derive a startup fromUiWebAppStartupBase<TAppSettingsDiModule, TAppSettings>. - For a login, opt into the session with
AddToolkitUi(ui => ui.AddCookieSession(options))(or by overridingGetUiAuthenticationOptions), providingUiAuthenticationOptions, 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. - Register
AddToolkitUiApiHttpClient, your own clients and presenters. Derive a client fromUiApiClientBaseto resolve the target environment and send authenticated calls. - 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
wwwrootlayout:css/toolkit-ui.css,js/toolkit-ui.js, and fromAnarchy.Toolkit.Webfavicon.svg,favicon.pngandimages/logo-dark.png. - Login logo.
LoginFormshows the Anarchy I/O logo above the heading,images/logo.pngin light mode andimages/logo-dark.pngin dark mode. SetBrandLogoPathandDarkBrandLogoPathto use your own, orBrandLogoPath=""to show none. - Logo.
images/logo-dark.pngis the Anarchy I/O logo with white text (for dark backgrounds), sized for the dark navbar with thenavbar-logoclass (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 toUiHeadAssets'Stylesheets, which load after the toolkit's.
Releases
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.Web1.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 | Versions 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. |
-
net10.0
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.AspNetCoreServer (>= 10.3.2)
- Amazon.Lambda.Core (>= 3.4.0)
- Anarchy.Toolkit.Web (>= 1.2.1)
- AWSSDK.Core (>= 4.1.0.1)
- AWSSDK.KeyManagementService (>= 4.1.0)
- AWSSDK.SecretsManager (>= 4.1.1)
- Humanizer (>= 3.0.10)
- IdentityServer4.AccessTokenValidation (>= 3.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.15)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.15)
- Microsoft.Extensions.Hosting.Systemd (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.23.0)
- Microsoft.OpenApi (>= 3.11.1)
- Newtonsoft.Json (>= 13.0.4)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Swashbuckle.AspNetCore (>= 11.0.1)
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
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.