ETL steps are usually locked inside the tool they were written for.
Building blocks for your ETL
Here each step is a pipe: a block that declares what it takes, what it gives and how it is licensed, and that any OpenFlange runner can execute. This page is the directory sorted the way an ETL job is built: extract, transform, load.
Blocks in this build: 44. Standard pipes that ship with every runner: 28. Entries from the registry: 16.
How a block gets its stage: no inputs means a source (Extract), no outputs means a sink (Load), everything else is a Transform. The registry index carries no port list for 16 of its 16 entries; those are placed by their keywords and, when no keyword says source or sink, listed under Transform. Their manifests remain the authority.
Sources
Extract
Blocks with no inputs: they bring records into a pipeline.
Standard 3 ships with every conformant runner, not a registry entry
std:file-source
Source: an NDJSON file. Needs a filesystem.read grant covering `path`.
std:http-source
Source: NDJSON fetched with one HTTP GET. Needs a network grant for the URL's host:port.
std:stdin
Source: the runner's standard input as NDJSON.
From the registry 0 published by their authors; each links to its page in this directory
No registry source is published yet. Add one.
Steps in the middle
Transform
Blocks that take records in and give records out: clean, mask, cast, filter, aggregate, validate.
Standard 22 ships with every conformant runner, not a registry entry
std:arrow-to-ndjson
Converts Arrow record batches to records, refusing lossy values.
std:batch
Groups consecutive items into JSON arrays of `size` items.
std:cast
Converts members of each record to a JSON type, exactly or not at all.
std:csv-decode
Parses CSV text into records of strings.
std:csv-encode
Serialises records as CSV text.
std:distinct
Keeps the first item for every distinct key; bounded by maxKeys.
std:filter
Keeps the items for which a Starlark expression is truthy.
std:json-format
Serialises items as NDJSON text.
std:json-parse
Parses NDJSON text into items.
std:limit
Emits at most the first `count` items.
std:map
Emits the value of a Starlark expression for every item.
std:merge
Merges several streams into one, interleaved or concatenated.
std:ndjson-to-arrow
Converts records to Arrow record batches, refusing lossy values.
std:partition
Routes items to one of up to eight outputs by key.
std:rename
Renames members of each record.
std:select
Keeps only the listed members of each record.
std:skip
Discards the first `count` items.
std:split
Routes each item to `matched` or `unmatched` by a boolean expression.
std:unbatch
Flattens array items into their elements.
std:validate-schema
Routes items by validity against a JSON Schema.
std:window
Record-count tumbling, sliding and partitioned windows.
std:window-processing-time
Draft. Groups items by arrival time. Non-deterministic.
From the registry 16 published by their authors; each links to its page in this directory
openflange/classify-feedback-llmv0.1.0
Routes feedback to positive, negative or uncertain using a language model. Same contract as classify-feedback-rules. Ships with a deterministic mock provider.
openflange/classify-feedback-rulesv0.1.0
Routes feedback to positive, negative or uncertain with a deterministic decision tree. Same contract as classify-feedback-llm.
openflange/embeddingsv0.1.0
Turns the text of each record into a fixed-length unit vector. Ships with a deterministic mock provider (a feature-hashing embedder), not a model.
openflange/llm-extractv0.1.0
Extracts rating, topic and e-mail address from feedback text with a language model and validates every result against a JSON Schema. Ships with a deterministic mock provider.
openflange/llm-summarisev0.1.0
Summarises feedback records as streamed plain text. Ships with a deterministic mock provider.
openflange/lowercasev0.1.0
Lower-cases every string of a stream.
openflange/mask-emailv0.1.0
Masks the middle of the local part of e-mail addresses; routes invalid addresses to `rejected`.
openflange/normalize-and-mask-emailv0.1.0
Lower-cases e-mail addresses, then masks the middle of the local part.
openflange/order-totalsv0.1.0
Computes the total of each order from its line items and routes malformed orders to `rejected`.
openflange/parse-durationv0.1.0
Converts human-readable durations ("2 days", "1.5h") to milliseconds using the npm package `ms`.
openflange/r-summaryv0.1.0
Count, mean, median and standard deviation of the `value` member, computed by an ordinary R script.
openflange/running-totalv0.1.0
Adds a per-customer running total and an overall rank by amount to every order, using SQL analytical window functions in DuckDB.
openflange/slugifyv0.1.0
Turns each string into a lower-case, hyphen-separated URL slug.
openflange/total-by-customerv0.1.0
Number of orders and total amount per customer, computed by a DuckDB GROUP BY query.
openflange/validate-emailv0.1.0
Splits records into valid and rejected by their `email` member; optionally reports counts. A multi-port Go executable.
openflange/window-meanv0.1.0
Mean of the `value` member of each window, one output record per window frame, computed by a streaming R script.
Sinks
Load
Blocks with no outputs: they deliver records somewhere and end the flow.
Standard 3 ships with every conformant runner, not a registry entry
std:discard
Sink: consumes and discards its input.
std:file-sink
Sink: an NDJSON file. Needs a filesystem.write grant covering `path`.
std:stdout
Sink: the runner's standard output as NDJSON.
From the registry 0 published by their authors; each links to its page in this directory
No registry sink is published yet. Add one.
What is not here yet
Checked against the text of all 44 blocks in this build. Nothing mentions:
- PostgreSQL, MySQL and other SQL database servers
- S3 and other object storage
- data warehouses such as BigQuery, Snowflake, Redshift or ClickHouse
- Kafka and other message queues
If you have written one of these as a pipe, list it: one YAML record in a pull request, and it appears on this page at the next build.
Use a block
A block is one pipe: line in a pipeline file. A standard block is written std:<name>; a registry block is written <publisher>/<name>@<version range>. Connections are written once, on the step that consumes the data.
Extract, transform and load with three standard blocks:
spec: openflange.org/pipeline/v0.1
nodes:
orders: # extract
pipe: std:file-source
parameters:
path: ./data/orders.ndjson
paid: # transform
pipe: std:filter
inputs:
in: orders.outputs.out
parameters:
expr: 'item["status"] == "paid"'
save: # load
pipe: std:file-sink
inputs:
in: paid.outputs.out
parameters:
path: ./out/paid.ndjsonThe file source and the file sink touch the disk, so the run has to grant them the two directories:
openflange run pipeline.yaml --grant filesystem.read=./data --grant filesystem.write=./outAvailable — v0.0.1 (experimental) The openflange CLI is in release v0.0.1 (experimental).
A registry block is referenced the same way. For example, openflange/classify-feedback-llm:
nodes:
classify-feedback-llm:
pipe: openflange/classify-feedback-llm@0.1Port names are part of each block’s contract. Read them on the block’s page before you wire it, and let the lockfile pin the version you got.
The contract every block follows is the standard, seen through ETL. Building, testing and locking a pipeline from the command line is covered in the platform’s ETL guide.
What this is not
- Not a scheduler. Nothing here runs on a timer. A pipeline runs when you, your cron job or your orchestrator starts it.
- Not a warehouse. Blocks move and reshape records; they do not store them. Where the data lands is decided by the sink you choose.
- Not a catalogue of hundreds of connectors. This build lists 44 blocks: 28 standard and 16 from the registry. The lists above are all of them.
One problem, four entry points
ETL across OpenFlange
- openflange.org
The standard
An open standard for your own ETL blocks: each step is a pipe with a declared contract.
- openflange.com
The blocks
Building blocks for your ETL: extract, transform and load steps you can read before you run.
- openflange.dev
The platform
A platform for your ETL: build, test and lock a pipeline from the command line.
- datatug.app
DataTug
Visual builder and out-of-the-box runner for ETL. Pipelines in DataTug are in development.