Skip to content
Projects

About

Open, on-device health engine for iPhone: reads a WHOOP strap over Bluetooth, computes sleep, HRV, Load and Reserve on the phone. Early beta.

Web & App Development

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

SAND orb

SAND

Sleep · Activity · Nutrition · Data
An open, on-device health engine for iPhone. It reads a WHOOP strap over Bluetooth and works everything out on your phone.

Tests Early beta iOS Flutter AGPL-3.0

Today: Reserve, your day and Load   Sleep: last night, stages, HRV and resting heart rate   HRV: last night against your normal, 21 nights

Screenshots use synthetic sample data, not a real person's.

What it does

  • Sleep: when you fell asleep and woke, light, deep and REM (an estimate), HRV and resting heart rate overnight.
  • Load and Reserve: how hard your day has been, how much you have left, and how much the night gave back (the Overnight refill).
  • Your day: a plan from waking to wind-down, with a bedtime that fits your sleep need.
  • Training: log lifting with real plates and dumbbells, BJJ rounds, runs and routes; personal records over time.
  • Nutrition: daily targets from your goal and your body weight.

Every number has a written method in docs/metrics/: the question, the method, the papers behind it and how it is checked.

Private by design

Everything is computed and stored on the phone. No account, no SAND server, no analytics, no ads. Your health data leaves the phone only when you export it yourself. The one network request is for OpenStreetMap map tiles on route screens.

Status: early beta

SAND is young. Expect rough edges, and treat every number as an estimate until its method says it has been checked.

  • WHOOP 4.0 is the most tested. WHOOP 5.0 support is newer.
  • Some numbers are still being validated against reference data; each metric's doc says how far it has got.
  • It is not a medical device. Don't use it to diagnose or treat anything.

Found something wrong? See Feedback.

Install it on your iPhone

SAND isn't on the App Store. Install the ready-made app with SideStore (no Mac needed after setup), or build it yourself. Both are free.

The ready-made app

  1. Set up SideStore with your Apple ID (its guide takes about 15 minutes, once). AltStore works the same way.
  2. Add the SAND source: in SideStore, open Sources, tap +, and paste:
    https://raw.githubusercontent.com/rohit0709/sand-app/main/apps.json
    
  3. Install SAND from that source. SideStore shows an update whenever a new version is out.

Prefer another signing service? Each release has the SAND-x.y.z.ipa file.

Keeping your data when you update

  • Update over the installed app. Never delete it first: deleting SAND deletes everything it has stored.
  • Stay with one way of installing. Updates keep your data only when they come signed by the same Apple ID or service as before. Switching (say, from a signing service to SideStore) installs a fresh, empty SAND.
  • Keep the app ID as it is if your signing service offers to change it.
  • Before a big update, You › Export everything saves a copy of all your data.

Or build it yourself

It takes about 30 minutes the first time, and a free Apple ID is enough.

What you need

  • A Mac with Xcode (open it once after installing so it finishes setting up).
  • Flutter 3.47 or later. flutter doctor should show no problems for iOS.
  • An iPhone and its cable, and a WHOOP 4.0 or 5.0 strap.

Build and install

  1. Download the code:
    git clone https://github.com/rohit0709/sand-app.git
    cd sand-app
    
  2. Give the app your own ID. The app ID in the code belongs to the project's Apple account, so Xcode won't sign it for yours. Replace com.yourname below with something of yours (letters, digits and dots, for example com.alexsmith) and run it in the sand-app folder:
    grep -rl dev.trainingos app/ios | xargs sed -i '' 's/dev\.trainingos/com.yourname/g'
    
    This changes the app, its widget and the app group they share in one go; they must match.
  3. Choose your Apple account in Xcode. Open app/ios/Runner.xcworkspace. Click Runner at the top of the left sidebar, then for both the Runner and SandWidgets targets open Signing & Capabilities and pick your team (add your Apple ID under Xcode › Settings › Accounts if it isn't listed).
  4. Prepare the iPhone. Plug it in, unlock it, tap Trust if it asks, and turn on Developer Mode (Settings › Privacy & Security › Developer Mode; the phone restarts).
  5. Install:
    cd app
    flutter pub get
    flutter run --release
    
    If several devices are listed, pick your iPhone.
  6. Trust yourself as a developer. The first time, iOS blocks the app. Go to Settings › General › VPN & Device Management, tap your Apple ID and tap Trust.

First day

  1. Fill in your body details first: tap the round button at the top right of Today, then Body (sex, birth year, height, weight). Without them, some numbers start from defaults that won't fit you.
  2. Pair the strap: tap Pair your strap on Today and allow Bluetooth. A WHOOP 5.0 must be in pairing mode when it meets a new phone.
  3. Wear it tonight. Sleep, Reserve and the rest appear after your first night. Some numbers say they are still learning; they settle over about two weeks.

Keeping it running

  • With a free Apple ID, the app stops opening after 7 days until it is signed again. SideStore renews it by itself over Wi-Fi; if you built it, plug in the iPhone and run flutter run --release again. Your data stays either way.
  • To update a build of your own, run git pull in the sand-app folder, then step 5 again.

If something goes wrong

  • "Failed to register bundle identifier" in Xcode: that ID is taken. Pick a different one in step 2 (run git checkout app/ios first to start over).
  • "Untrusted Developer" or the app won't open: do step 6. After 7 days, see Keeping it running.
  • SAND can't find the strap: make sure it's charged and on your wrist. If the WHOOP app is open, close it and try again.
  • "Peer removed pairing information": in Settings › Bluetooth, tap ⓘ next to the strap, choose Forget This Device, then pair again in SAND.
  • Still stuck? Ask in Discussions.

For developers

flutter run without --release starts it on the iOS Simulator (no strap there). tools/check.sh from the repository root runs the analyzer and every test. Keep your app ID and team changes out of pull requests.

Feedback

This is how SAND gets better, so every report helps:

Issues are public. Never attach your database, exports, strap logs or screenshots with your real health data. Describe what you saw instead, and round the numbers if you like.

What is here

Path What
app/ The Flutter app: screens, design system and charts, device links (native iOS code in ios/Runner)
packages/metrics Every algorithm, pure Dart with tests: sleep and stages, HRV, Load, Reserve, stress, activity, training
packages/store The on-phone database (drift), schema and migrations
packages/strap SAND's own strap protocol code: commands and record decoding
packages/model, packages/importers Shared record types; CSV import used as a calibration reference
docs/metrics/ One spec per metric. Start with 00-process.md
docs/design/ The design system and the reasoning behind each screen. Start with system.md

Contributing

Bug reports, wrong-number reports and ideas are very welcome now. Code contributions open once the contributor licence agreement is in place; see CONTRIBUTING.md.

Licence and ownership

  • Code: copyright © 2026 rohit0709. Released under the GNU AGPL-3.0. You may use, study, change and share it under that licence; if you distribute a changed version, or run it as a service, you must share your source under the same licence.
  • Name and brand: "SAND", the orb logo and the app icon are not covered by the AGPL. All rights reserved. A fork must use its own name and icon.
  • Other licences: the copyright holder may also offer SAND under other terms, for example through the App Store.
  • Not affiliated with WHOOP. WHOOP is a trademark of WHOOP, Inc. SAND contains no WHOOP code or firmware; it talks to a strap you own so you can read your own data.

Details, and the third-party parts SAND includes, are in NOTICE.md.

Explore related projects

Loading…