A multi-user fitness & calorie tracker with AI-powered food recognition. Users sign in with just their email (magic link), set up their profile, and get personalized calorie targets based on BMI, BMR, and activity level.
- Magic link auth — email only, no passwords
- Profile onboarding — name, DOB, gender, height, weight, activity level, goal
- BMI calculator with visual gauge (Underweight / Normal / Overweight / Obese)
- Auto-calculated calorie targets using Mifflin-St Jeor BMR formula + TDEE
- AI food scanner — take a photo or type a description → Claude identifies food and returns calories + macros
- Daily food log organized by Breakfast / Lunch / Dinner / Snack
- Activity tracker with quick-add presets and calorie burn
- Full history — last 30 days with bar visualization and averages
- Per-user data isolation via Supabase Row Level Security
| Layer | Tech |
|---|---|
| Frontend | Next.js 15 (App Router) |
| Auth + DB | Supabase (PostgreSQL + Auth) |
| AI food analysis | Anthropic Claude (claude-sonnet-4-6) |
| Hosting | Vercel |
- Go to https://supabase.com → New project
- In SQL Editor, paste and run the entire
supabase-schema.sqlfile - Go to Authentication → URL Configuration → add your Vercel URL to Site URL
- Copy your Project URL and anon public key from Settings → API
Go to https://console.anthropic.com → create an API key
-
Push this project to GitHub
-
Import to https://vercel.com
-
Add environment variables:
NEXT_PUBLIC_SUPABASE_URL=https://xxxx.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbG... ANTHROPIC_API_KEY=sk-ant-...
-
Deploy and share the URL!
cp .env.local .env.local.bak
npm install npm run dev
BMR (Mifflin-St Jeor): Male: 10W + 6.25H - 5A + 5 Female: 10W + 6.25H - 5A - 161
TDEE = BMR x activity multiplier (1.2 to 1.9)
Target = TDEE - 500 (lose) / TDEE (maintain) / TDEE + 300 (gain)
BMI ranges: <18.5 Underweight | 18.5-24.9 Normal | 25-29.9 Overweight | 30+ Obese
Once on Vercel, share the URL. Each person enters their email, gets a magic login link, fills their profile once, then tracks daily. All data is private per user via Row Level Security.