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.
- π 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
git clone https://github.com/your-username/ingredient-inspector.git
cd ingredient-inspector
pip install -r requirements.txt
streamlit run app/main.py
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