IT/EN
← All cases

Case files · 02

GymLogPWA

The Progressive Web App I use to log my workouts. Offline-first, the data stays mine, and about ten people at my gym use it.

Year
2026
Role
Final-year project · design and development
Tools
React · TypeScript · Supabase · PWA · React Query
Links
CASE 02GymLogPWA
01

Diagnosis

Commercial workout apps lock your data behind subscriptions and ads, with no full export, no public API and no way to run your own analysis.

02

Treatment

An offline-first PWA, with React and TypeScript on the front end and Supabase behind it (PostgreSQL, OAuth 2.0 with PKCE, Row Level Security), for full control over your own data.

03

Outcome

It started as a personal script and became my final state exam project. Today about ten people at my gym use it.

10+users at my gym
€0infrastructure
100%works offline

The problem

Gym apps work, but the data you generate isn’t really yours. Subscriptions and ads are the least of it: most of them won’t let you export everything, offer no public API and block any analysis done your own way. I wanted a tool to log my workouts with no subscriptions, no ads and without handing my data to third parties.

What it does

  • workouts with sets, reps and loads;
  • reusable templates for training programmes;
  • daily metrics: sleep, body weight, steps, stress, nutrition;
  • estimated 1RM trends and progress charts;
  • paginated exercise history;
  • sharing a workout through a unique token;
  • installable as an app, works without a connection.

How it is built

Layer Choice Why
Front end React + TypeScript + Vite declarative components, compile-time types, fast builds
Interface Tailwind CSS + shadcn/ui fast development, accessible and customisable components
PWA vite-plugin-pwa + Workbox generated service worker, precaching, configurable caching strategies
Back end Supabase managed PostgreSQL, automatic REST APIs, built-in auth
Data React Query smart caching, background updates, offline support
Deploy Netlify continuous deployment from Git, CDN, automatic HTTPS

Security rests on two pieces: OAuth 2.0 with PKCE for sign-in and Row Level Security in PostgreSQL, so every user only sees their own rows even if someone tries to query the database directly.

Requirements before code

The project started from a requirements analysis: functional (what the app must do), non-functional (offline-first, mobile-optimised, first load under 3 seconds, zero infrastructure cost) and constraints (no backend to manage, each user’s data isolated, a modern but stable stack, documented iterations).

The role of AI

I used it like a colleague who is always around: to understand Row Level Security, the PKCE flow, an animation bug caused by React StrictMode. The decisions, the design and the responsibility for the code stayed with me. I wrote about it in a note.

What comes next

With about ten athletes using it, the data starts to tell a story: the optimal volume to progress, the most effective recovery times, how fast people improve over time. That is where bodybuilding meets data analysis.