CalSnap keeps every byte of user data in the browser — no account, no backend database. A 5-step onboarding collects age, sex, height, weight, goal, and activity level, runs them through the Mifflin-St Jeor formula, and sets daily calorie and macro targets. From there, a dashboard handles food logging against a 60-item local database with custom-entry support, a weight log, a 7-day rolling average view, and a streak counter for days with at least one logged meal — all persisted to localStorage alone.
The prompt
Build me a calorie tracker web app where I can upload my images and with localStorage persistence, Mifflin-St Jeor TDEE calculation, and a hardcoded 60-food database. Include a 5-step onboarding flow, then a full dashboard for daily logging, macro tracking, weight log, streaks, and settings.
What it does
- 5-step onboarding (name, biometrics, goal, weekly pace, activity level) with Mifflin-St Jeor TDEE calculation to set daily calorie and macro targets
- Food log with searchable 60-item local database, quantity adjustment, live calorie/macro calculation, custom food entry, and edit/delete support
- Daily view showing calories consumed, remaining, and goal with protein/carbs/fat vs targets and date navigation (no future dates)
- Weekly view with 7-day calorie-vs-goal bar chart and rolling 7-day average
- Weight log (one entry per day) with history, start-vs-current delta, and streak counter (current + longest) based on days with at least one food entry
Built in 19 minutes, prompt to live deploy.