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.

Go SDK and reference runner: Available — v0.0.1 (experimental)

Go SDK

Embed the runner in your own program. The Go SDK is the reference implementation of the standard; the openflange CLI is a thin wrapper around it.

Release v0.0.1, experimental

The module github.com/openflange/openflange-go is public, but no version has been tagged, so the API can still change: pin a commit. The packages and extension points are described in docs/architecture.md; the examples there marked tested are compiled and run with the test suite.

When to use it

Use the CLI when a command is enough. Use the SDK when your Go program needs to validate manifests, show an execution plan, or run pipelines itself — the way DataTug does.

from the repository README
eng := openflange.New() // standard library + Starlark, exec and composite adapters
plan, err := eng.Compile(ctx, "./examples/email/normalize-and-mask-email", openflange.CompileOptions{})
out := &stream.Collector{}
report, err := eng.Run(ctx, plan, runner.Options{
    Inputs:  map[string]stream.Reader{"email": stream.FromItems(stream.String("Alice@Example.COM"))},
    Outputs: map[string]stream.Writer{"email": out},
})

Packages

PackageWhat it is for
manifestRead and validate OPENFLANGE.md, with safe YAML parsing.
pipelineParse pipeline.yaml, validate the graph and compile it to an execution plan.
runnerExecute a plan: bounded buffers, backpressure, cancellation, run reports.
streamLossless JSON items, batches and bounded pipes; NDJSON, CSV and text codecs.
adapterThe adapter interface, the registry and builtin pipes. Sub-packages: adapter/starlark (in-process), adapter/exec (subprocesses, multi-port endpoints), adapter/composite (nested pipelines), adapter/httppipe (HTTP Pipe Protocol client).
httpserverThe HTTP Pipe Protocol server behind openflange serve, as an http.Handler.
stdThe 28 standard pipes with their embedded manifests: filter, map, merge, window and others.
resolveResolve references and read and write openflange.lock.yaml.
registryRead a registry index, local or remote.
pipetestRun portable test files against a pipe.
conformanceA harness for the conformance fixtures of the specification repository.
errsStructured errors with stable codes such as E_REF and E_PERMISSION.

How it fits together

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.

One runner orchestrates a run and hands each node to an adapter: in-process for builtins and Starlark, a subprocess for R, Node and Python, a nested pipeline, or a remote HTTP session. The design leaves room for browser and distributed runners later; neither exists today.

Other languages

You do not need an SDK to write a pipe. Any program that reads stdin and writes stdout already follows the CLI protocol, and any web service can implement the HTTP Pipe Protocol. SDKs for other languages are not planned for v0.1.