Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

Your R script, your SQL query and your Python service can’t be plugged together without glue code.

Different pipes. One standard.

OpenFlange is an open standard for a data-processing step: what it takes, what it gives, and how to run it. Steps written in any language connect directly, the way pipes with the same flange bolt together.

Draft v0.1 · Experimental Expect breaking changes before 1.0.

Pipes written in R, Go, SQL, Python, an HTTP service and an LLM all connect through one standard flange and continue as a single pipeline: lowercase, then mask, with two outputs.RGoSQLPythonHTTPLLMone contractOPENFLANGE.mdlowercasemaskmaskednormalized
Pipes written in R, Go, SQL, Python, an HTTP service and an LLM all connect through one standard flange and continue as a single pipeline: lowercase, then mask, with two outputs.RGoSQLPythonHTTPLLMone contractOPENFLANGE.mdlowercasemaskmaskednormalized

In one sentence

What OpenFlange is

OpenFlange is an open standard for describing, connecting and running data-processing steps, called pipes: each pipe declares its inputs, outputs and parameters, so the same step runs from a terminal, over HTTP, inside a query or on a visual canvas.

More plain facts: frequently asked questions, how OpenFlange differs from Airflow, dbt, Unix pipes, Singer, Airbyte and Beam, and the glossary of terms.

The problem

Data steps don’t fit together.

Not because the work is hard, but because every tool invents its own way to say “this is what I take, this is what I give”.

  • Every team rewrites the same adapters.

    An R script, a SQL query and a Python service each speak their own dialect of files, flags and JSON. Joining them is glue code nobody wants to own.

    One contract for a step, whatever it is written in.

  • A transformation is locked into the tool it was written for.

    Write it for the scheduler. Rewrite it for the SQL project. Rewrite it again for the notebook.

    Write the step once; any tool that implements the standard can run it.

  • Nobody knows what a step expects until it breaks.

    No declared inputs, no declared outputs, no schema. The documentation is the stack trace.

    Named ports with schemas, checked before anything runs.

  • You cannot safely run someone else’s step.

    It starts with your environment, your credentials and your network, and you find out afterwards what it used.

    A step declares what it needs. It gets only what you grant.

Before and after

Replace the glue with a contract.

The same two steps, connected twice.

Glue code

Each connection is a custom adapter.

Temporary files, format converters, and a comment where the contract should be.

glue.sh
# glue.sh — works until someone renames a column
Rscript clean.R < raw.csv > /tmp/clean.csv
python3 csv_to_json.py /tmp/clean.csv > /tmp/clean.json  # adapter 1
python3 call_service.py /tmp/clean.json > /tmp/out.json  # adapter 2
# What does call_service.py return? Read the source.
# What if it fails halfway? Check /tmp by hand.

With OpenFlange

Each connection is one line.

Both steps declare their ports, so the pipeline only says which output feeds which input. It is checked before it runs.

pipeline.yaml
nodes:
  clean:
    pipe: ./pipes/clean            # R script
    inputs:
      records: {from: inputs.raw}
  enrich:
    pipe: ./pipes/enrich           # Python service over HTTP
    inputs:
      records: {from: clean.outputs.records}
outputs:
  records: {from: enrich.outputs.records}

Use case: ETL

ETL blocks that outlive the tool.

An extract, transform or load step is usually tied to one tool’s plugin API, runtime and configuration format. Described as a pipe, the step keeps its contract wherever it runs.

  1. Extract

    A source: outputs and no inputs. The file or address it reads is a declared parameter.

  2. Transform

    Records in, records out. Records it rejects can leave through a separate output.

  3. Load

    A sink: inputs and no outputs. It writes only where you grant it access.

An open standard for your own ETL blocks

One small example

Mask an email address.

Two steps: make it lowercase, then hide the middle. This example is used everywhere on these sites, so you only have to learn it once.

Two pipes with named ports. The input email goes into lowercase (port text to port text), then into mask-email (port email to port email). Alice@Example.COM becomes alice@example.com, then a***e@example.com."Alice@Example.COM""alice@example.com""a***e@example.com"input: emaillowercasetexttextmask-emailemailemailoutput: email
Two pipes with named ports. The input email goes into lowercase (port text to port text), then into mask-email (port email to port email). Alice@Example.COM becomes alice@example.com, then a***e@example.com."Alice@Example.COM""alice@example.com""a***e@example.com"input: emaillowercasetexttextmask-emailemailemailoutput: email
Two small pipes. Each one names its ports, so connecting them is a line of YAML rather than glue code.
Input
"Alice@Example.COM"
pipeline.yaml — the whole pipeline
spec: openflange.org/pipeline/v0.1
nodes:
  lowercase:
    pipe: ./pipes/lowercase
    inputs:
      text: {from: inputs.email}
  mask:
    pipe: ./pipes/mask-email
    inputs:
      email: {from: lowercase.outputs.text}
    parameters:
      character: "*"
