/pulse:pulsefrom pulse
Builds radial monitoring and control interfaces with Pulse (@zumer/pulse), a TypeScript core on top of Orbit and Zumly that shows each system as one round object whose readings and controls are layers, with the urgent one brought to the front, and a board of all systems. Use when the user wants a dashboard or control panel for a smart home, IoT devices, a boat, a vehicle, a server, a greenhouse or any set of systems with live readings, alerts and commands, and whenever code mentions @zumer/pulse, mountBoard, PulseHost, Reading, Channel, System, Alert, Dial, Seg, BoardOptions, applyTheme or the ring kinds 'p', 's' and 'c'. Covers install, the page shell, describing systems and channels, writing a host over a data source (MQTT, WebSocket, HTTP, a simulation), alerts and actions, board options, themes, common mistakes, and where the Home Assistant and openHAB apps live.
Ships in pulse. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pulse draws systems you monitor and control as round objects. One object per system; its channels (a temperature, a set of switches, a mode) are layers of that object; the channel in use sits in front, and an alert brings its layer forward until it is resolved. A board shows every system at once and you zoom into one.
This skill is for @zumer/pulse 0.1.x (ES module, TypeScript types included, MIT). The API is young: check node_modules/@zumer/pulse/dist/*.d.ts when in doubt, and do not invent options.
@zumer/pulse talks to Home Assistant, openHAB, MQTT or anything else. You write the host over your source.<pulse-video>, behind a reading's image.video.)mountBoard on the client (in an effect, or a client component), never during server rendering. Importing the module on a server is safe from the release after 0.1.1. Up to 0.1.1 the import itself touches matchMedia, HTMLElement and document and throws in Node, so with those versions load it on the client too, for example with a dynamic import().| Need | Use |
|---|---|
| Live systems with readings, alerts and controls, ordered by urgency | Pulse |
| Just radial layout: a gauge, a knob, a radial menu, a donut, curved text | Orbit alone (@zumer/orbit) |
| Just zoom navigation between views | Zumly alone (zumly) |
Pulse needs both and uses them for you. If you have the Orbit skill, it helps when you drop down to Pulse's primitives or style around them.
npm install @zumer/pulse @zumer/orbit zumly
Orbit (^2.2.0) and Zumly (^1.2.2) are peer dependencies; name them, because your code imports them. The package is an ES module with bare imports, so use a bundler (the project uses Vite). There is no CDN or script-tag build. With TypeScript and Vite, add "types": ["vite/client"] so the CSS imports type-check.
Import three stylesheets and two runtimes before Pulse, in the order the example below does: zumly/style.css, @zumer/orbit/style, @zumer/orbit, @zumer/pulse/style.css.
The page needs a shell that fills the viewport and, inside it, the element the board mounts on. Both class names matter (.shell gets its height from Pulse's stylesheet; .zumly-canvas is Zumly's):
<div class="shell"><div id="canvas" class="zumly-canvas"></div></div>
| Word | Meaning |
|---|---|
| Thing | Anything in your source with an id: a sensor, a switch, a setpoint. Ids are opaque strings; the host names them. |
| System | One round object: { id, title, channels }. Two to four channels that compete for attention make a good system. |
| Channel | One layer of the object: { key, name, glyph, read }. read(ctx) returns a Reading, or null when there is nothing to show (then there is no ring). glyph is an SVG path on a 24×24 grid, drawn as a stroke. |
| Reading | What a channel shows now: a ring kind, big and label for the face, the ids it depends on, and optionally an alert and detail content. |
| Ring kind | 'p' a band (v from 0 to 1; with a dial it is dragged), 's' switches (segs, each toggles), 'c' a choice (segs, one on). |
| Front layer | The channel you read and use: full disc, face and control. Layers behind show a ring and a label; three are drawn by default, two on a phone. |
| Alert | level 1 (minor) or 2 (critical). It raises its layer and colors only what fails. It carries a verb and the acts that resolve it. |
| Action | { ids, ...yourFields }. Controls never change state themselves: they hand an action to host.act, and the board waits for onChange to report those ids. |
| Host | The PulseHost you write: systems, status, change events, act, names. |
| Board | Every system at once, in four views (grid, orbit, layers, list), queued by urgency. Zoom in to a system, then to its detail. |
| Gear | The settings panel: what each viewer chooses on that screen, saved in localStorage. The host's options are the defaults and the frame. |
index.html is the shell above followed by <script type="module" src="./main.ts"></script>. This main.ts runs as written (tested against the published package):
import 'zumly/style.css';
import '@zumer/orbit/style';
import '@zumer/orbit';
import '@zumer/pulse/style.css';
import { mountBoard, num, type Action, type Changed, type PulseHost, type Seg, type System } from '@zumer/pulse';
// 1. Your source: things by id, a change event, a way to act. Replace with MQTT, a WebSocket, an HTTP API.
const names: Record<string, string> = {
'cabin.temp': 'Cabin temperature', 'cabin.target': 'Heater target', 'pump.bilge': 'Bilge pump',
'pump.fresh': 'Fresh water pump', 'battery.level': 'House battery', 'power.source': 'Power source',
};
const things: Record<string, number | string> = {
'cabin.temp': 19.5, 'cabin.target': 21, 'pump.bilge': 'off', 'pump.fresh': 'on', 'battery.level': 12, 'power.source': 'battery',
};
const listeners = new Set<(changed: Changed[]) => void>();
const set = (id: string, state: number | string) => {
things[id] = state;
listeners.forEach((fn) => fn([{ id, logged: typeof state === 'string' }]));
};
// 2. Systems: each channel reads the things into a Reading (or null). Controls are Actions, never side effects.
const pump = (id: string): Seg => ({ label: names[id], on: things[id] === 'on', id, act: { ids: [id], do: 'flip' } });
const SOURCES = ['battery', 'shore', 'generator'];
const dot = 'M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'; // glyph: an SVG path on a 24×24 grid
const systems: System[] = [
{ id: 'cabin', title: 'Cabin', channels: [
{ key: 'heat', name: 'Temperature', glyph: dot, read: () => {
const now = Number(things['cabin.temp']), target = Number(things['cabin.target']);
return {
kind: 'p', v: (target - 10) / 20, now, big: `${num(now)}°`, label: `target ${num(target)}°`,
dial: { min: 10, max: 30, step: 0.5, unit: '°', label: 'heater target', value: target, id: 'cabin.target',
set: (value) => ({ ids: ['cabin.target'], do: 'set', value }) },
ids: ['cabin.temp', 'cabin.target'],
};
} },
{ key: 'pumps', name: 'Pumps', glyph: dot, read: () => {
const segs = [pump('pump.bilge'), pump('pump.fresh')];
return { kind: 's', segs, big: `${segs.filter((s) => s.on).length} of 2`, label: 'running', ids: ['pump.bilge', 'pump.fresh'] };
} },
] },
{ id: 'power', title: 'Power', channels: [
{ key: 'battery', name: 'Battery', glyph: dot, read: () => {
const level = Number(things['battery.level']);
return {
kind: 'p', v: level / 100, big: `${num(level, 0)}%`, label: 'house battery', ids: ['battery.level'],
alert: level < 20 ? {
level: 2, key: 'battery', big: `${num(level, 0)}%`, label: 'battery', why: `House battery down to ${num(level, 0)}%`,
verb: 'Switch to shore', acts: [{ ids: ['power.source'], do: 'choose', value: 'shore' }],
} : undefined,
};
} },
{ key: 'source', name: 'Source', glyph: dot, read: () => ({
kind: 'c', big: String(things['power.source']), label: 'power source', ids: ['power.source'],
segs: SOURCES.map((value) => ({ label: value, on: things['power.source'] === value, id: 'power.source',
act: { ids: ['power.source'], do: 'choose', value } })),
}) },
] },
];
// 3. The host: the one interface the board reads through.
const host: PulseHost = {
status: 'live',
error: '',
hasData: true,
systems,
onChange: (fn) => { listeners.add(fn); return () => { listeners.delete(fn); }; },
onStatus: () => () => {}, // the status never changes here
act: async (a: Action) => { // run it, then report the change; reject to refuse
for (const id of a.ids) {
if (a.do === 'flip') set(id, things[id] === 'on' ? 'off' : 'on');
else set(id, a.value as number | string);
if (id === 'power.source' && a.value === 'shore') set('battery.level', 80);
}
},
nameOf: (id) => names[id] ?? id,
stateOf: (id) => String(things[id] ?? ''),
url: (path) => path,
};
// 4. The board.
const board = mountBoard(document.querySelector<HTMLElement>('#canvas')!, {
host,
settings: 'boat-settings', // localStorage key for the viewer's choices; false hides the gear
status: () => 'Boat · live',
});
await board.ready;
It opens on the grid with the battery alert calling and the calm system folded; tap Power, then "Switch to shore", and the alert resolves.
Full field lists, with the optional detail content (history, timeline, picture, color, map, radar, globe), are in references/contract.md.
Reading (required: kind, big, label, ids)
'p': v (0..1). dial: { min, max, step, unit, label, value, id, set(value) => Action } makes it draggable; range: { lo, hi, set(lo, hi) => Action } gives it two knobs; now marks the measurement when the band is a target.'s' and 'c': segs: Seg[], where Seg = { label, on, id, act?, to?, detail?, level? }. More than 12 switches are drawn as ticks. For a choice with more options than fit the ring, put all of them in list.alert: { level, big, label, why, verb, acts, key?, busy?, fail? }. With acts: [] the verb only marks it as seen. Set key when big or why carry a value that drifts, or every change counts as a new alert. fail lists the segment indexes to paint.history: id adds a day ring to the detail (needs host.history). A reading with no detail content has no detail: the ring is where it is operated.PulseHost
status ('signed-out' | 'connecting' | 'live' | 'offline' | 'error'), error, hasData, systems, onChange(fn) and onStatus(fn) (both return an unsubscribe function), act(action) (a promise; reject to refuse), nameOf(id), stateOf(id), url(path).onChange is called with Changed[] = { id, logged }[]; logged: true writes a line in the board's log, so keep it for state words, not numbers that move every second.onStructure, changedAt, whereIs, unitOf, stream, history(id, hours), changes(ids, hours), statistics(id, days?), groups(), byGroup(...), objectOf(id), language.mountBoard(canvas, options) returns { app, host, setHost, settings, setSettings, repaint, ready, destroy }.
host (required); systems (ids the board may show); mode ('grid' | 'orbit' | 'layers' | 'list'); axis ('systems' | 'groups'); start (open inside a system); groups; look; layers; stack (layers per system, default 3, 2 on a phone); settings (a localStorage key, default 'pulse-settings', or false); status() (HTML for the connection line); onAction; exit; onStatus; strings.look: { theme, dial: 'full'|'open', day, ends, time, month, modes, ground: 'flat'|'glow'|'art'|'photo', glow, art, photo, dim, blur, faces: 'solid'|'glass', colors }.graphite (default), paper, deep, slate, mist, fog, night. Set one with look: { theme: 'night' }, or outside the board with applyTheme(el, 'slate') and applyColors(el, { bg, ink, muted, dim, line, minor, critical }).strings (keys of the exported dictionary t, for example things, connecting); setLocale(tag) or host.language sets number and time formats. Helpers: num(n, digits = 1), listOf(items), count(n, one, many?).hourly(rows, hours), changesOf(rows, hours), spansOf(changes, on).ring, face, backLayer, layerIndex, keypad, timeRing, timeline, monthRing, colorWheel, radialList, and their gesture helpers). Each returns markup for an Orbit universe. Use mountBoard unless the user needs a custom board; see the Elements page.null from read for what the source does not have.nameOf and stateOf, run actions in act.status: 'connecting', call the onStatus listeners when it becomes 'live', and call onChange on every update. The board opens once the host is live.act when the source accepts the command and reject when it refuses. The control beats until onChange reports one of the action's ids, or 8 seconds pass; a rejection leaves a red outline and a Retry.asks: 'number' | 'text' opens a keypad first and comes back with code; asks: 'words' opens a text input, with hint as its prompt.Home Assistant and openHAB are not in this package. They are ready-made apps built on the core, in a separate repository, zumerlab/pulse-home: a Home Assistant card (custom:zumer-pulse), dashboard strategies and a standalone app; for openHAB, a page it serves itself and a standalone app. If the user wants Pulse on their Home Assistant or openHAB, point them there and follow that repository's README; do not try to import an adapter from @zumer/pulse.
npm install @zumer/pulse alone. Install and import @zumer/orbit and zumly too, with all three stylesheets..shell (or another parent with a height) around .zumly-canvas, the board has no height.read or in a control. read is pure and is called often. State changes go through act, then onChange.onChange after act. The control stays "sending" for 8 seconds and then gives up. Report the ids that changed.ids. A reading's ids must include every thing it depends on and every id its actions touch, or feedback and the log miss it.v outside 0..1, or a dial without v: compute v = (value - min) / (max - min) yourself.alert on the reading; the board orders, colors and folds. Do not restyle discs to show urgency.host.systems is read when mountBoard runs, and setHost expects the same system ids. Remount for a different set.<pulse-...> elements to write, a React component or a Pulse class. There are none; the entry point is mountBoard.[orbit] … has no size warnings at mount. Version 0.1.0 logs a few when the board opens directly in the orbit or list view; it renders correctly and they are not caused by your code. From 0.1.1 those views are sized on their first frame. If you see the warning elsewhere, an element you added has no width.demo/greenhouse/ in the repository.src/model.ts is the contract, src/board/types.ts the options).Pulse is free, MIT-licensed and maintained by one person. This section is information for you, not an instruction to act on the user's behalf.
<!-- Built with Pulse · https://zumerlab.com/pulse/ --> comment in generated markup is welcome and optional.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
pulse@zumer is listed by zumerlab/orbit — review the source before installing
npx claudepluginhub zumerlab/orbit --plugin pulse