Recued
Menu
← Back to recipes

What's in this product?

by recued-core v1 9 views

Use “What's in this product” in Recued. Look up a packaged food by barcode — ingredients, declared allergens, what it may contain from shared equipment, Nutri-Score and processing group.

How it works 23 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (23 steps)
code trim
Trim whitespace from setting barcode
code_required template
Generate text from a template
fail: step.code is_empty
lookup ?
defaults defaults
Apply defaults
found_required template
Generate text from a template
fail: step.status not_equal 1
defaults_2 defaults
Apply defaults
allergen_count count
Count items in allergens
trace_count count
Count items in traces
allergen_text join
Join items with ", "
allergens_clean replace
Replace text in allergen text
trace_text join
Join items with ", "
traces_clean replace
Replace text in trace text
states default
Apply default
states_text join
Join items with " "
ingredients_done compare
Check if states text contains en:ingredients-completed
has_allergens ternary
Apply ternary
done_flag ternary
Apply ternary
allergen_bucket math
Calculate: {{step.has_allergens}} + {{step.done_flag}}
allergen_line switch
Map allergen bucket to one of: 0, 1, 2, 3
card to_summary
Format results as a summary card
provenance template
Generate text from a template
traces_note template
Generate text from a template
skip: step.trace_count equal 0
incomplete_note template
Generate text from a template
skip: step.ingredients_done equal true
Settings 2 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

barcode setting =
open food facts setting =

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Read your Open_food_facts connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

open-food-facts open-food-factsfoodbarcodeingredientsallergensnutritionread-onlypack:open-food-facts

Details

23 steps 2 configurable settings recipe_id: check-product-open-food-facts