NutriScan AI helps users understand packaged food using:
- Barcode scan
- Product name search
- Image upload (label or barcode)
Then it returns health score, disease risk hints, processing level, and better alternatives.
- Fast product scan and lookup
- Health score and risk insights
- OCR-based image analysis
- AI ingredient explanation and chat
- Account login/signup
- Search history saved in SQLite
- Frontend: Next.js, React, Tailwind CSS
- Backend: FastAPI, SQLite
- ML: scikit-learn, XGBoost, EasyOCR
- Data source: Open Food Facts
nutriscan-ai/
backend/
frontend/
ml/
requirements.txt
start-dev.bat
git clone https://github.com/Shikhar28-web/NutriScan.git
cd NutriScan\nutriscan-ai
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
cd frontend
npm install
cd ..
start-dev.bat- Frontend: http://localhost:3000
- Backend API: http://127.0.0.1:8000
- Backend Docs: http://127.0.0.1:8000/docs
Create .env in nutriscan-ai/:
JWT_SECRET_KEY=replace-with-a-long-random-string
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:8000- POST /api/scan-product
- POST /api/analyze-food
- POST /api/analyze-image
- GET /api/recommendations
- POST /api/chat
- POST /api/auth/signup
- POST /api/auth/login
- POST /api/auth/logout
- GET /api/auth/me
- GET /api/auth/history
- POST /api/auth/history
See LICENSE.