outputs:
  email: {from: mask.outputs.email}
Output
"a***e@example.com"

Need the lowercase value too? Add a second consumer.

Two things read lowercase.outputs.text. The step still runs once, and both consumers receive every record. No copy step, no temporary file. See the branching example.

Branching: the lowercase pipe runs once and its text output is consumed twice — by mask-email, which feeds the output named masked, and directly by the output named normalized.input: emaillowercaseruns oncetextmask-emailemailemailoutput: maskedoutput: normalized
Branching: the lowercase pipe runs once and its text output is consumed twice — by mask-email, which feeds the output named masked, and directly by the output named normalized.input: emaillowercaseruns oncetextmask-emailemailemailoutput:maskedoutput:normalized
Two consumers reference the same output. That is a broadcast: lowercase runs once, and both get every record.

What it standardises

Small specifications, versioned separately.

Each one fixes one thing. Adopt the pipe contract alone, or all of them.

  • Pipe specification

    Defines the contract for one data-processing step: a Markdown file, OPENFLANGE.md, whose header lists the step's named inputs and outputs, parameters, how to run it and what it is allowed to touch. A runner reads that header to check and run the step; people read the rest as documentation.

    Maturity: Experimentalv0.1
  • Pipeline specification

    Defines how steps are connected into a graph: each input names the output it reads from, in a file called pipeline.yaml. It also defines the validation errors, the execution plan and what a runner must guarantee about ordering, backpressure and failure.

    Maturity: Experimentalv0.1
  • CLI protocol

    Defines how a local program acts as a pipe: one input on stdin and one output on stdout in the simple case, and named local HTTP endpoints when there are more ports. It also defines the commands of the standalone openflange runner.

    Maturity: Experimentalv0.1
  • HTTP Pipe Protocol

    Defines how a remote service acts as a pipe: a client discovers the contract, opens a session, then sends inputs and reads outputs as ordinary concurrent HTTP requests. The session status, not the response code, is the authoritative outcome.

    Maturity: Experimentalv0.1
  • Registry format

    Defines how pipes are listed and found: one YAML entry per pipe in a Git repository, publisher namespaces tied to GitHub accounts, and generated JSON indexes that any tool can read. No central registry is required; a private registry uses the same format.

    Maturity: Experimentalv0.1
  • Standard library

    Defines the portable building blocks every runner can provide under the std: prefix, such as filter, map, merge, window, CSV and JSON conversion, sources and sinks. Each one has fixed ports and parameters so that a pipeline using them behaves the same everywhere.

    Maturity: Experimentalv0.1
  • Portable tests

    Defines a test file that travels with a pipe: inputs, parameters and the outputs expected on each port, with tolerances and structural assertions for results that are not exact. Any runner can execute these files, which is also how conformance is checked.

    Maturity: Experimentalv0.1
  • Lockfile

    Defines openflange.lock.yaml, which pins every pipe reference to an exact location, version, revision and integrity hash. A locked run refuses to start if anything differs, so the same pipeline does the same thing tomorrow.

    Maturity: Experimentalv0.1

Want to see what the standard library contains? Browse the standard pipes with examples on openflange.dev.

What it deliberately is not

  • Not a scheduler

    It does not decide when things run. Call it from cron, CI, or the scheduler you already have.

  • Not a database

    It does not store your data. Streams go in and come out; where they rest is your choice.

  • Not a workflow engine

    No retries-with-backoff, approvals or control flow. “Workflow” is deliberately reserved for later.

  • Not a platform you must join

    No account, no central registry, no hosted service. A folder of files is a complete, valid project.

Same contract, anywhere

One step. Four places to run it.

The email pipeline above does not change. Only the caller does.

  • From a terminal

    A standalone command-line runner. No server, no account.

    bash
    printf '%s\n' '"Alice@Example.COM"' \
      | openflange run ./pipeline.yaml
    Available — v0.0.1 (experimental)CLI reference
  • Over HTTP

    Serve the same pipeline; any HTTP client streams records in and out.

    bash
    openflange serve ./pipeline.yaml
    # POST …/sessions, POST input, GET output
    Available — v0.0.1 (experimental)HTTP Pipe Protocol
  • On a canvas, in DataTug

    DataTug is the tool to build pipelines visually and run them with your databases as sources. It is the first visual implementation of OpenFlange, not a requirement: the standard works without it, and any tool can implement it.

    In development
  • Inside a query (TugQL)

    A query language shouldn’t grow a function for everything. Pipe the result through a step instead. Everything inside the parentheses runs in the database; the bar hands the rows to the pipe.

    TugQL — draft syntax
    pipes (
      lower = 'openflange/lowercase@^0.1'
      mask = 'openflange/mask-email@^0.1'
    )
    with Emails as (
      from Customers as c
      select c.Id, c.Email
    ) | lower | mask
    from Emails as e
    select e.Id, e.Email
    Available from sourceSyntax on tugql.orgRFC 0002

