Inspiration
CPR quality depends on rate, depth, and not stopping. A phone costs a hand and pulls your eyes away; a laptop is not there. Glasses can put the rhythm on the person and leave both hands free.
What it does
Steady is a Snap SPECS Lens for rehearsing CPR compressions on a training manikin. It anchors a 12 cm cyan ring flat on the manikin's sternum and pulses it at 110 BPM — the rate the guidelines ask for — with a compression counter stepping 1→30 at the edge of the ring and a five-segment arc around it that fills one segment per completed cycle, so the whole two-minute set is legible without looking away from the chest. At 30 compressions the counter gives way to a 2 breaths cue with a 10 s countdown, then the rhythm resumes by itself; after five cycles a summary reports cycles, reps, elapsed time and average rate. There is nothing to press: the Lens starts on its own after a 6 s intro card, so neither hand ever leaves the chest. That is the whole argument for glasses over a phone — a phone costs you a hand and pulls your eyes off the work.
How we built it
Planned with the official Devpost Learn skill pack (plan-lens); the brief in the repo fixes the spatial layout in centimetres, the state machine (IDLE → 30 compressions → 10 s breath window × 5 → summary), the world-space HUD and the beat (driven by a 110 BPM metronome WAV). Everything is TypeScript in Lens Studio 5.25 for SPECS, authored through the Lens Studio MCP and verified in Interactive Preview (SPECS 27); the animation in the video is the Lens running, not a mock-up. Three things had to be fixed on the way: the station's 45° tilt was re-placed so the head, the pulse ring, the counter and the floor label all fit the frame; the cycle arc was rebuilt from cylinder "dots" after a hand-built mesh ribbon came out back-face culled and invisible; and the controller now falls back to the wall clock when the preview's audio mixer stalls, so the cadence stays at 110 BPM.
Challenges
Keeping the beat independent of frame rate and of the preview host's audio clock; making the numbers readable at arm's length on a see-through display; deciding what to remove — the breath window deliberately hides the counter so the eyes go back to the chest.
What we learned
The hard part of an AR CPR coach is not the metronome, it is the attention budget. Every element had to earn its place in peripheral vision, and the ones that did not (buttons, score screens, a pause gesture) were cut.
What's next
Depth and rate from the Specs sensors (the manikin is a labelled stand-in today — PRACTICE MANIKIN is written on the mat in world space), a real-manikin calibration step, and an instructor mode with session history. Everything stays on device; the Lens makes no network calls.
Built With
- augmented-reality
- cpr
- lens-studio
- snap-specs
- training
- typescript