One-stop platform for smart, healthy food decisions powered by AI.

π Live Demo: SafeBite Platform π¦ Repository: github.com/aditya4232/SafeBite-V1
SafeBite empowers users to make informed dietary choices through AI-driven food analysis, smart product search, and health tracking tools. It combines real-time grocery and restaurant data, personalized dashboards, and Gemini-powered recommendations in a sleek, mobile-optimized platform.
- Personalized Dashboard β Health stats, food tracking, and insights
- Smart Grocery Search β Real-time data from Blinkit, Zepto, Instamart, BigBasket
- Food Delivery Integration β Health-based restaurant suggestions and menus
- Nutrition Analysis β Breakdowns + healthier alternatives via Gemini AI
- Recipe Recommendations β Based on dietary preferences & goals
- AI Nutrition Assistant β Gemini AI-powered chatbot for food & health tips
- Weekly Health Check-ins β Adaptive questionnaires for habit tracking
- Food Safety Metrics β OpenFoodFacts integration for clean label data
- HealthBox Tools β BMI, calorie, and macro calculators
- Scanner & Search β Barcode/label scan on mobile + name/image search on web
- Community Forum β Real-time discussions and product feedback
- Admin Panel β Admin-only analytics and user data insights
- Touch-friendly UI with tap targets β₯ 44px
- Native-feel interactions for Android
- Optimized animations for reduced motion preferences
- Works across screen sizes seamlessly
- Google Auth with Firebase
- 3-hour sessions for signed-in users
- 1-hour sessions for guest mode
- Protected routes with auto-logout on tab close
- React 18 + TypeScript
- TailwindCSS &
shadcn/ui
- Vite (build & bundling)
- React Router / React Query / Recharts
- Three.js (3D elements & UI flare)
- Flask (Python)
- Express.js microservices
- MongoDB Atlas + Atlas Search
- Firebase (Auth, Firestore, Storage)
- BeautifulSoup (Web scraping)
- Gemini AI β AI recommendations & food analysis
- CalorieNinja API β Food nutrition data
- FatSecret API β Scanning & food insights
- OpenFoodFacts API β Safety & product insights
π client/ # React frontend
π server/ # Flask + Express backend
π data/ # Static datasets, scraping outputs
π assets/ # Banners, logos, UI assets
.env.example # API keys template
README.md # You're here!
- Node.js v16+
- MongoDB Atlas account
- Firebase Project
- Python 3.9+
# Clone repo
git clone https://github.com/aditya4232/SafeBite-V1.git
cd SafeBite-V1
# Frontend setup
cd client
npm install
npm run dev
# Backend setup
cd ../server
pip install -r requirements.txt
python app.py
Create a .env
file from .env.example
with:
- Firebase credentials
- MongoDB URI
- Gemini/CalorieNinja/FatSecret/OpenFoodFacts API keys
- β Gemini AI integration for advanced nutrition analysis
- β Location-based grocery scraping (Blinkit, Zepto, etc.)
- β New food delivery modules with filtering options
- β Responsive design overhaul (mobile-first)
- β Admin dashboard with analytics
- β Community discussion threads + forum
π Full Update Log Β» (Optional: link to a changelog.md)
We welcome contributors!
# Fork & Clone
git checkout -b feature/your-feature-name
git commit -m "Added feature"
git push origin feature/your-feature-name
Then open a PR with a clear description of your feature/fix.
This project is licensed under the MIT License.
- React | TypeScript | Vite | Tailwind | Flask | MongoDB
- Firebase | Gemini AI | OpenFoodFacts | CalorieNinja
- Special thanks to open-source contributors everywhere β€οΈ