Vitals
Recovery, strain and sleep metrics from Health Connect exports
Features
- Whoop-style recovery, strain and sleep metrics from raw Android Health Connect exports
- Works with any watch whose app writes heart rate, sleep and SpO2 to Health Connect
- Published formulas: Banister TRIMP, Karvonen zones, Keytel calories, the impulse-response model
- Every number reproducible from the raw tables; every constant in one file
- Output: a SQLite database, CSV, Markdown reports and a web dashboard
- An MCP server, so Claude Code or any other agent can query your data
- Idempotent sync: the same export ingested twice changes nothing
- No cloud account, no subscription, no AI inference
- A synthetic 35-day demo, so you can try it without a watch
Pin configuration and functions
Q package, 8-pin, top view
| Pin | Name | I/O | Description |
|---|---|---|---|
| 1 | DOCTOR | I | Inventory of an export and the local database, sample gaps, last sync vitals doctor |
| 2 | INGEST | I | Load a Health Connect zip or database, or a Takeout Fit export vitals ingest |
| 3 | COMPUTE | I/O | Recompute the daily and workout_metrics tables vitals compute |
| 4 | SYNC | I/O | rclone pull, ingest, compute and report vitals sync |
| 5 | REPORT | O | Markdown report with daily and workout tables vitals report |
| 6 | SQL | O | Read-only SQL, CSV to stdout vitals sql |
| 7 | MCP | I/O | stdio MCP server with eight tools, run_sql read-only vitals-mcp |
| 8 | WEB | O | Next.js dashboard over the same database, read-only web/ |
Electrical characteristics
Ranges and constants as the README states them. Every constant lives in vitals/metrics.py. The README gives no timings, so this table has none.
| Parameter | Test conditions | Min | Typ | Max | Unit |
|---|---|---|---|---|---|
| Outputs | |||||
| RecoveryResting HR, sleep and SpO2; HRV when the watch gives it | Resting HR, sleep and SpO2; HRV when the watch gives it | 0 | –0 to 100 | 100 | – |
| Recovery, green bandYellow 34 to 66, red below 34 | Yellow 34 to 66, red below 34 | 67 | –≥ 67 | – | – |
| Strain21 × (1 − e^(−L / 155)), L = Edwards TRIMP | 21 × (1 − e^(−L / 155)), L = Edwards TRIMP | 0 | –0 to 21 | 21 | – |
| Strain, 60 min in zone 5The last points are the hardest to earn | The last points are the hardest to earn | – | 1818(1) | – | – |
| MCP toolsstdio server | stdio server | – | 88 | – | tools |
| Model constants | |||||
| τCTLFitness windowExponential average of TRIMP | Exponential average of TRIMP | – | 4242 | – | days |
| τATLFatigue windowExponential average of TRIMP | Exponential average of TRIMP | – | 77 | – | days |
| ACWR risk zone7-day mean over 28-day mean | 7-day mean over 28-day mean | 1.5 | –≥ 1.5 | – | – |
| SpO2 componentOvernight minimum, mapped to 0 and 100 | Overnight minimum, mapped to 0 and 100 | 88 | –88 to 95 | 95 | % |
| HR sample cap, backgroundGap to the next sample, default | Gap to the next sample, default | – | 1010 | – | min |
| HR sample cap, workoutGap to the next sample | Gap to the next sample | – | 6060 | – | s |
| Supply | |||||
| PythonWith uv | With uv | 3.12 | –≥ 3.12 | – | – |
| AndroidScheduled Health Connect export | Scheduled Health Connect export | 15 | –≥ 15 | – | – |
| Background synclaunchd agent, default interval | launchd agent, default interval | – | 66 | – | h |
| Demo exportSynthetic, writes only to .demo/ | Synthetic, writes only to .demo/ | – | 3535 | – | days |
| Cloud accountRuns on your own machine | Runs on your own machine | – | NoneNone | – | – |
(1) The source states this value as “about”.
Every value on this page is from the project README. The recovery score is a trend instrument, not a diagnosis.
Application circuit
Figure 2. SRJT-006 Typical Application: export in, metrics out
Ordering information
| Orderable part | SRJT-006 VITALS |
|---|---|
| Status | Active |
| Package | Python CLI, MCP server |
| Source | github.com/DevSrijit/vitals |
| License | MIT |
| Build | Python 3.12 with uv, and SQLite. The dashboard is Next.js on Bun. |
| Works with | Any watch whose app writes heart rate, sleep and SpO2 to Health Connect. |