Examples
Every example below is a complete .food.yaml file in
examples/.
Open any of them in the Playground to see its Cooklang,
Schema.org, robot action graph, and other exports rendered live.
Simple Latte
coffee grounds + hot water -> espresso, cold milk -> steamed milk + microfoam, then assembly into a latte. Demonstrates extraction, thermal
foaming, appliance targets, a four-node robot graph, and an S88 procedure.
Iced Vanilla Latte
Espresso built over ice with vanilla syrup and cold milk. Shows a cold-drink assembly transformation and an ice-availability check.
β iced-vanilla-latte.food.yaml
Matcha Latte
matcha powder + hot water -> whisked matcha base, plus steamed milk. Shows a
suspension transformation and a powder-based appliance mapping.
Grilled Cheese
bread + butter + cheese -> raw sandwich -> grilled cheese. A solid-food
example with assembly and griddling transformations.
Scrambled Eggs
eggs + salt -> egg mixture -> scrambled eggs. Shows mixing and coagulation
transformations with a low-heat check.
Tomato Sauce
onion:diced + garlic:minced + oil -> aromatics:softened, then
+ tomatoes -> sauce:simmered. Shows sautΓ©ing and reduction across a longer
S88 procedure.
What each example demonstrates
Each example carries:
- a readable ORF base recipe (
.food.yaml) - a Cooklang export (human)
- a Schema.org export (web)
- process transformations (
inputs:state -> outputs:state) - a robot action graph
Run them yourself:
pnpm foodlang compile examples/tomato-sauce.food.yaml --target foon
pnpm foodlang compile examples/grilled-cheese.food.yaml --target pddl