Scan Smart. Eat Safe. Live Well.
SafeBite is a mobile-first HealthTech application built using React Native. It empowers users to scan food product barcodes/QR codes to detect ingredients that may be harmful based on their medical conditions or dietary restrictions — while also helping shopkeepers manage inventory with real-time expiry tracking.
In today’s fast-paced world, ensuring food safety is challenging for both consumers and shopkeepers:
- Consumers with allergies, diabetes, heart disease, or other conditions often lack the means to verify whether a food item is safe for them.
- Shopkeepers frequently overlook expiry management, causing waste and posing health risks.
According to WHO, anaphylaxis-related deaths are on the rise, with an increase from 0.51 to 0.76 per million annually between 2004 and now.
SafeBite solves this dual-sided problem by providing:
- 📷 Instant Barcode & QR Scanning.Scan any packaged food item to retrieve detailed product information in seconds.
- 🧠 AI-Powered Ingredient Analysis.SafeBite uses AI to analyze ingredients and generate a personalized summary based on the user's allergies, medical conditions, and dietary preferences.
⚠️ Smart Warnings for Harmful Substances.Automatically detects and highlights ingredients that may be harmful or incompatible with the user's health profile.- 👤 User Profiles with Health Preferences.Users can save their conditions (e.g., diabetes, gluten intolerance, allergies), enabling fully personalized health checks.
- 🧾 AI Recommendations. Suggests alternative or healthier food products based on the user's allergens, medical conditions, and dietary preferences.
- Track product expiry using barcodes.
- Get alerts before expiry to reduce wastage.
- View customer trends for smarter restocking.
- QR/Barcode Scanner: Scan food products instantly.
- Health Profile Setup: Add allergies, conditions, and diet.
- Harmful Ingredient Detection: Smart alerts based on profile.
- Expiry Tracking: Alerts for both consumers and sellers.
- AI Summary: Generates a product overview using AI, combining public health insights with user-specific analysis.
- Smart Recommendations: Displays a personalized list of safer, healthier food alternatives based on user profile.
- Scan at billing → auto-saves product to customer profile.
- Track most/least selling items.
- Get insights into inventory and expiry trends.
| Frontend | Backend | Tools/Infra |
|---|---|---|
| React Native (Expo) | Node.js + Express.js | Render (Backend Hosting) |
| NativeWind (Tailwind) | REST API Architecture | Supabase (User/Auth DB) |
| Expo Camera | dotenv, cors | Open Food Facts API |
- Barcode-Based Ingredient Parsing (OCR / API).
- Health Profile Matching (Rule-based + future ML).
- Expiry Notification System (Time-triggered alerts).
- Collaborative Filtering for Recommendations.
- Cloud-Backed Storage using Supabase.
- Personalized AI Summarization of scanned product information.
- Allergen-Based Product Recommendations using sorted health profiles + AI logic.
| Home Page | Scan Result 1 | Profile | Shop-Interface |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
SafeBite/
├── app/
│ ├── _layout.jsx # Root layout file for Expo Router
│ ├── index.jsx # Main entry screen
│ ├── global.css # Global styles
│ ├── (auth)/
│ │ ├── login.jsx # Login screen
│ │ ├── signup.jsx # Signup screen
│ │ └── onboarding.jsx # Onboarding flow
│ ├── (tabs)/
│ │ ├── home.jsx # Home tab screen
│ │ └── profile.jsx # Profile tab screen
│ ├── product/
│ │ └── [id].tsx # Dynamic product detail screen
│ └── scan/
│ └── index.tsx # Barcode/QR scanner screen
├── backend/
│ ├── server.js # Express.js server entry point
│ └── routes/ # Backend API routes
├── assets/ # Images, icons, Lottie animations, etc.
├── constants/ # Static values (e.g., colors, ingredient lists)
├── components/ # Reusable UI components
├── types/ # TypeScript types and interfacesgit clone https://github.com/Ajay-Krishna00/SafeBite
cd SafeBitenpm install
npx expo startcd backend
npm install
node server.jsOr deploy your backend to Render and replace the API URL.
-
Individuals with allergies or chronic conditions
-
Parents shopping for children
-
Health-conscious users
-
Shopkeepers wanting smarter stock control
-
🚨 Rising food-related illnesses and allergies
-
📱 Growing demand for food transparency
-
🔁 Need for sustainable grocery usage
-
👨👩👦 Families wanting healthier options
-
🛒 Local sellers improving digital literacy
-
Secure user profile and health data
-
Authentication powered by Supabase
-
🛍️ Shopkeeper Web Portal
-
🧠 AI-powered ingredient classification
-
🗣️ Text-to-speech & Accessibility Support
-
🥦 Nutrition-specific alerts (e.g., sugar count)
-
📅 Grocery planning assistant
-
🔒 Fully GDPR-compliant data handling
-
🥗 Recipe Generator
- Ajay Krishna D
- Abhay Murali M
- Thaariq Hassan R
MIT License — free for personal and educational use.
“Health isn’t just about what you eat — it’s about knowing what you’re about to eat. SafeBite gives you that power with a single scan.”
If you like this project, ⭐️ star it and share it with health-conscious friends!



