Summary

BackUp: Posture to Die For is a local-first browser wellness coach. Using your webcam, it detects sustained slouching, delivers spoken posture cues, and chimes when you recover, alongside scheduled eye-break and movement reminders and guided breathing. All pose estimation runs locally in your browser; video frames never leave your machine. Built for Kiroween's Frankenstein track (wellness tool, not a medical device).

Why Frankenstein

  • Stitched together from mismatched parts: MediaPipe Pose landmarks, pre-recorded Kokoro TTS audio, chimes, independent break intervals, and a background Web Worker clock.
  • The stitching is the engineering. A JavaScript state machine tracks posture changes, filters brief slouches, and controls when to chime, speak, or reward a recovery, and a priority scheduler plays one prompt at a time.
  • A fallback graft when hardware is missing: if WebGL is unavailable, the runtime dynamically swaps in a MoveNet WebAssembly backend rather than crashing.

What it does

  • Enable the webcam and calibrate to your desk, or try the no-camera demo.
  • Sustained poor posture triggers a visual cue (for example "Tuck your chin") and, with audio on, a spoken suggestion. Cues never name a side, so a mirrored webcam can't flip the instruction. A chime marks a return to good posture.
  • Take movement, stretching, breathing or eye breaks, plus a breath check and water reminder.
  • Review seven days of history and try a silent test. Settings and history stay in the browser and can be exported or deleted. Use a recent desktop Chrome, Edge or Firefox.

Why we made it

I build software for a living, and sitting at a desk all day takes a physical toll. Regular eye breaks, posture resets, and movement make that work sustainable. BackUp lives right in the browser where the work happens, filtering out brief shifts so it only nudges you when slouching actually persists.

How Kiro was used

Feature Evidence What it contributes
Specs .kiro/specs/activity-states/tasks.md, docs/app/activity.js, tests/js/activity.test.mjs Defines activity transitions and the shared policy for when reminders, speech and scoring pause.
Steering .kiro/steering/architecture.md Centralized defaults, injected time, frame-rate-independent smoothing, camera processing stays in the browser.
Save hook .kiro/hooks/node-tests-on-change.json Configured to run the Node tests when matching files are saved.

Challenges

  • Audio and timer collisions: an activity-state policy gates speech, break prompts and posture scoring, and a priority scheduler plays one prompt at a time so cues never overlap.
  • WebAssembly alone did not remove the graphics dependency: MediaPipe still needs WebGL, so the app detects its absence and loads the MoveNet fallback.

Try it

Live demo, no install (press "Try the demo" for the full experience without a camera): https://arii.github.io/backup/app/ Source, tests and the .kiro artifacts: https://github.com/arii/backup

Built With

  • javascript
  • kiro
  • kokoro
  • mediapipe
  • movenet
  • web-worker
  • webassembly
Share this project:

Updates

Submission history