Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Official backend for Product-safety (temporary name), a food product analysis tool that fetches product data from OpenFoodFacts and powers chat-based health, diet, and allergy insights with an LLM.

Notifications You must be signed in to change notification settings

segfaultscribe/product-safety

Repository files navigation

Product-safety (temporary name)

alt text Product-safety is a food product analysis tool.

This is the official backend repository. The frontend is bare HTML, CSS, JS.

It lets users look up products by barcode or name, fetches details from OpenFoodFacts, and uses an LLM to answer product-related questions like:

  • "Is this safe if I have an allergy?"
  • "Can I eat this while bodybuilding?"
  • "How often can I consume this and stay in shape?"

Features

  • 🔎 Lookup products by barcode
  • 📦 Get key nutritional, allergen, and ingredient info
  • 💬 Chat-like interface powered by LLM (powered by groq) for product Q&A

Tech Stack

  • Backend: FastAPI (Python)
  • DB: No DB, just Redis!
  • APIs: OpenFoodFacts, LLM provider (e.g., OpenAI)

Run Locally

# clone repo
git clone https://github.com/segfaultscribe/product-safety.git
cd product-safety

# create virtual environment
python -m venv venv
source venv/bin/activate   # on Windows: venv\Scripts\activate

# install dependencies
pip install -r requirements.txt

# run server
uvicorn main:app --reload

About

Official backend for Product-safety (temporary name), a food product analysis tool that fetches product data from OpenFoodFacts and powers chat-based health, diet, and allergy insights with an LLM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages