openfoodfacts-shared — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited openfoodfacts-shared (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Foundation skill for the openfoodfacts CLI. Read this before using any other openfoodfacts skill.
The Open Food Facts API is fully public. No API key, no login, no environment variables needed.
Always use --json to ensure compact, parseable output:
openfoodfacts --json <command>Use --fields to reduce output to only the fields you need (saves tokens):
openfoodfacts --json --fields product_name,brands,nutriscore_grade products get 3017624010701{"error": "message"}), exit code 1Search commands without --all return a paginated envelope:
{"count": 4821, "page": 1, "page_count": 242, "page_size": 20, "skip": 0, "products": [...]}With --all, they return a flat array of all products across all pages:
[{"code": "...", "product_name": "..."}, ...]Single product lookups return the product object directly (no envelope).
Always check exit code. On failure, parse stderr for the error message:
result=$(openfoodfacts --json products get 0000000000000 2>err.tmp) || {
error=$(cat err.tmp)
# handle error
}| Command | Limit |
|---|---|
products get | 100 req/min |
products search | 10 req/min |
facets list | 2 req/min |
If you exceed limits, the CLI exits 1 with {"error": "rate limit exceeded"}.
openfoodfacts products get <barcode> · openfoodfacts products search [flags...]openfoodfacts facets list <type>~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.