How serpentmaks/workout-tracker works
BentoFit is an offline-capable iPhone workout-tracking PWA. Its main flow lets a user start a scheduled, template-based, or free workout, log sets, and retain the completed session for later history and analytics. Other documented or visible capabilities include an exercise catalog, cycle scheduling, rest timer with feedback, body metrics, settings, data import/export, and offline caching. The controller excerpt directly supports its storage and timer use; several feature-to-controller links are omitted because sampled excerpts do not show those calls.
Main entry points: app.js Workout app controller · storage.js Local state manager · timer.js Rest timer · audio.js Audio & haptics
Components 11
Workout Tracking
- Workout app controller
js/app.js - Rest timer
js/timer.js - Audio & haptics
js/audio.js
Plans & Exercise Data
- Exercise catalog data
js/exercises-data.js - Cycle scheduler
js/schedule.js
History & Profile
- History & analytics
js/analytics.js
App Runtime
- Local state manager
js/storage.js - Browser local storage
- Offline service worker
sw.js
Other components
- iPhone user
- iPhone browser
Connections 14
- iPhone user → Workout app controller: uses
js/app.js - Workout app controller → Local state manager: reads and saves
js/app.js - Workout app controller → Rest timer: controls
js/app.js - Rest timer → Local state manager: reads settings
js/timer.js - Rest timer → Audio & haptics: plays completion cues
js/timer.js - Audio & haptics → Local state manager: reads settings
js/audio.js - Workout app controller → Exercise catalog data: renders catalog
- Cycle scheduler → Local state manager: reads schedule and templates
js/schedule.js - Workout app controller → Cycle scheduler: gets workout schedule
- History & analytics → Local state manager: reads history and settings
js/analytics.js - Workout app controller → History & analytics: renders analytics
js/app.js - Local state manager → Browser local storage: persists app data
js/storage.js - iPhone browser → Offline service worker: registers offline support
- Offline service worker → iPhone browser: serves cached assets
sw.js