An invite-only weight tracking web application with weekly leaderboards and email reminders.
This project is designed to be:
- Free-tier friendly
- Simple to operate
- Easy to extend
- Built with modern, cloud-native tools
- 🔐 Invite-only access (Google OAuth + whitelist)
- 📊 Weekly weight check-ins
- 🏆 Weekly leaderboard (weekly weight delta)
- 📧 Weekly reminder & leaderboard emails
- 📱 PWA-ready (add to home screen on mobile)
- ☁️ Static frontend + serverless backend (BaaS)
- React
- Vite
- TypeScript
- Static SPA
- Cloudflare Pages
- Supabase
- Google OAuth
- Postgres (relational database)
- Row Level Security (RLS)
- GitHub Actions (cron)
- Python (scheduled jobs)
/
├─ apps/
│ └─ web/ # React + Vite frontend
├─ supabase/ # SQL schema, RLS, views
├─ jobs/ # Python cron jobs
├─ .github/workflows/ # GitHub Actions schedules
├─ docs/ # AI agent guidance
├─ AGENTS.md
└─ README.md
- User logs in with Google
- User email is checked against a whitelist
- If whitelisted → access granted
- If not → access denied
Whitelist enforcement is implemented at the database level using Row Level Security (RLS).
- Hosted on Cloudflare Pages
- Build command:
npm run build - Output directory:
apps/web/dist
- Supabase manages authentication and database access
- No custom backend server required for MVP
- Weekly reminder email (users missing check-in)
- Weekly leaderboard email
- Optional keepalive job (prevent Supabase inactivity pause)
All jobs are executed via GitHub Actions using Python scripts.
cd apps/web
npm install
npm run devCreate apps/web/.env.local:
VITE_SUPABASE_URL=your_project_url
VITE_SUPABASE_ANON_KEY=your_public_anon_key
The MVP is considered complete when:
- Users can log in using Google
- Only whitelisted users can access the application
- Weekly weight check-ins are persisted
- Leaderboard renders correct weekly rankings
- Weekly reminder and leaderboard emails are sent
- App can be added to the home screen as a PWA