About LabelLens
LabelLens explains the labels of packaged foods sold in the United States. Search for a product by name, brand or barcode to see its nutrition, additives and ingredients, compare two products side by side, look up any additive in the additive guide, or look across all of them on the dashboard. Set your own rules, and every product says which it meets.
LabelLens was built by Aditya Kanbargi. The pipeline, the architecture, the evals and the cost are on How it’s built.
Where the data comes from
Every product comes from Open Food Facts, a database of food products built by volunteers. LabelLens downloads its full export (one file, refreshed nightly) and keeps the products tagged as sold in the United States. It does not scrape the Open Food Facts website or API.
Each page shows the date of the snapshot it uses. Product photos are linked from Open Food Facts, not copied, apart from the four sample label photos on the Read a label page, which are credited there (CC BY-SA).
How the data is cleaned
- A barcode listed twice keeps its most recently edited version.
- A nutrient value that cannot be true (below zero, more than 100 g per 100 g, or more than 900 kcal per 100 g) is left out. The rest of that product’s label stays.
- Nutri-Score values such as “unknown” and “not applicable” are treated as no grade.
- Categories come from the product’s Open Food Facts tags, mapped to 26 categories. Where the tags give none, an AI model suggests one from the product’s name, brand and ingredients, and the product page says so. Its accuracy against 200 products labelled by a second, larger AI model is in the eval results.
- Explainers for additives and common ingredients are written by an AI model once each, from Open Food Facts’ taxonomy where it has one. They say what a substance is and why it is used, never whether it is good or bad, and they are marked as AI-written.
- Only ingredients and additives that Open Food Facts recognises are listed.
Every count is in the pipeline run reports, and the code is on GitHub.
Ask a question
On Ask a question, an AI agent built on Anthropic’s Claude answers in plain English. It looks things up step by step, in the product tables, the food graph and the additive explainers, and every answer cites the products it used. It does not give medical or dietary advice.
It is a free demo, so it has limits: 10 questions an hour from each visitor, and about $0.50 of model use a day for everyone. Past that, the example questions show recorded runs until the next day (UTC). A question that takes longer than 45 seconds stops with a message.
On 50 test questions with known answers, the agent scored 0.98 for facts against 0.26 for a version that could only search the explainers. The full results list every question.
Use it in Claude
LabelLens is also a connector for Claude. Claude can search products, show a label card, find better swaps and explain an additive from inside a conversation.
In Claude, add a custom connector with this address. It needs no sign-in.
https://labellens-api-1036759996795.us-east4.run.app/mcp
The connector receives only what Claude sends to its tools, such as a search term or a barcode. Your conversation stays between you and Claude.
How it’s measured
Each number below comes from an eval in the repository, run against the live data. The file says how it was measured, when, and what it cost.
- Ask agent
- Fact score 0.98 on 43 answerable questions, against 0.26 for an explainer-only baseline. All 5 requests for advice refused.
- Category suggestions
- 90.0% of 200 products put in the right category (target 90%). The labels were written by an AI model, not a person.
- Claude connector tool choice
- Claude picked the right tool with the right arguments for 29 of 30 requests (target 90%).
- Search speed
- 95% of searches answered within 175 ms on the public API (target 300 ms).
- Graph and swaps speed
- 95% of graph neighbourhoods within 406 ms and swap lists within 233 ms on the public API (target 1 s).
- Page speed
- Lighthouse performance 100 on home, 98 on a product page and 100 on the dashboard (target 90).
- Reading labels
- 98% of nutrient values read correctly from 30 real label photos (95–99%), checked against the photos; every value right on 85% of labels.
- Waking up
- After a quiet spell, the first request takes 7 to 10 s while the API starts (it was 22.6 s); the next ones take under 0.1 s. A ping every 5 minutes now keeps it awake most of the time.
Read a label from a photo
On Read a label, you photograph a pack’s ingredients or nutrition panel and the same Claude model reads what is printed. LabelLens then does the arithmetic itself (per serving to per 100 g, sodium to salt), explains the additives it knows, and looks for the product and for better-graded ones like it. It works for packs LabelLens has never seen, in any language the model can read.
On 30 real label photos from Open Food Facts, checked against the photos themselves, it read 98% of nutrient values correctly (95–99%) and got every value right on 85% of labels (68–94%). The full results list every miss. It can still misread a blurry or curved label, so check what it shows against the pack. 10 labels an hour from each visitor, within the same daily budget as questions.
Your photos go to Anthropic to be read, and LabelLens does not keep them. What was read (the text, not the photo) is kept in the trace log like a question is.
What happens to your questions
- Your question goes to Anthropic, whose model writes the answer. When the agent searches the additive explainers, it also goes to Voyage AI, which turns it into numbers to find the closest ones.
- The question, the agent’s steps and the answer are kept in the trace log (Langfuse), so mistakes can be found and fixed. On Langfuse’s free plan they can be viewed for 30 days and are not deleted after that.
- LabelLens’s own database keeps no question text. For each question it records the time, the cost, how long it took, and a keyed hash of your network address, which enforces the hourly limit and cannot be read back as the address without the key.
- There are no accounts, no cookies for tracking and no ads.
So don’t put names, health details or anything private in a question.
What LabelLens does not do
LabelLens shows what is on a label and what Open Food Facts records about it. It does not give medical or dietary advice, and a grade is not a judgement about whether a food is right for you. For that, ask a doctor or a registered dietitian.
Open Food Facts is edited by volunteers, so a label here can be incomplete or out of date. Check the package in your hand.
Licence
Contains data from Open Food Facts, available under the Open Database License. Individual contents of the database are available under the Database Contents License, and product images under CC BY-SA.
The tables LabelLens builds from the database are a derived database and remain under the Open Database License.