How it works

Describe. Connect. Run.

  1. Describe a step

    Add one file, OPENFLANGE.md, next to your code. Its header lists ports, parameters and how to start it. The rest is your documentation.

  2. Connect steps

    In pipeline.yaml, each input names the output it reads from. Mistakes — a missing port, a cycle, a wrong type — are reported before anything runs.

  3. Run anywhere

    A runner executes the plan: in-process, as subprocesses, or over HTTP. Records stream with backpressure; failures are explicit.

The specification is independent. The Go SDK and CLI implement it; DataTug imports the SDK; any other tool can implement the same specification. The runner executes pipes in-process, as subprocesses, over HTTP, or as nested pipelines.implementsimportsimplementsindexes pipesOpenFlange specificationcontracts · schemas · testsRegistryGit-backed discoveryGo SDK + openflange CLIreference runnerDataTugvisual designerAny other toolcan implement itIn-processGo · StarlarkSubprocessR · Node · PythonRemote HTTPindependent servicesCompositenested pipeline
The specification is independent. The Go SDK and CLI implement it; DataTug imports the SDK; any other tool can implement the same specification. The runner executes pipes in-process, as subprocesses, over HTTP, or as nested pipelines.implementsimportsimplementsindexes pipesRegistryGit-backeddiscoveryAny othertoolcanimplementitOpenFlange specificationcontracts · schemas · testsGo SDK + openflange CLIreference runnerDataTugvisual designerIn-processGo · StarlarkSubprocessR · Node · PythonRemote HTTPindependent servicesCompositenested pipeline
The standard stands alone. DataTug consumes the shared implementation rather than defining a second contract, and no central registry is required.

Principles

Built to be adopted in pieces.

  • Open

    Specifications under CC BY 4.0, schemas and code under Apache-2.0, changes by public RFC and pull request.

  • Composable

    Small steps with named ports. A pipeline is itself a pipe, so compositions nest.

  • Runtime-neutral

    In-process, a subprocess, or a remote HTTP service: the contract is the same and the caller cannot tell.

  • No central registry required

    Reference a pipe by path, Git URL, npm package or HTTPS URL. A registry is a convenience, never a dependency.

AI agents

Use with your AI agent

Asking an assistant to build an ad-hoc ETL? Point it at one page. The agent guide is self-contained: when OpenFlange fits and when it does not, the minimal file set, the command loop, error codes and a standard-pipes cheat-sheet — every command checked against the real CLI.

In Claude Code: /plugin marketplace add openflange/ai-plugin, then /plugin install openflange@openflange.

Other agents: see the README for an AGENTS.md snippet and a Cursor rule.

The install commands come from Claude Code’s documentation and the plugin passes claude plugin validate; the install has not yet been run end to end.

Honest status

What exists today.

The v0.1 specifications are experimental drafts. The reference implementation has a first release, v0.0.1, also experimental. “Available” is used only for things that exist and have been verified.

Available

  • openflange CLI — Release v0.0.1 (experimental), installed with go install; no prebuilt binaries yet.
  • Go SDK and reference runner — Release v0.0.1 (experimental) of openflange-go.
  • HTTP Pipe Protocol server and client (openflange serve) — Server and client, in release v0.0.1 (experimental).
  • Standard library (std: pipes) — 28 pipes, in release v0.0.1 (experimental).
  • Starlark pipes — In-process expressions and scripts; no toolchain to install.
  • Multi-port executables — Pipes with several named inputs and outputs, in any language.
  • Lockfile (resolve, update, run --locked) — Pins every reference to an exact revision and integrity hash.
  • Portable tests (openflange test) — Test files that travel with a pipe.
  • Batch mode for executable and Starlark pipes — RFC 0003: the runner hands a pipe several records at once (lines or file delivery).
  • Pipes inside TugQL queries — Table form: available in the tugql Go package (dal-go/dalgo, merged to main, not yet tagged). Scalar form: proposed (RFC 0002). Docs: tugql.org/docs/pipes.

In development

  • v0.1 draft specifications — Experimental drafts; window framing is proposed.
  • Portable conformance suite — Not yet released.
  • Public registry (Git repository + this directory) — Experimental; the publish pipeline to openflange.com is not configured yet.
  • DataTug visual pipeline designer — First visual implementation; not yet released.

Planned

  • Tagged binary releases and Homebrew — v0.0.1 is installed with go install; prebuilt binaries and package-manager installs are planned.
  • Browser playground — Needs browser adapters that do not exist yet.
  • Hosted private registries / marketplace — The registry format already works privately from your own Git repository.
  • WASM implementation type — Reserved in the specification.