Expand description
cksk’s own library half: status feeds plus the boards that render them – all kept
entirely display-server-free (no Wayland, no PAM), so a future web build can reuse them
just as easily as src/bin/cksk.rs does. That binary is the only thing in this crate
that turns a rendered board frame into the kiosk-socket wire protocol.
Boards are named for what they show, not for where they are displayed: the show rotates
several of them (show), and each one owns its render behind the same (state, size)
shape over shared chrome.
Re-exports§
pub use chrome::Fonts;pub use chrome::Header;pub use gatus::GatusSource;pub use model::Endpoint;pub use show::Show;pub use show::BOARDS;pub use show::DWELL_SECS;
Modules§
- chrome
- Shared kiosk chrome: palette, CPU primitives, fonts, and the persistent header.
Every board renders through this so
corbet status+ clock read identically on all screens. Puretiny-skia/fontdue: no GPU work, no Wayland, no display server. - gatus
- The Gatus feed: live-polls the statuses API into shared state.
Rendering lives in
groups(service boards) andoverview; this module only ever holds data, so every board reads the same snapshot. - groups
- Group boards: the service lists at double type size. One board shows a fixed set of groups; rows are big enough to read across a room, so a large estate spans several boards instead of one dense screen.
- model
- overview
- Overview board: the whole estate at a glance in giant type. One big verdict, then one row per group. Detail lives on the group boards.
- show
- The kiosk show: ordered boards, one on screen for DWELL_SECS each. The header (corbet status + clock) is identical everywhere; only the body rotates.
- system
- System board: host resources in giant type, read locally without GPU work.
Every source is a plain file read (
/proc,/sys) plus onedfcall per poll for disk usage: no perf counters, nothing that wakes the GPU.rocm-smi/amdgpu_topare deliberately NOT used – they can pull the card out of its low-power state.