The current Vision app is no longer a generic image-description demo. It is a
calorie tracking app that uses vision AI to analyze meal photos and
return structured nutrition data.
What Users See
From the user’s point of view, this app is very simple:- take or upload a photo of a meal
- let the AI analyze it
- see estimated calories and macro breakdowns
- review recent analyses and daily progress
What The App Tracks
The current implementation focuses on:- estimated total calories
- macro breakdowns
- meal item analysis
- meal type context
- recent history
- a visual daily calorie experience
What Powers It
Under the hood, the app combines:- a vision-capable model for image understanding
- schema-based structured output
- object storage for uploaded meal photos
- Supabase for auth and saved generations
- the shared credit system
What You Need
To run the app, you should set up Supabase, Google, and Storage first.Supabase
Needed for auth, saved analyses, and account data.
Needed for the default vision-model path used by this app.
Storage
Needed for uploaded meal photos.
How It Works
Here is the beginner-friendly version of the pipeline:- the user uploads a food photo
- the file is stored
- the vision API sends the image plus prompt to the selected model
- the model returns structured nutrition data
- the result is saved so the user can review it later
- the UI renders the analysis in a cleaner product format
Why This App Is Useful As A Template
Even if you do not want to build a calorie tracker, this app gives you a very useful pattern:- upload image
- run vision analysis
- force structured output
- store results
- show a polished result screen
- skincare analysis
- receipt parsing
- product identification
- packaging analysis
- inspection workflows
- any “upload image, get structured answer” product
Files To Customize
If you want to turn this into your own vision app, start with:app/(apps)/vision/toolConfig.tsapp/(apps)/vision/prompt.tsapp/(apps)/vision/schema.tsapp/(apps)/vision/components/*

