Personal project · Progressive web app
Rep
Omics
Bodyweight strength training, planned on the phone from the log.
A training app for its owner and a few invited friends. Each family climbs a ladder of harder variations; a pure TypeScript engine turns the training log, the profile and a date into the day's sets, and a set is logged offline, from a cold start, without waiting for a server.
Private app · Invite-only · Screens show a generated demo athlete
- Role
- Product · Architecture · Full-stack
- Engine
- Pure domain · plans computed from the log
- Data
- Firestore · offline-first · rules-gated
- Wearable
- Google Health · read-only
- Stack
- Next.js · React · TypeScript · Firebase
- Testing
- Vitest · Playwright · axe · emulator
What it shows.
01 · Today
One ring for the day, a quarter per family.
Squat, pull, push and core, each at its current rung, each filling toward its own target.
02 · Session
Count the reps, then one tap for reps in reserve.
+1 and +5 · a rest timer counted from a stored end time · the screen kept awake through rest.
03 · Ladders
A ladder of harder variations for every family.
A rung is mastered when every work set reaches 15 reps with a rep in reserve, two training days in a row.
04 · Progress
Strength, volume and an athlete card, recomputed on every open.
Four-week blocks · three ramp weeks · a deload ending in a retest.


A log in,
a day's plan out.
The engine's rules change often, so nothing it derives is stored. Firestore keeps what happened and what the athlete chose; every open recomputes the blocks, the prescriptions, the records and the scores from that log and a date. A few hundred sessions a year keeps it cheap, and a past week is always judged by the schedule that was in force on it.
The domain is pure TypeScript with no I/O behind three seams (planDay, scoreboard, recommendTemplate), built test first. Every constant is labelled evidence, convention or heuristic against the research it came from, and readiness and wearable readings reach it as entries in the log, so the engine never changed when Google Health arrived.
- 01Training logsets · tests · check-ins
- 02Profilepast schedules kept
- 03A datenever the clock
- 04Block calendar3 ramp weeks · deload
- 05Prescriptionlatest test at the rung
- 06Autoregulationreserve · readiness
- 07Today's setsper family, per rung
Pure domain — no I/O, recomputed from the log on every open
Three decisions.
State
The log is the only stored state
Firestore holds what happened and what the athlete chose. Blocks, prescriptions, records and scores are recomputed on the device on every open, so a rule change needs no migration and a set logged offline never disagrees with a stored plan.
Offline
Data-free shells
Every page prerenders with no athlete data and reads it from Firestore's on-device cache. The service worker precaches every screen at install, so a screen never opened online still opens with no signal.
Security
Invite-only, tokens sealed to the athlete
Rules require the athlete's own path and a custom claim granted by a script. The server holds no data: it seals each Google Health refresh token with AES-256-GCM, bound to the athlete's uid, and the app keeps it in that athlete's tree.
The iPhone shaped the details. Safari has no Vibration API, so a tick comes from toggling a hidden switch input inside the tap; a hidden page's timers stop, so rest is counted from a stored end time; and a wake lock, re-requested on every return, keeps the screen on through rest.
Private
by design.
RepOmics is for its owner and a few invited friends: no sign-up page, no billing, and every page answers noindex. Firestore's rules require the athlete's own path and a custom claim granted by a script, so a stranger who signs in with Google can read and write nothing.
That is why this page has no launch button and no repository link. The screens come from the app's visual baselines, drawn on a deterministic demo athlete that runs the same use cases through the same ports, with no Firebase project behind it.
- Access
- Google sign-in + an athlete claim
- Data
- Each athlete's own tree, shape-checked
- Wearable
- Read-only · never overrides the check-in