Skip to content

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
The Klyroo.Dashboard line and its 4 stations
Klyroo.Dashboard
  1. Stages
  2. Block states
  3. Drill-down
  4. Blocks
KlyrooStack Klyroo.Stack, the interchange of the network
Program.cs 16 lines
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=EMEA

A filter is a typed control the controller owns. The loader reads its value through a closure, and Toggle changes the selection.

How RefreshAsync loads stage by stage, sample values
  1. Essential loaded first, in parallel revenueReady21.2K
  2. Background once the essential ones settle regionsReadyEMEA, AMER
The blocks of a page sample data, one block per resource
RegionEMEA the page draws a pill for each filter
Revenue 21.2K
Regions
  • EMEA
  • AMER
The address it writes the filter, in the URL
/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 AutoRefresh reloads 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
DashboardFilterControl supports 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.
Filters in the URL
DashboardController.ToQuery, ApplyQuery and MergeQuery are pure, deterministic and AOT-safe, and KlyDashboardPage.SyncUrl keeps the filters in the query string, in static SSR too, without filling the history.
Drill-down
OnSelect on bars and charts and OnRowClick on 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 KlyChart of 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.ResolveComparisonRange gives the previous period or the same dates one year earlier.
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.ExportCsv writes a UTF-8 byte order mark, picks the delimiter from the culture and neutralizes spreadsheet formulas.
Prerender without a second load
Resources created with a JsonTypeInfo hand the data the prerender loaded to the interactive render through DashboardPersistence, without reflection.
Headless core
Klyroo.Dashboard.Core marks itself trimmable and AOT compatible.

Packages

  • Controller, resources, filters, views and formatting. No UI dependency.
  • Blazor components for Blazor Web Apps and .NET MAUI Blazor Hybrid. Depends on Klyroo.Dashboard.Core and 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 new templates