How ivanmarksjr/treino-livre works
Treino Livre is a browser-based home-workout planner and tracker. Users choose or adjust a routine, follow exercise instructions and timed/repetition-based sessions, then review workout history and progress; state is stored locally in IndexedDB. The app also provides offline caching and optional video demonstrations. The excerpts show app.js as the central UI, workout, and persistence orchestrator and data.js as its exercise and routine catalog. Other UI renderers and progression details are described only by partial excerpts, so their internal links are limited to documented or visible behavior.
Main entry points: app.js App UI and actions · sw.js Service worker · data.js Exercise catalog · videos.json Exercise videos
Components 12
Workout experience
- App UI and actions
app.js - Workout session
app.js - History and progress
app.js - Cycle guidance
app.js
Exercise and plans
- Exercise catalog
data.js - Routine templates
data.js - Exercise videos
videos.json
Local data
- App state
app.js - IndexedDB
Offline delivery
- Service worker
sw.js - Browser cache
Other components
- Trainee
Connections 11
- Trainee → App UI and actions: uses
app.js - App UI and actions → Exercise catalog: reads catalog
app.js - App UI and actions → Routine templates: loads templates
app.js - App UI and actions → Workout session: starts and edits
app.js - App UI and actions → History and progress: renders views
app.js - App UI and actions → Cycle guidance: applies changes
app.js - App UI and actions → App state: updates
app.js - App state → IndexedDB: reads and writes
app.js - App UI and actions → Exercise videos: fetches mappings
app.js - App UI and actions → Service worker: registers
app.js - Service worker → Browser cache: caches responses
sw.js