Foodlang is a tiny, readable recipe language. Write a recipe like a little script โ then compile it to coffee machines, robots, industrial systems, and the web.
No account required ยท Runs in your browser ยท MIT licensed
drink "Iced Vanilla Latte" {
ingredients {
coffee 18 g
vanilla_syrup 20 ml
milk 10 oz
ice 140 g
}
phases {
preinfuse coffee { pressure 2 bar; flow 2 mlps; time 6 s }
brew coffee to shot { pressure 9 bar; stop 40 g; max 28 s }
build cup { vanilla_syrup; shot; stir 5 s; ice; milk }
}
}
Foodlang isn't just a format โ it's a compiler from a single source to the human, web, appliance, robot, and industrial layers.
Export a friendly, app-compatible Cooklang version for cooks to read and follow.
Cooklang export โPublish recipes as Schema.org Recipe JSON-LD for rich results on the web.
Web publishing โMap to OPC UA, Home Connect, MQTT, and Matter โ payloads ready for your driver.
Appliance automation โGenerate action graphs, PDDL domains, and FOON functional units for planners.
Robot planning โExpress recipes as ISA-88/S88-style batch procedures of operations and phases.
Industrial batch โValidate, inspect, and compile from the terminal or embed the TypeScript library.
Explore the CLI โNormal recipes describe ingredients and human steps. Foodlang adds the missing layer โ culinary transformations โ that makes a recipe executable.
Typed inputs in known states become typed outputs in new states. That transformation graph is the bridge between a human recipe and a machine that can run it.
Read the philosophycoffee grounds + hot water โ espresso
cold milk โ steamed milk + microfoam
onion:whole โ onion:diced โ onion:sautรฉed
dough:raw โ bread:baked
Every target declares its fidelity, so you always know whether the output is directly usable, a mapping, or illustrative. Foodlang refuses to overpromise.
Web-ready recipe structured data.
Base recipe with X-foodlang stripped.
Recipe-parameter writes + StartRecipe.
Topic + command payload.
DAG of dependent actions.
Operations and ordered phases.
Human-friendly, lossy export.
Planner-compatible domain + problem.
Functional object-oriented network.
Appliance program mapping.
Future-compatible device mapping.
Foodlang grades every recipe across seven levels โ from human-readable to industrial โ reporting pass, partial, or fail, never pretending a mapping is a running machine.
Open the playground and watch a recipe compile to every layer โ entirely in your browser.