AI-powered food label and ingredient analyzer that helps users understand packaged food products by scanning labels and receiving scientifically grounded insights.
- 📸 Scan and analyze food labels
- 🧠 AI-powered ingredient interpretation
⚠️ Detect additives, preservatives, and emulsifiers- 🥦 Explain nutritional impact of ingredients
- 💬 Context-aware AI chat for follow-up questions
- 📱 Responsive and mobile-friendly UI
- ⚡ Fast analysis with structured JSON responses
Add your deployed application link here:
Frontend: https://github.com/surajgupt01/NutriScan-AI
Backend: https://github.com/surajgupt01/PulseBackend
- Next.js 15
- React
- TypeScript
- Tailwind CSS
- Framer Motion
- Axios
- FastAPI
- Python
- Pydantic
- Uvicorn
- Google Gemma API (Hugging Face)
- Structured JSON Outputs
User Uploads Image
│
▼
Next.js Frontend
│
▼
FastAPI Backend
│
▼
LLM API
│
▼
Ingredient Analysis
│
▼
Interactive Chat UI
label-scan-ai/
│
├── frontend/
│ ├── app/
│ ├── components/
│ ├── lib/
│ ├── types/
│ └── public/
│
├── backend/
│ ├── routes/
│ ├── services/
│ ├── models/
│ ├── prompts/
│ └── main.py
│
└── README.md
git clone https://github.com/surajgupt01/NutriScan-AIcd frontend
npm install
npm run devFrontend runs on:
http://localhost:3000
cd backend
python -m venv venv
# Linux / Mac
source venv/bin/activate
# Windows
venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reloadBackend runs on:
http://localhost:8000
NEXT_PUBLIC_API_URL=http://localhost:8000/analyzeHT_TOEKN=your_api_key- User uploads a food label image.
- The image is processed by the backend.
- Gemini analyzes ingredients and additives.
- Structured JSON is generated.
- The frontend renders interactive blocks.
- Users can continue chatting with context.
Add screenshots here:


- Streaming responses
- User authentication
- Scan history
- Barcode scanner integration
- Personalized dietary recommendations
- Ingredient safety scoring
- Multi-language support
Contributions are welcome!
git checkout -b feature/my-feature
git commit -m "Add new feature"
git push origin feature/my-featureOpen a Pull Request 🚀
Suraj Gupta
If you found this project useful, please give it a ⭐ on GitHub!