Skip to content

Health and fitness

WinWeek

GLP-1 companion logbook

In development65%36 of 55 launch items done

Next milestone: First test builds on real phones (TestFlight and Play internal testing)

Tech stack & architecture

Built with

LayerTechnology
Phone app (iPhone and Android)Expo SDK 57 and React Native 0.86, written in TypeScript, one codebase for both phones
Navigation and screensExpo Router; the app's own design system ("Aurora glow"), Sora and Inter fonts, smooth animations
On-phone storageSQLite database on the phone; meal photos stay as files on the phone
Shared rulesA separate shared-logic package (schedules, streaks, XP, trends, safety rules) with no outside dependencies
BackendGoogle Firebase: sign-in, a cloud database for the optional backup, and four server functions
PaymentsRevenueCat on top of Apple and Google in-app subscriptions
AIAnthropic's Claude (workout plans) and Google Gemini on Vertex AI (meal photos), called only from the server
WebsiteNext.js on Vercel, at winweek.app
BuildsExpo Application Services (EAS) cloud builds

How it fits together

flowchart LR
  U[Person on iPhone or Android] --> A[WinWeek app]
  A --> DB[(Log on the phone - SQLite)]
  A -. optional sign-in and backup .-> FB[Firebase: sign-in and cloud backup]
  A -. optional AI, with consent .-> FN[Server functions]
  FN --> C[Claude: workout plan]
  FN --> G[Gemini: meal photo estimate]
  A --> RC[RevenueCat and the App Store / Google Play]
  RC --> FN
  W[Website winweek.app] --> L[Legal, support and deletion pages]

Everything a person logs is saved first in a database on their own phone, so the app works without an account or a signal. If they choose to sign in and agree to backup, the log is also copied to Firebase so it can be restored on another phone. The two AI features never call an AI company from the phone: the app sends the request to WinWeek's own server functions, which check the person's sign-in, subscription and daily limit, call Claude or Gemini, and send the answer back without keeping it. Subscriptions are bought through Apple or Google; RevenueCat tells the app and the server who has an active plan. The website carries the legal pages, support and the account-deletion request page that the stores require.

Services it uses

  • Apple App Store and Google Play: distribution and the in-app subscription.
  • RevenueCat: subscription status across both stores.
  • Firebase (Google): Authentication (Apple, Google and email sign-in), Cloud Firestore for the optional backup, and Cloud Functions for the AI features, the subscription updates and account clean-up.
  • Anthropic (Claude): writes the one-week workout plan, processed in the United States.
  • Google Vertex AI (Gemini): turns a meal photo into an estimated food list, processed in the United States.
  • Vercel: hosts the website.
  • Expo (EAS): builds the iPhone and Android apps in the cloud.
  • GitHub Actions: runs the automated checks.

There are no advertising, analytics or crash-reporting services in the app.

Quality

  • Automated tests: 972 tests for the phone app, 894 for the shared logic and 954 for the database security rules, all passing at the last full run (2026-10-28).
  • End-to-end tests: 21 scripted runs through the real app on an iPhone simulator (setup, dose, check-in, weigh-in, subscription, deletion, warning signs, meals, water, strength, walks, AI features and photo clean-up). All 21 pass; 20 of 21 also pass at a large accessibility text size.
  • Reviews: seven independent code reviews in October 2026, covering among other things the dose log, sync and consents, payments and AI, and the screens and wording; their fixes were tested before they were kept.
  • Code checks: type checking, linting, Expo's health check, and scripts that catch duplicated and circular code.
  • Releases: cloud builds with separate development, test and production settings; production keeps its own server project.

Updated 2026-11-23