Nakamoto
//

SleepVue

September 2026

SleepVue is a sleep tracker for the UNA Watch: a watch app that records your night, and an iOS companion app that syncs it over Bluetooth and writes it to Apple Health.

Overnight the watch logs heart rate and movement and classifies each interval as awake, light or deep sleep. In the morning the iOS app connects, pulls the new nights and shows each one with its sleep-stage timeline, heart-rate trace and movement graph. With the Apple Health toggle on, every night is also written to Health, so it shows up in Apple's own Sleep Score and Sleep Stages views alongside everything else you track.

Built in under 3 days

I wrote both apps with OpenCode driving the Kimi 3 model — from an empty repo to a working watch app and a companion app on my phone in less than three days.

  • UNA watch app: about $40 in AI usage
  • iOS companion app: less than $10
  • Total: roughly $50 for two working apps

What it does

  • Bluetooth sync with the watch (FTS protocol v5), with a BLE debug log for troubleshooting
  • Per-night detail: awake / light / deep stages, heart-rate range and average, movement
  • Writes each night to Apple Health as sleep-analysis samples
  • Synced nights are kept on the phone, so the watch only needs to be nearby in the morning

Screenshots

SleepVue home screen: connected to the watch, Apple Health toggle on, two synced nights
Connected and up to date
A single night in SleepVue with sleep stages, heart rate and movement charts
One night: stages, heart rate, movement
SleepVue home screen while the watch is not connected
Watch out of range — nights are kept locally
Apple Health Sleep Score of 88 built from SleepVue data
Apple Health Sleep Score from the same night
Apple Health sleep stages chart showing core and deep sleep from SleepVue
Apple Health sleep stages