Skip to content

Analyze products for health, safety, and regulatory compliance using web scraping, LLMs, and regional ingredient ban databases.

Notifications You must be signed in to change notification settings

maxhightower/llm-product-sku-safety-evaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸ§ͺ Ingredient Inspector

A locally hosted app to analyze the ingredients of consumer products for safety, health impact, and legal compliance across regions such as the EU, California (Prop 65), Canada, and more. It uses a combination of web scraping, LLM-powered evaluation, and regulatory datasets to provide a transparent, research-backed safety report.


🌟 Features

  • πŸ” Enter a product URL or name to analyze
  • 🧬 Extract ingredients via scraping or product page parsing
  • 🧠 Use LLMs or rules to evaluate the health and environmental impact
  • πŸ“œ Check legality of ingredients in different regions (e.g., EU bans, Prop 65)
  • πŸ“Š Generate a safety score with supporting data
  • πŸ–₯️ Designed for local use, no public hosting required

πŸš€ Getting Started

1. Clone the Repo

git clone https://github.com/your-username/ingredient-inspector.git
cd ingredient-inspector

Install Dependencies

pip install -r requirements.txt

Run App Locally

streamlit run app/main.py

Project Structure

ingredient-inspector/ β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ main.py # Streamlit UI β”‚ β”œβ”€β”€ scraper.py # Web scraping logic β”‚ β”œβ”€β”€ ingredient_extractor.py # Ingredient parser β”‚ β”œβ”€β”€ regulatory_checker.py # Region-based regulation checks β”‚ β”œβ”€β”€ evaluator.py # LLM or rules-based evaluation β”‚ └── utils.py # Shared helpers β”œβ”€β”€ data/ β”‚ └── regulations/ # CSVs or JSONs for laws & ingredient bans β”œβ”€β”€ models/ β”‚ └── prompts/ # Prompt templates for LLM evaluation β”œβ”€β”€ requirements.txt β”œβ”€β”€ README.md └── .gitignore

About

Analyze products for health, safety, and regulatory compliance using web scraping, LLMs, and regional ingredient ban databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published