BikeControl (SwiftControl)
Use Zwift Click, Zwift Play, Shimano Di2, or any Bluetooth controller with MyWhoosh, Rouvy, Zwift, and more. Free to try on iOS, Android, Windows, and macOS.
A PWA to track personal workouts
Translation pending
Sports & fitnessTypeScript · CSSGitHub @krishna-mundadaOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Personal installable PWA. Four exercises in strict rotation (Push-ups, Squats, Crunches, Run). Each exercise's target goes up one step every time that exercise is completed. Tracks streaks, backlog (actual minus target, all time), lifetime totals, history and charts.
TypeScript (strict), Vite, Vitest. No framework, no runtime dependencies. Data lives in the browser's localStorage.
npm install
npm run dev # local dev server
npm test # vitest
npm run typecheck
npm run build # typecheck + production build into dist/
Pushing to master redeploys on Vercel (framework preset: Vite, output dist).
| File | Job |
|---|---|
src/config.ts | The routine (PLAN) and tuning numbers. The one file to edit for most changes. |
src/types.ts | Data shapes. |
src/logic.ts | All rules, pure functions, no DOM or storage. Everything shown is derived from the log. |
src/store.ts | Persistence, undo snapshots, import and export. Storage is injected so tests use a fake. |
src/views.ts | Screens as pure functions returning HTML. |
src/html.ts, src/format.ts | Small markup and formatting helpers shared by the views. |
src/sync.ts | Cloud sync (Supabase). planSync is the pure decision logic and is unit tested. |
src/push.ts | Web Push subscription for the daily reminder. |
supabase/functions/wt-remind/ | Hourly reminder function. Deployed copy lives in the Supabase project; redeploy after editing. |
src/dom.ts | Form reading, toast, modal, download. |
src/app.ts | Wiring: state, rendering, the actions map (data-act="name"), events. |
src/styles.css | Theme variables at the top; per-exercise colours come from PLAN. |
public/ | Service worker (network first), manifest, icons. |
TEMPLATE in config.ts only feeds the first-run "four-exercise rotation" option and defaults for older saved data.logic.ts, then add a test in logic.test.ts.actions in app.ts and a data-act in the view.storageKey or snapshotKey in config.ts: they match the data already on the phone.iPhone: open the site in Safari, Share, Add to Home Screen. Android: Chrome menu, Install app. It must be the browser itself, not a link opened inside another app. The app also shows an install card under Backup.
Data is per browser. Use Backup > Download file or Copy as text now and then. The app also keeps the last few states automatically (Backup > Automatic snapshots).
Tables, all prefixed wt_: wt_state (one JSON document per user), wt_push_subscriptions, wt_config (VAPID private key, no client access). Row-level security allows only the owner's email. An hourly pg_cron job calls the wt-remind edge function. Sync is last-write-wins with a prompt when both sides changed; the phone copy always works offline.
Public values (project URL, publishable key, VAPID public key) are in CLOUD in src/config.ts.