Recipes
Each recipe solves one job you would otherwise script by hand. Every file is printed in full, every command was run with the real CLI, and every output is the recorded one.
A recipe is a small directory: your data, a manifest (OPENFLANGE.md) that declares inputs and outputs, usually a pipeline.yaml that connects pipes, and a portable test. Copy the files, run the commands, compare your output with the one on the page.
A pipe is a data-processing step with declared inputs and outputs; a pipeline connects pipes.
go install github.com/openflange/openflange-go/cmd/openflange@v0.0.1Run here, not invented
The files and transcripts of all 7 recipes are checked in next to the site, and the pages are generated from them. They were run with openflange 0.0.1 (go1.27.1 linux/amd64) built from openflange-go commit 11cf8cc5378d. Where something could not be run on that machine (DuckDB, R, a paid model API, Parquet), the recipe says so instead of showing output.
- How do I turn a messy CSV file into clean, typed NDJSON?
CSV to cleaned NDJSON
A pipeline of four standard pipes: decode the CSV, trim and normalise every row, validate it, convert strings to numbers and booleans. Bad rows go to a second file with the reason. Parquet is not produced here; the page says what is.
- How do I join the result of a SQL query with rows from a CSV file?
Join a database query with a CSV
The CSV is streamed row by row; a small Python pipe runs the SQL query once against a SQLite database and adds the matching row to every record. Orders without a customer go to a second output. Run with SQLite because DuckDB is not installed where these pages are verified.
- How do I remove duplicate records and reject the invalid ones?
Deduplicate and validate records
Three standard pipes: normalise the key, keep the first record per key with std:distinct, route every record by a JSON Schema with std:validate-schema. Invalid records come out on their own output with the reasons.
- How do I call an API for every row without making one request per row?
Call an API for every row, in batches
A Python pipe in batch mode: the runner hands it up to 100 records at a time and it makes one HTTP request per batch. The API here is a local stand-in script, so the recipe runs offline; eight rows cost one request, or three with a batch size of three.
- How do I summarise rows of text with an LLM in a pipeline?
Summarise rows with an LLM
A model call is a pipe like any other: records in, text out, permissions, tests. The transcript on this page uses the deterministic mock provider from the openflange-go repository: no network, no key, no cost. The real-provider variant is quoted and marked as not run.
- How do I compute a moving average over a stream of records?
Moving averages and windows
std:window groups the readings of each sensor into sliding windows of three records, and a short Starlark pipe turns every window into its mean. Runs inside the runner with no extra runtime; the R version is linked.
- How do I mask e-mail addresses before I export or share data?
Mask personal data before export
Read a customers CSV and export only the addresses, lower-cased and with the middle of the name masked. Uses the lowercase and mask-email pipes of the openflange-go repository unchanged. Values that are not addresses are routed to a second output, never masked and never dropped.
When a recipe is more than you need
OpenFlange is not a scheduler, not a warehouse and not a catalogue of hundreds of connectors. A one-off conversion of one clean file is often a single line in a tool you already have. A recipe pays off when the job will run again, when bad rows must go somewhere visible, or when someone else has to trust and test it.