Dashboards thatload in stages.
Each query is a resource with its own state. The important ones load first, and every block shows its own loading, error and empty state, so one failing query leaves the rest of the page intact.
Install
dotnet add package Klyroo.Dashboard --prerelease
Copy the command
Klyroo.Dashboard
Stages A resource is Essential, Background or Deferred, and a new load cancels the one it supersedes.Block states Every block shows a skeleton while loading, the error with a retry button, and an empty state, so one failing query leaves the rest of the page intact.Drill-down OnSelect on bars and charts and OnRowClick on tables and lists hand the pick to your code, with real buttons the keyboard reaches.Blocks Stat, stats, gauge, bars, chart, list, table, details, feed and alerts, wrapped by a page, a grid and a card.
Program.cs
var controller = new DashboardController("sales");
var region = controller.AddFilter(new DashboardFilterControl(
"region", "Region",
items: [new("EMEA", "EMEA"), new("AMER", "Americas")]));
var revenue = controller.RegisterResource(
new DashboardResource<double>("revenue",
_ => LoadRevenueAsync(region.Value)));
var regions = controller.RegisterResource(
new DashboardResource<string[]>(
"regions", LoadRegionsAsync,
DashboardQueryStage.Background));
region.Toggle("EMEA");
await controller.RefreshAsync();
var query = controller.ToQuery(); // region=EMEAA filter is a typed control the controller owns. The loader reads its value through a closure, and Toggle changes the selection.
- Essential
loaded first, in parallel
revenueReady21.2K - Background
once the essential ones settle
regionsReadyEMEA, AMER
RegionEMEA
the page draws a pill for each filter
Revenue
21.2K
Regions
- EMEA
- AMER
/sales?region=EMEA
region: one key=value pair per selected value only filters that differ from their defaults are written
Everything it does
- Staged loading
- A resource is Essential (loaded first, in parallel), Background (loaded once the essential ones settle) or Deferred (loaded only when something activates it). A new load cancels the one it supersedes, and
AutoRefreshreloads on a timer. - Per-block states
- Every block shows a skeleton while loading, the error message with a retry button when its query fails, and an empty state, so one failing query leaves the rest of the page intact.
- Filters and views
Dashboardsupports single and multiple selection with a maximum, presets, default values and reset detection, drawn as option lists, text, number and date inputs or your own template, and views appear as tabs with optional badges.Filter Control - Filters in the URL
Dashboard,Controller. ToQuery ApplyQueryandMergeQueryare pure, deterministic and AOT-safe, andKlyDashboardkeeps the filters in the query string, in static SSR too, without filling the history.Page. SyncUrl - Drill-down
OnSelecton bars and charts andOnRowClickon tables and lists hand the pick to your code: a click or Enter on a bar, point or slice of a chart, and real buttons the keyboard reaches in the other blocks.- Ten blocks on a grid of 12 columns by default
- Stat, stats, gauge (ring or bar), bars (with a funnel variant), chart (bars, lines, areas or donut, drawn by the
KlyChartof Klyroo.UI), list, table, details, feed and alerts, wrapped by a page, a grid and a card. - Comparisons
- A stat computes its delta from a previous value, and
DashboardFormat.gives the previous period or the same dates one year earlier.Resolve Comparison Range - Number formatting
- Nine presets (compact, percent, ratio, delta, points and more), relative times and currency, with an explicit culture.
- CSV export
- Every block with a menu downloads what it shows, with raw numbers;
DashboardFormat.writes a UTF-8 byte order mark, picks the delimiter from the culture and neutralizes spreadsheet formulas.ExportCsv - Prerender without a second load
- Resources created with a
JsonTypeInfohand the data the prerender loaded to the interactive render throughDashboard, without reflection.Persistence - Headless core
Klyroo.marks itself trimmable and AOT compatible.Dashboard. Core
Packages
-
Controller, resources, filters, views and formatting. No UI dependency.
Klyroo.BlazorDashboard Blazor components for Blazor Web Apps and .NET MAUI Blazor Hybrid. Depends onKlyroo.andDashboard. Core Klyroo..UI
Install it, then open the first page.
Change here for the other lines
- 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 Schema-driven forms, 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 newtemplates