Different pipes. One standard.

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.

Extract, transform, load: how many blocks each stage hasExtract3 standard · 0 registryTransform22 standard · 16 registryLoad3 standard · 0 registry
Extract, transform, load: how many blocks each stage hasExtract3 standard · 0 registryTransform22 standard · 16 registryLoad3 standard · 0 registry
Counted from the registry index and the standard library when this page was built.

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`.

    standard
  • std:http-source

    Source: NDJSON fetched with one HTTP GET. Needs a network grant for the URL's host:port.

    standard
  • std:stdin

    Source: the runner's standard input as NDJSON.

    standard

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.

    standard
  • std:batch

    Groups consecutive items into JSON arrays of `size` items.

    standard
  • std:cast

    Converts members of each record to a JSON type, exactly or not at all.

    standard
  • std:csv-decode

    Parses CSV text into records of strings.

    standard
  • std:csv-encode

    Serialises records as CSV text.

    standard
  • std:distinct

    Keeps the first item for every distinct key; bounded by maxKeys.

    standard
  • std:filter

    Keeps the items for which a Starlark expression is truthy.

    standard
  • std:json-format

    Serialises items as NDJSON text.

    standard
  • std:json-parse

    Parses NDJSON text into items.

    standard
  • std:limit

    Emits at most the first `count` items.

    standard
  • std:map

    Emits the value of a Starlark expression for every item.

    standard
  • std:merge

    Merges several streams into one, interleaved or concatenated.

    standard
  • std:ndjson-to-arrow

    Converts records to Arrow record batches, refusing lossy values.

    standard
  • std:partition

    Routes items to one of up to eight outputs by key.

    standard
  • std:rename

    Renames members of each record.

    standard
  • std:select

    Keeps only the listed members of each record.

    standard
  • std:skip

    Discards the first `count` items.

    standard
  • std:split

    Routes each item to `matched` or `unmatched` by a boolean expression.

    standard
  • std:unbatch

    Flattens array items into their elements.

    standard
  • std:validate-schema

    Routes items by validity against a JSON Schema.

    standard
  • std:window

    Record-count tumbling, sliding and partitioned windows.

    standard
  • std:window-processing-time

    Draft. Groups items by arrival time. Non-deterministic.

    standard

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.

    registryPythonStarlark
  • openflange/classify-feedback-rulesv0.1.0

    Routes feedback to positive, negative or uncertain with a deterministic decision tree. Same contract as classify-feedback-llm.

    registryStarlark
  • 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.

    registryPython
  • 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.

    registryPython
  • openflange/llm-summarisev0.1.0

    Summarises feedback records as streamed plain text. Ships with a deterministic mock provider.

    registryPython
  • openflange/lowercasev0.1.0

    Lower-cases every string of a stream.

    registryStarlark
  • openflange/mask-emailv0.1.0

    Masks the middle of the local part of e-mail addresses; routes invalid addresses to `rejected`.

    registryStarlark
  • openflange/normalize-and-mask-emailv0.1.0

    Lower-cases e-mail addresses, then masks the middle of the local part.

    registryStarlark
  • openflange/order-totalsv0.1.0

    Computes the total of each order from its line items and routes malformed orders to `rejected`.

    registryStarlark
  • openflange/parse-durationv0.1.0

    Converts human-readable durations ("2 days", "1.5h") to milliseconds using the npm package `ms`.

    registryJavaScript
  • openflange/r-summaryv0.1.0

    Count, mean, median and standard deviation of the `value` member, computed by an ordinary R script.

    registryR
  • 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.

    registrySQL
  • openflange/slugifyv0.1.0

    Turns each string into a lower-case, hyphen-separated URL slug.

    registryJavaScript
  • openflange/total-by-customerv0.1.0

    Number of orders and total amount per customer, computed by a DuckDB GROUP BY query.

    registrySQL
  • openflange/validate-emailv0.1.0

    Splits records into valid and rejected by their `email` member; optionally reports counts. A multi-port Go executable.

    registryGo
  • 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.

    registryR

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.

    standard
  • std:file-sink

    Sink: an NDJSON file. Needs a filesystem.write grant covering `path`.

    standard
  • std:stdout

    Sink: the runner's standard output as NDJSON.

    standard

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.

Add a pipe Browse the standard library

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:

pipeline.yaml
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.ndjson

The file source and the file sink touch the disk, so the run has to grant them the two directories:

terminal
openflange run pipeline.yaml --grant filesystem.read=./data --grant filesystem.write=./out

Available — 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:

pipeline.yaml
nodes:
  classify-feedback-llm:
    pipe: openflange/classify-feedback-llm@0.1

Port 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.

    You are here
  • 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.

    In development