Skip to content

About

Multi-user fitness & calorie tracker. Snap a meal photo, Claude returns calories and macros. Next.js 15 + Supabase + Claude API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

97 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏃 Cardio with Cocktails — Fitness Tracker

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.


Features

  • 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

Tech Stack

Layer Tech
Frontend Next.js 15 (App Router)
Auth + DB Supabase (PostgreSQL + Auth)
AI food analysis Anthropic Claude (claude-sonnet-4-6)
Hosting Vercel

Setup — 3 steps

Step 1: Supabase

  1. Go to https://supabase.com → New project
  2. In SQL Editor, paste and run the entire supabase-schema.sql file
  3. Go to Authentication → URL Configuration → add your Vercel URL to Site URL
  4. Copy your Project URL and anon public key from Settings → API

Step 2: Anthropic API key

Go to https://console.anthropic.com → create an API key

Step 3: Deploy to Vercel

  1. Push this project to GitHub

  2. Import to https://vercel.com

  3. Add environment variables:

    NEXT_PUBLIC_SUPABASE_URL=https://xxxx.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbG... ANTHROPIC_API_KEY=sk-ant-...

  4. Deploy and share the URL!

Local development

cp .env.local .env.local.bak

Edit .env.local with your real keys

npm install npm run dev


Calorie target formula

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


Sharing

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.

About

Multi-user fitness & calorie tracker. Snap a meal photo, Claude returns calories and macros. Next.js 15 + Supabase + Claude API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages