Klyroo.Stack
0.1.0-preview.2
dotnet add package Klyroo.Stack --version 0.1.0-preview.2
NuGet\Install-Package Klyroo.Stack -Version 0.1.0-preview.2
<PackageReference Include="Klyroo.Stack" Version="0.1.0-preview.2" />
<PackageVersion Include="Klyroo.Stack" Version="0.1.0-preview.2" />
<PackageReference Include="Klyroo.Stack" />
paket add Klyroo.Stack --version 0.1.0-preview.2
#r "nuget: Klyroo.Stack, 0.1.0-preview.2"
#:package Klyroo.Stack@0.1.0-preview.2
#addin nuget:?package=Klyroo.Stack&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Klyroo.Stack&version=0.1.0-preview.2&prerelease
Klyroo.Stack
The hub of the Klyroo ecosystem: one meta-package that registers every Klyroo library, an MCP server that gives coding agents the Klyroo.UI documentation, and dotnet new templates, for .NET developers who build Blazor and .NET MAUI Blazor Hybrid apps.
Klyroo is a family of independent .NET libraries, each in its own repository with its own versions. This repository ties them together: Klyroo.Stack references the Blazor package of all eight libraries and registers them with one call, Klyroo.Stack.Core does the same for their headless engines, and the templates and the MCP server start a project or an AI session with the right packages and documentation. You can use the hub, or ignore it and install one library on its own.
Features
- One registration call:
services.AddKlyrooStack()registers Klyroo.UI, Query, Table, Form, Dashboard, Display, Spreadsheet and Agent, and accepts the option callbacks of Klyroo.UI and Klyroo.Table. - Headless meta-package:
Klyroo.Stack.Corereferences the seven.Coreengines, none of which depends on Razor or ASP.NET Core, and is markedIsAotCompatibleandIsTrimmable. - Component catalog:
KlyrooStackCatalogmaps a component or controller name such asKlyDataList<Order>to the library, the packages, the template short name and the agent skill that own it. - MCP documentation server: the
klyroo-stack-mcptool answers over stdio, offline, with the components, parameters, events, slots, theme slots, example sources and guides of the Klyroo.UI version it was built with. - Project templates:
Klyroo.Templatesadds fourdotnet newtemplates:klyroo-saasandklyroo-admin, two Blazor Web App starters with a shell, a dashboard, a data list, forms and read-only blocks that run in Interactive Server, WebAssembly or Auto,klyroo-headlessandklyroo-maui. - Precompiled stylesheet:
Klyroo.Stackshipsklyroo-stack.css, so an app needs neither Node nor Tailwind to style the components. - Agent skill:
skills/klyroo-stack/SKILL.mdroutes a coding agent to the skill of each library. - Documentation site source:
site/holds the Blazor app that documents the ecosystem. It is not deployed yet and runs locally.
Packages
| Package | Description |
|---|---|
Klyroo.Stack |
Meta-package for Blazor Web and .NET MAUI Blazor Hybrid: the Blazor package of all eight libraries, AddKlyrooStack() and klyroo-stack.css |
Klyroo.Stack.Core |
Headless meta-package: the seven .Core engines and KlyrooStackCatalog, safe for NativeAOT and trimming |
Klyroo.Stack.Mcp |
dotnet tool that runs the MCP documentation server (klyroo-stack-mcp) |
Klyroo.Templates |
dotnet new templates that start a project with the meta-package |
Choosing a package
Install the hub when you want every library with one registration call, or when you start a new app. Install a single library when you only need one concern: Klyroo.Query has no UI dependency, and Klyroo.Agent depends on the .Core packages of Form, Dashboard and Spreadsheet but not on Klyroo.UI.
| You need | Install |
|---|---|
| Every library in a Blazor or MAUI Blazor Hybrid app | Klyroo.Stack |
| Query, form, dashboard, import or display logic in a console app, a worker or a NativeAOT binary | Klyroo.Stack.Core, or one Klyroo.<Library>.Core package |
| One library with its components | The Klyroo.<Library> package, for example Klyroo.Table (it brings Klyroo.UI and Klyroo.Query) |
| EF Core execution of Klyroo.Query | Klyroo.Query.EntityFrameworkCore, which Klyroo.Stack does not include |
| Server-only helpers or the image pipeline of Klyroo.UI | Klyroo.UI.Server and Klyroo.UI.Images, which Klyroo.Stack does not include |
Forms that read [Required], [StringLength], [Range] and the other attributes of your models |
Klyroo.Form.DataAnnotations, which Klyroo.Stack does not include |
The agent bridge as Microsoft.Extensions.AI functions for an IChatClient |
Klyroo.Agent.AI, which Klyroo.Stack does not include |
| Cloud browsers, human handoffs and signed webhooks from a .NET backend | Klyroo.Hotkey (optional server-side library; see the Hotkey integration guide) |
| Your coding agent to know the Klyroo.UI API | Klyroo.Stack.Mcp |
Prerequisites
To use the library in an app:
- The .NET 11 SDK, and an app that targets
net11.0. The packages are prereleases, so everydotnet add packagecommand needs--prerelease. - A Blazor app for
Klyroo.Stack: a Blazor Web App or a .NET MAUI Blazor Hybrid app. Interactive components need an interactive render mode (Interactive Server, WebAssembly or Auto). In a WebAssembly or Auto app, register the services in the server project and in the.Clientproject. - Klyroo.UI set up in the app.
AddKlyrooStack()registers every library, but the layout still needs the Klyroo.UI stylesheets in<head>and<KlyApp>around the body, as described in the Klyroo.UI installation. - A browser with the native popover API, which Klyroo.UI uses: Chrome and Edge 114, Safari 17 or Firefox 125, or later. In a .NET MAUI app, that means iOS or Mac Catalyst 17, or an Android System WebView 114 or later.
- Network access on the first build only if your app self-hosts web fonts (
KlyrooFont), uses icons outside the built-in set, or compiles Tailwind (KlyrooTailwind): the build downloads them once and caches them underobj/klyroo. Node.js is not needed. - For the MCP server: the .NET 11 runtime, to run the
Klyroo.Stack.Mcp.NET tool, and an MCP client (Claude Code, VS Code, Cursor...). - For the project templates:
dotnet new install Klyroo.Templates; theklyroo-mauitemplate also needs the .NET MAUI workload (dotnet workload install maui) and the SDKs of the platforms you target.
To build this repository you need the .NET 11 SDK (a newer SDK works too, see global.json) and clones of klyroo-agent, klyroo-dashboard, klyroo-display, klyroo-form, klyroo-query, klyroo-spreadsheet, klyroo-table and klyroo-ui in the same parent folder: some projects reference them by relative path (../klyroo-agent/...). See Contributing.
Installation
The meta-package
dotnet add package Klyroo.Stack --prerelease
Register the libraries in Program.cs (or MauiProgram.cs), load the stylesheets, and import the namespaces you use:
using Klyroo.Stack;
builder.Services.AddKlyrooStack();
<KlyColorModeScript />
<KlyCultureMeta />
<KlyThemeStyle />
<link rel="stylesheet" href="@Assets["_content/Klyroo.UI/klyroo.preflight.css"]" />
<link rel="stylesheet" href="@Assets["_content/Klyroo.UI/klyroo.css"]" />
<link rel="stylesheet" href="@Assets["_content/Klyroo.Stack/klyroo-stack.css"]" />
The three components go before the stylesheets: the first applies the stored color mode before the first paint, the second writes the culture of the request so a WebAssembly client formats like the prerender, and the third sends the theme variables. In a .NET MAUI Blazor Hybrid app, which has no server to render <head>, use <KlyHead /> in the layout instead.
In an app with a WebAssembly client, call AddKlyrooStack() in the server and in the client Program.cs with the same options. Getting started walks through a complete project.
Individual libraries
Each library has its own registration method and its own repository. AddKlyrooTable() also registers Klyroo.UI and Klyroo.Query, and AddKlyrooForm(), AddKlyrooDashboard(), AddKlyrooDisplay() and AddKlyrooSpreadsheet() also register Klyroo.UI, so you can call only the ones you use:
dotnet add package Klyroo.Table --prerelease
dotnet add package Klyroo.Form --prerelease
using Klyroo.Form;
using Klyroo.Table;
builder.Services.AddKlyrooTable();
builder.Services.AddKlyrooForm();
Each Blazor package ships its own stylesheet next to the Klyroo.UI one when it has components (for example _content/Klyroo.Table/klyroo-table.css). The headless engines install the same way: dotnet add package Klyroo.Stack.Core --prerelease.
The MCP server
dotnet tool install --global Klyroo.Stack.Mcp --prerelease
claude mcp add --transport stdio klyroo -- klyroo-stack-mcp
The server covers the components of Klyroo.UI and the Klyroo.Table components that the documentation site describes. It also carries the documentation pages (getting started, guides, concepts, platforms, FAQ and API reference) of Klyroo.Query, Table, Form, Dashboard, Display, Spreadsheet and Agent, at paths such as /form/docs/guides, which search-documentation and get-documentation-page read. See the package page for the tools, prompts, resources, options and client configuration.
Project templates
dotnet new install Klyroo.Templates::0.1.0-preview.1
| Short name | Creates |
|---|---|
klyroo-saas |
Blazor Web App for a SaaS product: a header with navigation and a color mode button, a dashboard, a filterable accounts list with a form drawer, and a usage page of read-only blocks |
klyroo-admin |
Blazor Web App for a back office: a sidebar shell, a dashboard, a customer list with selection and bulk actions, a customer page, and a spreadsheet import |
klyroo-headless |
Console app with PublishAot that uses Klyroo.Stack.Core only |
klyroo-maui |
.NET MAUI Blazor Hybrid app for Android, iOS, Mac Catalyst and Windows, see Platforms |
dotnet new klyroo-saas -n MyShop
cd MyShop
dotnet run
Both web templates take --interactivity Server|WebAssembly|Auto (Server by default). Server is one project; WebAssembly and Auto add a .Client project that holds the pages, the layout and the sample data, and a solution file. The pages show a product name written from the project name (MyShop becomes "My Shop"); --product-name "Acme Cloud" sets another. The app loads the three precompiled stylesheets, so it needs neither Node nor a Tailwind build, and its own layout classes live in wwwroot/app.css: see Style a generated app for what that means for the classes you write. Start a project from a template describes each page.
The templates reference the Klyroo packages at the version of the Klyroo.Templates package that you installed: the version is written into each template when the package is built, so a new release changes it in one place. The CI job templates-from-local-feed packs the nine repositories into a local feed, installs the templates from it, generates the templates, builds them against that feed alone, runs the web apps and publishes the headless one with NativeAOT; Verify the templates against local packages shows the two commands that reproduce it.
The klyroo-saas and klyroo-admin templates were generated in all three interactivity modes, built against locally packed packages, run, and loaded in headless Chrome without console errors.
Run the documentation site locally
The site in site/ is a Blazor Web App (Interactive Server and WebAssembly). It references the sibling repositories by relative path, so clone klyroo-ui, klyroo-query, klyroo-table, klyroo-form, klyroo-dashboard, klyroo-display, klyroo-spreadsheet and klyroo-agent next to this repository, then:
dotnet run --project site/Klyroo.Stack.Site
The site also hosts live demos of templates as child processes. Set Klyroo__Templates__Enabled=false to start it without them.
The playground
playground/Klyroo.Playground is a standalone Blazor WebAssembly app with one interactive page per library (/ui/, /query/, /table/, /form/, /dashboard/, /display/, /spreadsheet/, /agent/) and an index. The result is drawn by the real components and engines running in the browser on sample data, the knobs are real parameters of the library, the code beside the result follows the knobs and can be copied, and the knobs and the state of the lists are kept in the address, so a link restores a view. It needs no server. Publish it for GitHub Pages with:
build/publish-playground.sh <out-dir> [base-path] # base-path defaults to /klyroo-stack/playground/
python3 -m http.server 8000 --directory <parent-of-out-dir>
The script writes the app, a 404.html that restores the route on GitHub Pages (a deep link such as /klyroo-stack/playground/table/?q=ada lands on it, since Pages has no server routes) and .nojekyll. The documentation sites link to it from their header and from the home page of each library (playground in docs-site/Klyroo.Docs.Site/libraries.yml).
Quick start
Headless first. Klyroo.Stack.Core brings the query engine of Klyroo.Query, so you can filter, sort and page data without any UI:
using Klyroo.Query;
using Klyroo.Stack;
var module = KlyrooStackCatalog.ResolveComponentModule("KlyDataList<Product>")!;
Console.WriteLine($"{module.Name}: {module.CorePackage} + {module.UiPackage}");
var schema = DataListSchema.For<Product>(s => s
.RowKey(p => p.Id)
.Search(p => p.Name)
.Field(p => p.Name, f => f.Key("name").Sortable())
.Field(p => p.Price, f => f.Key("price").Sortable()));
var request = new DataListRequest(
DataListPaging.Offset.ForPage(1, 10),
[new DataListSort("price", Descending: true)],
DataListFilterGroup.Empty);
var result = schema.ExecuteInMemory(
[new Product(1, "Keyboard", 120m), new Product(2, "Monitor", 350m), new Product(3, "Mouse", 40m)],
request);
Console.WriteLine($"{result.TotalCount} products, most expensive first: {result.Items[0].Name}");
sealed record Product(int Id, string Name, decimal Price);
This prints Klyroo.Table: Klyroo.Table.Core + Klyroo.Table and 3 products, most expensive first: Monitor.
Then Blazor. With AddKlyrooStack() registered and the stylesheets loaded, wrap your router in <KlyApp> and use the components:
@page "/"
@inject FormService Forms
<KlyDashboardStat Label="Active accounts" Value="128" Compare="112" />
<KlyButton Label="New account" Color="KlyColor.Primary" OnClick="OpenFormAsync" />
@code {
private sealed class Account
{
public string Name { get; set; } = "";
}
private static readonly FormSchema<Account> NewAccount = FormSchema.For<Account>(s =>
{
s.FormKey = "new-account";
s.Title = "New account";
s.Field(a => a.Name, f => f.Label("Company name").Required());
});
private Task OpenFormAsync() => Forms.CreateFormAsync(NewAccount, mode: FormShellMode.Drawer);
}
The page needs <KlyFormProvider /> inside <KlyApp> to show the drawer, as in the templates.
Documentation
| Getting started | Step-by-step first integration |
| Guides | Task-oriented recipes |
| Concepts | How the library works |
| Platforms | Render modes, .NET MAUI, NativeAOT |
| API reference | Every public type and member |
| FAQ | Troubleshooting and limitations |
Compatibility
- .NET 11 SDK.
global.jsonpins SDK 10.0.100 and rolls forward to a newer major. - Blazor render modes: Klyroo.UI documents Static SSR, Interactive Server, WebAssembly and Auto. The hub site runs Interactive Server and WebAssembly.
- .NET MAUI Blazor Hybrid:
Klyroo.Stackdeclaresbrowser,ios,android,maccatalystandwindowsas supported platforms. According to the Klyroo.UI documentation only Android has been run on an emulator so far. - NativeAOT and trimming:
Klyroo.Stack.CoreisIsAotCompatibleandIsTrimmable.Klyroo.StackisIsTrimmablebut not declared AOT compatible. - The tools and templates need the .NET 11 runtime or newer.
Klyroo ecosystem
Klyroo is a family of independent .NET libraries that compose. Each one has its own repository, versions and releases.
| Library | Description |
|---|---|
| Klyroo.UI | Accessible Blazor components for the web and .NET MAUI Blazor Hybrid, styled with Tailwind CSS v4 |
| Klyroo.Query | Typed query model, URL state sync, and IQueryable / EF Core execution |
| Klyroo.Table | Data lists with table and card-grid layouts, filters, selection and actions |
| Klyroo.Form | Forms bound to a C# model (or described as data), validation and wizards |
| Klyroo.Dashboard | Dashboard controller, filters and Blazor blocks: stats, gauges, charts, tables and feeds |
| Klyroo.Display | Code highlighting, secret and file list components, media player controls and file preview |
| Klyroo.Spreadsheet | Import wizard for CSV, TSV and pasted data, with column and value mapping |
| Klyroo.Agent | Bridge that lets AI agents read and act on Klyroo forms, dashboards and imports |
| Klyroo.Hotkey | Server-side .NET client for Hotkey cloud browsers, human handoffs and signed webhooks |
| Klyroo.Stack | Meta-package, MCP documentation server and dotnet new templates |
Contributing
Contributions are welcome. Read CONTRIBUTING.md before opening a pull request, and follow the code of conduct. Report security issues privately as described in SECURITY.md.
License
| 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. net11.0 is compatible. |
-
net10.0
- Klyroo.Agent (= 0.1.0-preview.2)
- Klyroo.Dashboard (= 0.1.0-preview.2)
- Klyroo.Display (= 0.1.0-preview.2)
- Klyroo.Form (= 0.1.0-preview.2)
- Klyroo.Query (= 0.1.0-preview.2)
- Klyroo.Spreadsheet (= 0.1.0-preview.2)
- Klyroo.Stack.Core (= 0.1.0-preview.2)
- Klyroo.Table (= 0.1.0-preview.2)
- Klyroo.UI (= 0.1.0-preview.2)
-
net11.0
- Klyroo.Agent (= 0.1.0-preview.2)
- Klyroo.Dashboard (= 0.1.0-preview.2)
- Klyroo.Display (= 0.1.0-preview.2)
- Klyroo.Form (= 0.1.0-preview.2)
- Klyroo.Query (= 0.1.0-preview.2)
- Klyroo.Spreadsheet (= 0.1.0-preview.2)
- Klyroo.Stack.Core (= 0.1.0-preview.2)
- Klyroo.Table (= 0.1.0-preview.2)
- Klyroo.UI (= 0.1.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.2 | 34 | 11/29/2026 |
| 0.1.0-preview.1 | 39 | 11/29/2026 |