FitVision AI
A web information system that watches a workout through the phone camera, coaches technique in real time, and turns every set into an analytical progress report for the trainer.
The demo runs on a free server that sleeps when idle, so the first load takes about 30 seconds.
the idea
The problem
Many people train without a coach next to them, at home or in an open gym. They repeat exercises with poor form and get no objective feedback, which raises the risk of injury. Trainers, on their side, have no systematic way to follow trainees remotely and rely on what the trainee reports.
The solution
- Pose detection in the browser, straight from the phone camera
- Rep counting and form feedback on screen and by voice, as you train
- Every workout logged at the set, rep and error-event level
- Automatic reports, trends and alerts for the trainer
- Video never leaves the phone – only numbers reach the server
my role
I was the lead full-stack developer, responsible for the system architecture and the database. In practice that meant owning the server side and the design documents behind it:
how it works
The heavy work happens on the trainee's phone. The server only receives the numeric results of each set, which keeps the system fast and private by design.
React PWA
Python · FastAPI
counting a rep
A rep is a state machine over a joint angle, not a single threshold. This is what stops noise and half-reps from being counted. Example: the knee angle in a squat.
Going back up without reaching the bottom is a partial rep and is not counted. All thresholds live in the database (TechniqueRules), so each exercise can be tuned without changing code.
data model
Seventeen normalized tables, in five groups. The core is a strict hierarchy: a session holds sets, a set holds reps, and every form mistake is stored as an event on the rep where it happened. That level of detail is what makes the trainer reports possible.
- Users
- TraineeProfiles
- TrainerProfiles
- TrainerTraineeAssignments
- AuditLog
- Goals
- WorkoutPlans
- PlanExercises
- Exercises
- TechniqueRules
- WorkoutSessions
- ↳ ExerciseSets
- ↳ Repetitions
- ↳ FormErrorEvents
- Reports
- TrainerNotes
- ReportDeliveries
the app
Trainee screens on the phone: home, camera setup and the live workout with skeleton overlay and form alerts. The interface is in Hebrew, right to left.
testing with a real user
After the MVP was built we ran it on a real Android phone and read the results straight from the database. The data showed problems that no test on paper had caught:
engineering
- Works offline: a workout is saved on the phone in IndexedDB and syncs automatically when the network is back.
- Installable: a PWA for phones, tablets and laptops, including iPhone and iPad.
- Deployed: every push to main redeploys the app to Render, with PostgreSQL on Neon.
key insights
Privacy is an architecture decision
Running pose detection on the device meant the server never needs video. That one choice solved privacy, bandwidth and server cost together.
Rules belong in data, not code
Storing technique thresholds as database rows turned the post-trial recalibration into a migration, and lets an admin add exercises without a developer.
Real users beat assumptions
One session on a real phone exposed noise, wrong thresholds and unreadable screens. Reading the raw data showed exactly where to fix.
Let constraints pick the tools
Hebrew PDFs ruled out WeasyPrint, so reports print through Chromium. Slow report jobs moved to a Redis queue to keep the API fast.
what's next
tech stack
get in touch
Questions about a project, the code or the way it was built? I'm always happy to talk about it.