๐Ÿณ Foodlang
ORF-compatible Works offline Open source

Recipes you write by hand. Machines can run.

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

iced-vanilla-latte.food
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 }
  }
}

One Recipe, Every Layer

Foodlang isn't just a format โ€” it's a compiler from a single source to the human, web, appliance, robot, and industrial layers.

The key idea

Food is transformations

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 philosophy
coffee grounds + hot water  โ†’  espresso
cold milk                   โ†’  steamed milk + microfoam
onion:whole  โ†’  onion:diced  โ†’  onion:sautรฉed
dough:raw                   โ†’  bread:baked

Compile to Eleven Targets

Every target declares its fidelity, so you always know whether the output is directly usable, a mapping, or illustrative. Foodlang refuses to overpromise.

Schema.org JSON-LD

executable

Web-ready recipe structured data.

ORF-clean YAML

executable

Base recipe with X-foodlang stripped.

OPC UA mapping

mapping

Recipe-parameter writes + StartRecipe.

MQTT payload

mapping

Topic + command payload.

Robot action graph

mapping

DAG of dependent actions.

ISA-88 / S88

mapping

Operations and ordered phases.

Cooklang

illustrative

Human-friendly, lossy export.

PDDL

illustrative

Planner-compatible domain + problem.

FOON

illustrative

Functional object-oriented network.

Home Connect

illustrative

Appliance program mapping.

Matter

illustrative

Future-compatible device mapping.

Honest by Design

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.

0readable
1parseable
2structured ingredients
3process-aware
4appliance-mappable
5robot-plannable
6industrial-mappable

How validation works โ†’

Ready to make your recipes executable?

Open the playground and watch a recipe compile to every layer โ€” entirely in your browser.

Open the Playground Read the Docs