Build

FitLife Architecture

FitLife uses a product-style architecture: a Next.js frontend, Flask gateway, AI services, and a shared data layer that keeps nutrition, workouts, and coaching connected.

Stack

Next.js 15 + React 19 frontend
Flask API gateway with JWT auth
OCR label extraction pipeline
YOLOv8-based workout analysis
Knowledge-grounded meal coach with chat history
Dashboard flows for scans and workouts

Current API Routes

These are the main live routes exposed by the FitLife gateway and used by the frontend for auth, profile persistence, nutrition scoring, workout analysis, and coach chat.

MethodEndpoint
GET/health
GET/api/v1/health
POST/api/v1/auth/register
POST/api/v1/auth/login
POST/api/v1/auth/refresh
GET/api/v1/user
PUT/api/v1/user/settings
DELETE/api/v1/user
GET/api/v1/user/scans
GET/api/v1/user/workouts
GET/api/v1/dashboard/stats
POST/api/v1/nutri-ai/upload
POST/api/v1/nutri-ai/analyze
GET/api/v1/muscle-ai/exercises
POST/api/v1/muscle-ai/upload
GET/api/v1/muscle-ai/task/:id
POST/api/v1/ana/chat