Skip to content

chomphere/SafeEats

Repository files navigation

📖 SafeEats – Allergen Awareness App

SafeEats is an AI-powered application that helps users stay safe from allergens.
By scanning food labels in real time, it detects harmful ingredients, cross-contamination risks, and provides recommendations for safer alternatives.
Users also get personalized alerts based on their allergy profile.


🚀 Features

  • 🔐 User Authentication – Register/Login with JWT-based authentication
  • 📧 Welcome Email – Automatic professional welcome email sent after registration
  • 📷 OCR Ingredient Scanner – Extracts text from images of ingredient labels using Tesseract.js
  • ⚠️ Allergen Detection – Matches extracted ingredients against the user’s allergy profile
  • 🔔 Real-time Alerts – Warns users about harmful allergens and possible cross-contamination
  • 🧾 Safe Alternatives – Suggests safe food items from a curated database
  • 📱 Cross-platform – Built with React Native for the frontend, Node.js backend, and MongoDB database

🛠️ Technologies Used

🔹 Frontend

  • React Native (Expo) – Mobile app interface
  • Tailwind CSS + ShadCN/UI – Styling (for React Native web parts)
  • React Router – Navigation
  • Sonner – Toast notifications

🔹 Backend

  • Node.js + Express.js – REST API
  • MongoDB (Mongoose) – Database for users & allergy profiles
  • JWT (jsonwebtoken) – Authentication
  • bcryptjs – Password hashing
  • nodemailer – Sending welcome emails via Gmail App Passwords

🔹 AI & OCR

  • Tesseract.js – Optical Character Recognition (OCR) for ingredient extraction
  • Regex Filters – To improve ingredient text accuracy

🔹 Dev Tools

  • Postman – API testing
  • MongoDB Compass – Database GUI
  • Nodemon – Auto-restart backend during development

About

Allergy scanner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •