🍳 Foodlangalpha
Command line

foodlang β€” the recipe compiler in your terminal

A free, open-source CLI for working with .food and .food.yaml files. Validate recipes, classify them across the seven Foodlang levels, print summaries, and compile to 30+ targets. Output goes to stdout, so it composes with everything else in your shell.

Install

npm install -g @foodlang/cli
# …or run it without installing
npx @foodlang/cli --help

Commands

CommandDescription
validateValidate a recipe and classify its Foodlang levels
inspectPrint a human-readable summary of a recipe
compileCompile a recipe to a target format
targetsList available compiler targets and their fidelity

A quick tour

foodlang validate examples/simple-latte.food.yaml
foodlang inspect  examples/simple-latte.food.yaml
foodlang compile  examples/simple-latte.food.yaml --target schema-org
foodlang compile  examples/simple-latte.food.yaml --target qr
foodlang targets