Skip to content

AI-powered food ingredient analyzer supporting Label Padhega India ๐Ÿ‡ฎ๐Ÿ‡ณ. Scan packaged food labels, get personalized health risk scores based on WHO/FSSAI data, detect misleading claims, and discover safer alternatives. Built with React, tRPC, and LLM technology.

Notifications You must be signed in to change notification settings

shivrajpatare/IngreScan-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

IngreScan-AI ๐Ÿฅ—๐Ÿ”

Smart Food Risk Analyzer - AI-powered food ingredient analysis platform supporting the Label Padhega India movement.

License: MIT Node.js React

๐ŸŒŸ Overview

IngreScan-AI empowers Indian consumers to make informed, healthy food choices by analyzing packaged food ingredients using AI technology. The platform combines cutting-edge technology with trusted health data from WHO and FSSAI to provide personalized risk assessments and safer alternatives.

Supporting the Label Padhega India Movement ๐Ÿ‡ฎ๐Ÿ‡ณ - Promoting food literacy and consumer awareness across India.

LinkSnap Preview

โœจ Features

๐Ÿ”ฌ Smart Ingredient Scanner

  • Text Input: Manually enter ingredient lists
  • Image Upload with OCR: Take photos of ingredient labels for automatic extraction
  • AI-Powered Analysis: Comprehensive health risk assessment using LLM technology

๐Ÿ“Š Risk Analysis Engine

  • Personalized Health Scores: Based on user profile, medical conditions, and dietary preferences
  • Scientific Backing: Data from WHO, FSSAI, and PubMed
  • Detailed Insights: Short-term, long-term health impacts, and side effects
  • Misleading Claims Detection: Identifies hidden sugars, salts, oils, and harmful additives

๐Ÿ‘ค Personal Health Profile

  • Track medical conditions and medications
  • BMI calculation and exercise frequency
  • Diet type preferences (veg, non-veg, vegan, keto, etc.)
  • Personalized risk assessments

๐Ÿ’ฌ AI Chatbot

  • Food-focused conversational AI
  • Context-aware responses based on scan results
  • Ingredient explanations and health impact Q&A
  • Safer alternative suggestions

๐Ÿ“ˆ Visual Analytics

  • Interactive charts (bar, pie, radar)
  • Ingredient breakdown visualization
  • Risk level indicators
  • Historical trend tracking

๐Ÿ“ Scan History & Reports

  • Access all previous scans
  • Saved analysis reports
  • Track food choices over time

๐Ÿš€ Tech Stack

Frontend

  • React 19 - Modern UI library
  • TypeScript - Type-safe development
  • Tailwind CSS 4 - Utility-first styling
  • Wouter - Lightweight routing
  • tRPC - End-to-end type-safe APIs
  • shadcn/ui - Beautiful component library

Backend

  • Node.js - Runtime environment
  • Express 4 - Web framework
  • tRPC 11 - Type-safe API layer
  • Drizzle ORM - Database toolkit
  • MySQL/TiDB - Database

AI & Services

  • LLM Integration - AI-powered analysis and chatbot
  • OCR - Image text extraction
  • S3 Storage - File storage

๐Ÿ“ฆ Installation

Prerequisites

  • Node.js 22.x or higher
  • pnpm package manager
  • MySQL/TiDB database

Setup

  1. Clone the repository
git clone https://github.com/shivrajpatare/IngreScan-AI.git
cd IngreScan-AI
  1. Install dependencies
pnpm install
  1. Set up environment variables
cp .env.example .env
# Edit .env with your configuration
  1. Run database migrations
pnpm db:push
  1. Start development server
pnpm dev

The application will be available at http://localhost:3000

๐Ÿ—‚๏ธ Project Structure

โ”œโ”€โ”€ client/                 # Frontend React application
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ pages/         # Page components
โ”‚   โ”‚   โ”œโ”€โ”€ components/    # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ lib/           # Utilities and tRPC client
โ”‚   โ”‚   โ””โ”€โ”€ index.css      # Global styles
โ”‚   โ””โ”€โ”€ public/            # Static assets
โ”œโ”€โ”€ server/                # Backend Express + tRPC
โ”‚   โ”œโ”€โ”€ routers.ts         # API endpoints
โ”‚   โ”œโ”€โ”€ db.ts              # Database queries
โ”‚   โ””โ”€โ”€ _core/             # Core server functionality
โ”œโ”€โ”€ drizzle/               # Database schema and migrations
โ”‚   โ””โ”€โ”€ schema.ts          # Database models
โ””โ”€โ”€ shared/                # Shared types and constants

๐ŸŽฏ Key Features Implementation

Ingredient Analysis

The platform uses AI to analyze ingredients against:

  • WHO food safety guidelines
  • FSSAI regulations
  • Scientific research from PubMed
  • User's personal health profile

Label Padhega India Support

  • Educational content about hidden ingredients
  • Misleading marketing claims detection
  • Special focus on children's products
  • Consumer awareness messaging

Personalization

  • Risk scores adjusted for individual health conditions
  • Dietary preference considerations
  • Medication interaction warnings
  • Age and BMI-based recommendations

๐Ÿ”’ Privacy & Security

  • Secure authentication with Manus OAuth
  • HTTPS encryption for all data transmission
  • User data stored securely in database
  • No sharing of personal health information
  • GDPR-style user rights and data control

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ง Contact

Project Maintainer: Shivraj Patare

๐Ÿ™ Acknowledgments

  • Label Padhega India Movement - Inspiring consumer awareness
  • Revant Himatsingka (@foodpharmer) - Food literacy advocacy
  • WHO & FSSAI - Trusted health data sources
  • Open Source Community - Amazing tools and libraries

๐ŸŒ Links


Made with โค๏ธ for a healthier India ๐Ÿ‡ฎ๐Ÿ‡ณ

"Know What You Eat - Make Informed Choices"

About

AI-powered food ingredient analyzer supporting Label Padhega India ๐Ÿ‡ฎ๐Ÿ‡ณ. Scan packaged food labels, get personalized health risk scores based on WHO/FSSAI data, detect misleading claims, and discover safer alternatives. Built with React, tRPC, and LLM technology.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published