Product

How we built FitRat: from a personal app to a SaaS for trainers

November 30, 2026

FitRat didn't start as a product. It started as a homemade fix: one of us received a diet and training plan over WhatsApp, in messages and photos that got lost between conversations. The first version was a personal app to keep that plan organized, tick off what got done each day and see progress.

It worked so well that the next question was obvious: if it helped us, wouldn't it help the trainer with all of their clients?

From a personal app to a multi-tenant platform

Going from "one person follows their plan" to "many trainers manage many clients" changed the architecture completely. We defined three roles with different permissions:

  • Client: sees today's plan, checks off meals and exercises, logs weight and measurements, and chats with their coach.
  • Trainer: builds diet and training plans, sees each client's adherence and reviews their progress.
  • Admin: manages trainers, plans and subscriptions, but has no access to clients' health data.

That last point was a design decision, not a detail: health data is sensitive, and whoever runs the platform doesn't need to see it to do their job.

An installable app, no app stores

For clients, FitRat is a PWA (Progressive Web App): it opens in the browser and installs on the phone like any other app, without going through the App Store or Google Play.

That gave us three concrete advantages:

  • One codebase for web, Android and iPhone.
  • Instant updates: when we ship an improvement, everyone gets it the next time they open the app, with no store review.
  • Real push notifications that arrive even when the app is closed: reminders for meals, workouts, water and messages from the coach.

Versioned plans, not overwritten plans

A training plan changes every few weeks. If editing it loses the previous one, you also lose the history: what the client was doing when they lost weight or when they plateaued.

That's why diet and training plans in FitRat are versioned by start date. The new plan replaces the old one going forward, but the history stays intact for comparison.

The stack

FitRat is built with tools we know well and also prefer for client projects:

  • Next.js (App Router, TypeScript) for the web app and the PWA.
  • PostgreSQL with Drizzle ORM, with versioned migrations.
  • Auth.js for role-based authentication.
  • Serwist for the PWA service worker and web-push for notifications.
  • Resend for email (invitations, password recovery).
  • Recharts for progress charts, plus PDF reports.
  • Deployed with Docker on our own infrastructure.

A practical lesson: Next.js's new bundler (Turbopack) isn't yet compatible with the service worker library we use, so FitRat builds with webpack. The newest tool isn't always the right one; the one that works with the rest of your pieces is.

Security and personal data by design

Since FitRat stores health data, security couldn't be left for the end. Some of the measures we implemented:

  • Recorded consent for every user, including the policy version they accepted.
  • Audit log of logins and sensitive actions.
  • Two-factor authentication (MFA) for trainers and admins.
  • Login attempt limits and a cap on concurrent sessions.
  • Account export and deletion so everyone can exercise their rights over their data.

All of this aims at compliance with Chile's Law 21,719 on personal data protection, whose enforcement starts in December 2026.

What we learned

  1. Starting from your own problem is a huge advantage: you know exactly what hurts.
  2. Data decisions get made early. Versioning plans or separating roles is easy at the start and expensive later.
  3. Privacy is part of the product, not a legal chore at the end.

If you have an idea that lives in spreadsheets or WhatsApp today, it can probably become a tool like this. Let's talk.

← Back to blog