Heartbeat strip
v0.64.0, changelogBetaA device's check-ins over a window, one cell per stretch: grey where it reported, an outline where it was silent, colour only for a reported problem.
Check-ins · lm-hsinchu-01
1,325 of 1,440 check-ins, 1 gap (1 hr 30 min silent)
- 1Nov 27, 2026, 00:40Restarted
- 2Nov 27, 2026, 00:48Updated to 2.4.1
- 3Nov 27, 2026, 13:30Licence renewed
- Checked in
- Some missed
- No check-ins
- Degraded
Day
Install
npx shadcn add @syncrobotic/heartbeat-strip Also installs: @syncrobotic/cn, @syncrobotic/format-number, @syncrobotic/relative-time, @syncrobotic/segmented-control, @syncrobotic/table, @syncrobotic/tooltip
Overview
When to use
- On a device's detail page, the last hour, day or week of check-ins.
- Reading a gap against a restart or an update on the same axis.
Use something else
- Uptime per day for several machines: the status-tracker-uptime pattern.
- A measured value over time (cameras, load): Chart.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Hour
Week
Table
Zh tw
Usage rules
- Draw the buckets the server aggregated (beats, expected, a problem); never bucket raw check-ins in the browser.
- Grey for stretches that reported, half height for ones that missed some, a dashed outline for silence. Colour only where the device reported a problem: warning, or danger for a failure.
- One window at a time from a SegmentedControl (1 h, 24 h, 7 d), at a bucket size that keeps it under about 60 cells.
- Events (a restart, an update) are numbered marks on the same time axis, listed under it, so "it went quiet after the update" can be read off.
- Counts of a device's own (cameras, users) are series in a Chart under it, never a hue on this strip.
Changelog
- 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
- 0.56.02026-11-27First release: buckets from the server (beats, expected, a problem), gaps as dashed outlines and in words, partial stretches half height, numbered events on the time axis, a window switch (1 h, 24 h, 7 d), a legend and a table view.