Skip to content

Barcode lookup in Open Food Facts, plus scanner feedback loop - #8

Merged
YarinQuapi merged 1 commit into
masterfrom
scanner-feedback-loop
Nov 12, 2026
Merged

YarinQuapi merged 1 commit into
masterfrom
scanner-feedback-loop

Conversation

@YarinQuapi

Copy link
Copy Markdown
Owner

Summary

  • Unknown barcodes are now looked up in Open Food Facts. The barcode endpoint returns status: "external" with a suggestion (per 100 g/ml, sodium in mg); nothing is saved automatically.
  • Web and mobile open the food form pre-filled for review, with a "please check" note (EN/HE).
  • Lookup is best effort: 4s timeout, any failure means "not found".
  • Branch also carries earlier work: food catalog, nutrition label scanner, bad-scan reports.

Testing

  • API tests pass (49), web tsc and Flutter analyze clean.
  • To try: deploy the API, then look up a barcode not in the catalog (e.g. 3017620422003) on web or mobile.
  • Not yet verified against the live Open Food Facts API.

🤖 Generated with Claude Code

When a barcode is not in the catalog, the barcode endpoint asks Open Food
Facts and returns a prefill suggestion (status "external"). Web and mobile
open the food form pre-filled for review; nothing is saved automatically.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@YarinQuapi
YarinQuapi merged commit 68edffd into master Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant