A real-time physiological monitoring interface in the browser
A browser-based instrument interface rendering live breathing, skin-conductance and pulse traces on a rolling buffer, with interactive markers and operator controls.
- Client
- A medical training client
- Industry
- Healthcare & Training
- Region
- International
- Engagement
- Project-based
- Duration
- Delivered
- Team
- 1 engineer
- Next.js
- React
- TypeScript
- Canvas
- Zustand
- Framer Motion
The problem
Physiological monitoring interfaces are normally tied to hardware, which makes them awkward to use for training, demonstration or interface development.
The requirement was an instrument that behaves like the real thing in a browser — continuous, responsive, and convincing to someone who has used the physical equivalent.
The constraint that made it interesting
Three signals redraw continuously against a moving time window. Built as ordinary interface updates this stutters, and a monitoring trace that stutters is immediately wrong to anyone familiar with one.
It has to hold a steady frame rate while staying interactive.
What we built
Canvas rendering on a rolling buffer
Three channels drawn to canvas against a continuously moving sixty-second window rather than as interface nodes, so the traces stay smooth as they scroll.
Interactive markers
Column markers can be placed and moved against the live trace — the interaction an operator actually performs on this class of instrument.
Operator signal controls
Hold-to-distort applies live distortion to a running signal, so a scenario can be demonstrated on demand rather than waited for.
Predictable state
Signal generation, buffer and interaction state kept in one store, so what is on screen is always derived from one source rather than several components disagreeing.
Outcomes
| Measure | Before | After |
|---|---|---|
| Signal channels rendered live | — | 3 |
| Rolling time window | — | 60 seconds |
| Hardware required | Dedicated instrument | A browser |
What we would do differently
The first implementation updated component state on every animation frame — the obvious approach and the wrong one, since it re-rendered the tree sixty times a second.
Moving the signal path onto the canvas directly, keeping the component layer for the interface around it, is what made it hold frame rate.
ExpertiseSoftware & Product EngineeringUI/UX & Product Design
Let's Build Something Valuable
Have a project, technology challenge or engineering requirement? Let’s talk about how Hegtavic can help.
