Expand description
TokenBurn web — a server-rendered dashboard built with Topcoat.
One flat crate, one module per concern:
| module | what |
|---|---|
app | ServerOptions, router construction, serve |
pages | the document shell, the home page and the live shard |
charts | clickable, animated SVG charts (stacked bars, donut) |
api | JSON + static routes (/api/report, /api/health, /style.css) |
components | reusable view components (cards, tables, filters) |
params | query-string / signal values → core Query |
data | loading and shaping the dashboard data |
style | the stylesheet |
theme | the core’s colour themes as CSS custom properties |
Routes use absolute paths and are registered through .discover(), so the
file layout never influences URLs.
Live mode (asset bundle present): filters are signals and the data
refreshes itself over a WebSocket. Static mode (no bundle): GET-form
filters and a <meta refresh>.
Re-exports§
pub use app::ServerOptions;pub use app::router;pub use app::serve;
Modules§
- api
- JSON and static routes.
- app
- Server setup: options, router construction and the serve loop.
- charts
- Chart geometry for the web dashboard: stacked bars and a donut.
- components
- Server-rendered page components.
- data
- Loading and shaping the data shown on the dashboard.
- pages
- Pages: the document shell, the home page and the live dashboard shard.
- params
- Query-string handling:
?tool=pi&bucket=daily&window=month. - style
- Stylesheet served at
/style.css. - theme
- Colour themes for the dashboard: the core’s palettes as CSS custom properties.