Skip to main content

AI Ingredient Scanner

A multi-agent AI system for analyzing food and cosmetic ingredient safety. Features a Streamlit web interface, React Native mobile app, and RESTful API powered by Google Gemini 2.0 Flash and LangGraph orchestration.

What It Doesโ€‹

The AI Ingredient Safety Analyzer helps users understand product ingredient safety by:

  • Parsing ingredient lists from any food or cosmetic product
  • Researching each ingredient via vector database and Google Search
  • Generating personalized safety reports based on user allergies and skin type
  • Providing actionable recommendations (SAFE / CAUTION / AVOID)

Key Featuresโ€‹

Core Capabilitiesโ€‹

  • โœ… Personalized safety analysis based on allergies and skin type
  • โœ… Beginner/Expert explanation modes
  • โœ… Allergen matching with prominent AVOID warnings
  • โœ… Quality validation with automatic retry loop
  • โœ… Session persistence across page refreshes

Mobile App (Phase 2)โ€‹

  • ๐Ÿ“ฑ Native camera integration for label scanning
  • ๐ŸŒ Multi-language OCR with auto-translation (9+ languages)
  • ๐ŸŒ“ Dark/Light theme toggle
  • ๐Ÿ“‹ Expandable ingredient cards with detailed safety metrics

Authentication & User Management (Phase 3)โ€‹

  • ๐Ÿ” Google Sign-In with Firebase Authentication
  • ๐Ÿ‘ค User profile with ProfileAvatar (photo or initial)
  • โ˜๏ธ PreferencesContext with Firestore sync (debounced)
  • ๐Ÿ‘ป Guest mode with AsyncStorage fallback
  • ๐Ÿ“œ In-app Privacy Policy modal
  • ๐Ÿ—‘๏ธ Collapsible Danger Zone for account deletion

Supported OCR Languagesโ€‹

English, French, Spanish, German, Italian, Korean, Japanese, Chinese, Portuguese

Architecture Previewโ€‹

Screenshotsโ€‹

Web InterfaceMobile App
Streamlit dashboard with safety reportsReact Native app with camera scanning

Repositoryโ€‹

๐Ÿ“ฆ GitHub: udaytamma/AiIngredientScanner

Version Historyโ€‹

VersionDescription
v3.1.0ProfileAvatar, PreferencesContext, Danger Zone, Privacy Modal
v3.0.0Firebase Authentication, user profiles, premium login UI
v2.0.0Mobile app, REST API, multi-language OCR
v1.0.0Initial release with Streamlit web interface