How kumarvalavala66/replog works
RepLog is a local workout tracker: users create plans or start live/manual workouts, record exercise sets, then review workout history and analytics. The React app uses an API client to communicate with the FastAPI backend, which persists sessions, plans, exercises, and users in SQLite. The README confirms live sessions resume from persisted records and describes volume and estimated one-rep-max analytics. Some routes and UI pages were not sampled, so those capability links are shown only where documented or left unverified.
Main entry points: main.py FastAPI app · workouts.py Workout routes · auth.py Authentication routes · App.jsx RepLog app
Components 22
Workout interface
- RepLog app
frontend/src/App.jsx - Live workout UI
frontend/src/components/LiveWorkout.jsx - Exercise previews
frontend/src/components/ExerciseAnimation.jsx - Exercise catalog
frontend/src/exercises/catalog.js - API client
frontend/src/services/api.js
Backend API
- FastAPI app
backend/app/main.py - Workout routes
backend/app/api/routes/workouts.py - Plan routes
backend/app/api/routes/plans.py - Exercise routes
backend/app/api/routes/exercises.py - Analytics routes
backend/app/api/routes/analytics.py - Authentication routes
backend/app/api/routes/auth.py - Auth schemas
backend/app/schemas/auth.py - Request dependencies
backend/app/api/deps.py
Workout domain
- Training plans
backend/app/models/plan.py - Workout records
backend/app/models/workout.py - Exercise records
backend/app/models/exercise.py - User records
backend/app/models/user.py - Training analytics
backend/app/services/analytics.py
Persistence
- Database settings
backend/app/core/config.py - SQLAlchemy session
backend/app/db/session.py - SQLite database
Other components
- Tracker user
Connections 23
- Tracker user → RepLog app: uses
- RepLog app → API client: requests data
frontend/src/App.jsx - RepLog app → Live workout UI: renders
frontend/src/App.jsx - Live workout UI → Exercise previews: renders
frontend/src/components/LiveWorkout.jsx - API client → FastAPI app: sends HTTP requests
- FastAPI app → Workout routes: registers
backend/app/main.py - FastAPI app → Plan routes: registers
backend/app/main.py - FastAPI app → Exercise routes: registers
backend/app/main.py - FastAPI app → Analytics routes: registers
backend/app/main.py - Workout routes → Workout records: reads and writes
backend/app/api/routes/workouts.py - Workout routes → Training plans: reads
backend/app/api/routes/workouts.py - Workout routes → Exercise records: validates
backend/app/api/routes/workouts.py - Plan routes → Training plans: reads and writes
backend/app/api/routes/plans.py - Exercise routes → Exercise records: manages
- Analytics routes → Training analytics: computes
- Authentication routes → Request dependencies: requires user
backend/app/api/routes/auth.py - Authentication routes → User records: reads and writes
backend/app/api/routes/auth.py - Authentication routes → Auth schemas: validates payloads
backend/app/api/routes/auth.py - Request dependencies → SQLAlchemy session: gets database session
backend/app/api/deps.py - Request dependencies → User records: loads current user
backend/app/api/deps.py - SQLAlchemy session → Database settings: reads settings
backend/app/db/session.py - SQLAlchemy session → SQLite database: connects
backend/app/db/session.py - Workout records → SQLite database: persists sessions