Mobile app · Live on the App Store
Gamified fitness tracking app
Gamified fitness app live on the iOS App Store with 50+ registered users. Every workout earns XP, each muscle levels up on its own, and leagues compete in monthly seasons. We're running an IRB-approved study on whether gamification actually improves workout adherence.
- Team
- 3 builders
- When
- Sep 2024 - Now
- Users
- 50+ registered
- Platform
- iOS App Store
My roleI started XPStrength and lead it, and I built the app's recovery map, onboarding and league screens.
Project Overview
What it is
XPStrength turns lifting into a game. Every logged workout earns XP, each muscle group levels up on its own, and a body map shows what's still recovering. Friends join leagues that compete against other leagues in monthly seasons.
It's live on the iOS App Store with 50+ registered users, backed by an API we run ourselves.
The study
With Monmouth University, we're running an IRB-approved study on whether gamification actually improves workout adherence and outcomes in active users.
The app is the study's platform: new users go through a consent step in onboarding and a short survey, and their training data shows how the game mechanics change their habits.
Key Features
XP on every workout
XP is calculated on the server from the logged sets: a base amount scaled by workout length, plus bonuses for muscle level-ups, first-time exercises and new personal bests. No level cap.
Muscle levels
Every muscle group earns its own XP and levels up separately, with Bronze-to-Master tiers you can see on the body map.
Recovery map
A body map of 17 muscle regions shows what's still recovering, based on which muscles each exercise worked and how long ago.
Leagues
Leagues of 2 to 15 people earn points for workouts, personal bests and streaks, and compete against other leagues in monthly seasons, with roles, chat and an activity feed.
Friends
Add friends, see who's online, and open their workouts, personal bests and milestones.
Live workout tracking
Timers and a rest timer that keeps running on the iOS lock screen as a Live Activity. The session saves on the phone and uploads when you finish.
Tech Stack
AppReact Native + Expo
TypeScript · expo-router · TanStack Query · NativeWindExpo SDK 54 app on the New Architecture. The lock-screen rest timer is an iOS Live Activity through a custom Swift widget bridge.
APINode + Express
JWT auth · rate limitingREST API with short-lived access tokens and refresh tokens kept in secure storage, validation on every write, and per-IP rate limits.
DataMySQL + Sequelize
Workouts · sets · statsWorkouts are stored as entries and sets. Editing or deleting a past workout recomputes XP, stats and personal bests from the full history.
RealtimeSocket.IO
Presence · leagues · chatFriends' online status, league events and chat. Notifications are saved to the database first and pushed after the write commits, and the app can replay anything it missed.
InfrastructureRaspberry Pi + Docker
GitHub Actions · Caddy · Cloudflare R2GitHub Actions builds an arm64 Docker image and deploys it to a self-hosted Raspberry Pi behind Caddy for HTTPS. Profile pictures live on Cloudflare R2.
- React Native
- Expo
- TypeScript
- TanStack Query
- NativeWind
- Socket.IO
- Node.js
- Express
- MySQL
- Sequelize
- JWT
- Docker
- Caddy
- GitHub Actions
- Cloudflare R2
- Jest
Built with Isaac Sasson and Reuven IsraeliSep 2024 - Now
Challenges
App
- Mapping 873 exercises to a body
The recovery map has to know what every exercise works. Each one maps its primary and secondary muscles onto 17 body regions; a muscle counts as recovering for 2 days after primary work and 1 day after secondary.
- A rest timer on the lock screen
Rest timers keep counting on the iOS lock screen through a Live Activity, which needed a custom Swift widget bridge on top of Expo.
- Metric units
People logging in kilograms were seeing their weights inflated about 2.2x. Tracked down the conversion bug and fixed it across logging and stats.
Backend & infra
- The server owns XP
The app only sends raw sets, so nobody can just post a number. Because XP depends on history, editing a past workout recomputes everything from scratch so totals never drift.
- Normalizing workouts
Workouts started as one JSON blob per session and were moved into proper entry and set tables so stats and personal bests can be queried.
- Deploying to a Raspberry Pi
Self-hosting on a Pi means arm64 images. The sharp image library needed an explicit arm64 build before the container would even start.
Project Gallery
