Back to all work
Life Client
Dashboard · web + mobile · Tasks, sport, dev activity and agenda in one dashboard.
One dashboard for tasks, sports performance, life-characteristic progression and development activity, on the web and as a native mobile app, with a daily AI lesson app alongside.
Context
Sport lives in Strava, code activity on GitHub and GitLab, the agenda in Google Calendar, tasks somewhere else. Life Client pulls them into a single personal dashboard on web and mobile, and adds a progression layer on top. It is a product built for myself, which makes it a good testbed for architecture decisions.
How it works
- Three apps, one data layer: A Next.js web app, an Expo mobile app and a separate Next.js knowledge app share a TypeScript package: types, Firebase setup, data helpers and the leveling logic.
- Server-side integrations: OAuth flows for GitHub, GitLab, Google Calendar, Strava and Spotify run in Vercel Functions. Tokens are written server-side and never exposed to the client; a Vercel Cron job runs the scheduled sync.
- Data and security: Firestore with per-user isolation enforced by security rules: around 18 collections per user and roughly 22 real-time subscriptions.
- Notifications: Web push (VAPID) and Expo push for the phone, plus daily digests.
- Knowledge app: A separate deployment with a daily AI lesson, code logic drills, a vocabulary builder and a reading list with AI summaries, generated with Google's Gemini free-tier model.
What I built
- One TypeScript monorepo: a Next.js web app, an Expo mobile app and a shared package for types, data access and leveling logic.
- Server-side OAuth for Strava, Google Calendar, GitHub, GitLab and Spotify; access tokens never reach the client.
- Scheduled background sync on Vercel Cron, with per-user data isolation enforced by Firestore security rules.
- Charts for money, sports, goals, tasks and activity on both web and mobile.
- Installable Android preview builds through EAS, and a dark "command-center" redesign carried across web and mobile.
Engineering & quality
- A written Firebase to Supabase migration plan: each collection mapped to a Postgres table with row-level security, a redesign of the real-time layer, and a cutover strategy. The schema phase has landed.
- Server-only code (firebase-admin, OAuth exchange) kept strictly out of client bundles.
- Layout audits on mobile screens, with fixes shipped as the audit findings came in.
Timeline
- Aug 2026: 65 commits: the web app and the first integrations.
- Sep 2026: Mobile redesign (25 Sep), layout audit fixes and installable APK builds (26 Sep).
- 29 Sep 2026: Charts added across money, sports, goals and tasks on web and mobile.
In numbers
- Commits in about six weeks: 96
- Apps sharing one package: 3
- Pages · API routes (web): 15 · 16
- Connected services: 5
Next.js · Expo (React Native) · TypeScript · Firebase Auth + Firestore · Vercel Functions + Cron · OAuth · Gemini