Count reps. Own the clock.
A tiny interval rep trainer that installs on iPhone and Android and keeps working offline.
Live demo: darker20121995.github.io/repcount

Scan with your phone camera to open it on iPhone or Android.
RepCount is a single-page PWA (progressive web app). No framework, no build step, no
backend — just index.html, one stylesheet and one script. Open it in a phone browser and
add it to the home screen; it launches full-screen and caches itself for offline use.
Set a work timer (30 s, 1 min, anything 5 s–5 min), a rep target (1–30+), a rest timer (10/20/30 s) and the number of sets. Tap the big pad for every rep — the app beeps the last three seconds, rolls into rest, then starts the next set by itself.
- Work timer — presets 30 s / 1 min, adjustable 5 s–5 min
- Rep target — 1–99 per set, with progress fill on the tap pad
- Rest timer — 10 / 20 / 30 s presets, auto-starts the next set
- Sets — 1–20 rounds, with per-set rep breakdown
- One-tap counting — whole pad is the button,
−1fixes a mis-tap - Cues — beeps for 3-2-1, set-change tones, haptics on Android
- History — total reps, best set, duration and per-set counts, stored on-device
- Offline — service worker caches the app shell
- Installable — full-screen on iOS and Android, no app store needed
- Accessible — large targets, ARIA labels, reduced-motion support
The app must be served over HTTPS (GitHub Pages gives you that for free).
Android (Chrome)
- Open your Pages URL.
- Tap the Install card in the app, or Chrome's ⋮ menu → Install app.
- It appears in the app drawer and opens full-screen, offline.
iPhone / iPad (Safari)
- Open your Pages URL in Safari — not Chrome.
- Tap Share → Add to Home Screen → Add.
- Launch it from the home screen: full-screen, works offline after the first load.
python -m http.server 4173
# then open http://127.0.0.1:4173A service worker only runs on
https://orlocalhost. On a LAN address likehttp://192.168.1.20:4173the app still works, but it won't install or cache offline.
The timer engine and UI are tested in headless Edge over the DevTools protocol:
# terminal 1
python -m http.server 4173
# terminal 2 — headless Edge with remote debugging
& "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" `
--headless=new --remote-debugging-port=9222 `
--user-data-dir="$env:TEMP\repcount-edge" about:blank
# terminal 3
node tools/shots.mjs20 checks cover counting, pause/skip, auto-advance, summary math, history persistence,
offline boot, service-worker control and small-screen layout. Screenshots are written to
tools/shots/ (git-ignored).
/
├── index.html # setup, workout, summary, history screens
├── styles.css # dark mobile UI, safe-area aware
├── app.js # config, timer engine, counting, history, PWA glue
├── manifest.webmanifest # name, icons, standalone display
├── sw.js # offline app-shell cache
├── icons/ # app icons + favicon
├── screenshots/ # README / social-preview images
├── tools/
│ ├── make-icons.py # regenerate the icon set (Pillow)
│ ├── make-banner.py # regenerate screenshots/banner.png
│ └── shots.mjs # headless test + screenshot suite
├── GITHUB.md # step-by-step GitHub Pages guide
├── publish.ps1 # one-command git init + push helper (Windows)
├── LICENSE # MIT
└── .nojekyll # serve files as-is on GitHub Pages
| What | Where |
|---|---|
| Defaults & presets | DEFAULT_CFG, PRESETS in app.js |
| Limits (work/rest/sets/target) | LIMITS in app.js |
| Colors | CSS variables at the top of styles.css |
| Icons | edit tools/make-icons.py, then python tools/make-icons.py |
| Banner | edit tools/make-banner.py, then python tools/make-banner.py |
| Cache version | bump VERSION in sw.js when shipping asset changes |
Config, settings and workout history live in localStorage on the device. No analytics,
no accounts, no network calls after the first load.
MIT — do whatever you like.





