ginoFit · In-house product Health & fitness · 2026 Applied AI Wearables From the lab

Shanghai.

A marathon training monitor that grades every workout with AI, rewrites the plan in real time, argues its verdicts in chat, and rewards the discipline to rest. On the desktop, in the menu bar, and on the phone at the gym.

Shanghai — hero screenshot
22
week campaign, one adaptive plan
23
medals in seven categories, gold only when earned
100%
self-hosted, telemetry never leaves home
the setting

From the creators of ginoFit, the Garmin-connected health dashboard, Shanghai is the daily accountability layer for a 22-week run/walk campaign toward the Shanghai Marathon. The athlete trains by heart rate, not ego: every session is governed by a morning recovery verdict computed from overnight HRV, Body Battery and sleep. The app's one job is getting its athlete to the start line healthy.

the hard problem

Nearly every fitness app rewards volume, so an athlete prone to overreaching gets cheered into injury. Shanghai had to do the opposite: reward restraint, cap what harder training can earn, and grade an easy day on a poor recovery morning as a win. The plan itself could not be static either, and all of it, private health telemetry included, had to live on the athlete's own hardware with no public exposure.

how we mutinied

We built a self-hosted system: a Python service on the athlete's own machine syncing wearable telemetry hourly, with a dark, installable web app served over a private encrypted mesh to phone and desktop. Generative AI grades each session rep by rep from sample-level heart data and can rewrite plan targets after every workout, inside hard safety rails, every change logged and revertible. And when the athlete disagrees, a conversational coach argues its case, or corrects bad sensor data on the record.

What we built.

↓ each one working, not a mock

The morning gate

Overnight HRV, Body Battery and sleep combine into a green, yellow or red verdict each morning. It outranks every other number in the app, and obeying it is what the scoring system pays for.

AI-graded sessions

Every rep is rebuilt from sample-level heart data: pace, heart rate ceiling, cadence, and walk recovery judged on the true low reached, not the lap average. The AI coach then grades A+ to F in context: an easy session on a red morning is an A decision.

A coach that talks back

A chat coach with real authority. Ask why a session earned its grade and it cites the evidence. Tell it the treadmill over-read and it corrects the data with audited tools, re-grades on the truth, and tags the session as corrected.

A plan never set in stone

Three adaptive layers stack: the AI can rewrite block targets after each session inside clamped safety rails, a deterministic engine steps treadmill speed up or down from measured performance, and the gate has the final say. The result is one card with today's exact numbers.

Scoring that cannot be gamed

XP is grade times gate-correctness with a weekly cap, so junk miles can never beat disciplined ones. Twenty-three irezumi-style medals across seven categories wait rusted and oxidized until earned: gold is minted only for the work actually done.

Four surfaces, zero cloud

Phone at the gym, desktop, a macOS menu bar glyph that tints with the morning gate, and push notifications. All of it served over a private encrypted mesh: no public ports, and telemetry never leaves home.

The medal wall.

↓ all 23 of them, 7 categories — locked medals sit rusted, gold is minted only when earned
First Blood — First A-grade session
First Blood First A-grade session milestone
10 Sessions — Ten graded sessions logged
10 Sessions Ten graded sessions logged milestone
Far Shore — New longest-run PR
Far Shore New longest-run PR milestone
Metronome — Five straight sessions at B+ or better
Metronome Five straight sessions at B+ or better streak
Disciplina — Obeyed the red gate three days in a row
Disciplina Obeyed the red gate three days in a row streak
Iron — First A-grade strength session
Iron First A-grade strength session strength
Forged — Ten strength sessions logged
Forged Ten strength sessions logged strength
Balanced — A strength session hitting push, pull and legs
Balanced A strength session hitting push, pull and legs strength
Complete Athlete — An A on both a run and a strength session
Complete Athlete An A on both a run and a strength session strength
Foundation Stone — Base block completed
Foundation Stone Base block completed block
Load Bearer — Build block completed
Load Bearer Build block completed block
Summit — Peak block completed
Summit Peak block completed block
Sharpened Blade — Taper block completed
Sharpened Blade Taper block completed block
Sleeping Beauty — A night with a sleep score of 88 or better
Sleeping Beauty A night with a sleep score of 88 or better recovery
Fully Charged — Woke with Body Battery at 90 or above
Fully Charged Woke with Body Battery at 90 or above recovery
Serenity — Three green-gate mornings in a row
Serenity Three green-gate mornings in a row recovery
Phoenix Rising — HRV returned to balance after days unbalanced
Phoenix Rising HRV returned to balance after days unbalanced recovery
Crouching Tiger — B+ or better on a caution-gate day — coiled, controlled power
Crouching Tiger B+ or better on a caution-gate day — coiled, controlled power legend
Hidden Dragon — A single session of 10 miles or more
Hidden Dragon A single session of 10 miles or more legend
Green Destiny — A flawless A+ session — the legendary blade drawn
Green Destiny A flawless A+ session — the legendary blade drawn legend
Half Way to Dawn — Tune-up half marathon finished
Half Way to Dawn Tune-up half marathon finished race
The Approach — Race week reached
The Approach Race week reached race
Shanghai Finisher — The Shanghai Marathon, finished
Shanghai Finisher The Shanghai Marathon, finished race
One training day, end to end
01

The body reports in

Wearable telemetry syncs hourly to the athlete's own machine: HRV, Body Battery, sleep, and every session with sample-level heart rate. No cloud, no third party.

02

The gate rules the morning

At six the verdict lands as a push notification: green, yellow or red. The menu bar glyph tints to match, and if late data changes the color, the gate re-fires.

03

One card of exact numbers

Block targets, the weekly schedule, the adaptive step and the gate combine into today's prescription. A 14-day projection auto-tapers before race day.

04

Rebuilt rep by rep

Runs are scored on pace, heart rate ceiling, cadence and true walk-recovery lows. Strength work is parsed set by set with its own rubric. Sensor glitches are excluded.

05

The AI passes judgment

A grade from A+ to F, argued in context of the morning's gate. Then the plan review decides whether targets should move, inside clamped rails, every change logged and revertible.

06

The athlete gets the last word

The chat coach explains any verdict, corrects bad sensor data on the record, and re-grades on the truth. XP, medals and notifications close the loop for the day.

“Most training apps cheer you on while you dig yourself into a hole. Shanghai is the first one I have seen with the guts to tell an athlete to stop. That red gate is real coaching.”
Edward Betancourt, short distance speed runner and MPT record holder

What this proves.

✓ AI-native product design ✓ Wearable data engineering ✓ Self-hosted private systems

under the hood: React progressive web app, Python API layer, on-device SQLite, wearable telemetry pipeline with sample-level heart rate analysis, generative AI coaching with realtime plan review and conversational data correction, generative art badge pipeline, Web Push, native macOS menu bar companion, private encrypted mesh networking

the hardest thing to coach is restraint — Shanghai makes it the highest-scoring move

Want one like it?

We reply personally. A senior partner, not a sales pod. We'll tell you straight whether we can help.