← Portfolio / ConsciousCalories

consciouscalories.vercel.app ↗ LIVE

AI nutrition — snap a meal photo, get calories, macros & ingredients in seconds.

Open Live Website →

How I built it

Fast, mobile-first experience: compress on device, analyze with LLM, show structured result.

Phone
  │
  ├─► Take / pick photo (PNG/JPG/WEBP, ≤10 MB)
  │     compress in browser (canvas) — keeps upload fast
  │     preview + detect food vs non-food
  │
  └─► Send to AI
        Gemini 2.5 Pro (via AICredits)
        tolerant JSON parse → 
        {
          dish, calories, protein, carbs, fat, ingredients[]
        }
        │
        ▼
      Show result cards
      dish name · kcal · macros · ingredient list
      (estimate — not medical advice)

No API key in repo — runs as frontend prototype on Vercel with React 19 + Vite.

Why it works for visitors