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.
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
| Package | What it is for |
|---|---|
manifest | Read and validate OPENFLANGE.md, with safe YAML parsing. |
pipeline | Parse pipeline.yaml, validate the graph and compile it to an execution plan. |
runner | Execute a plan: bounded buffers, backpressure, cancellation, run reports. |
stream | Lossless JSON items, batches and bounded pipes; NDJSON, CSV and text codecs. |
adapter | The 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). |
httpserver | The HTTP Pipe Protocol server behind openflange serve, as an http.Handler. |
std | The 28 standard pipes with their embedded manifests: filter, map, merge, window and others. |
resolve | Resolve references and read and write openflange.lock.yaml. |
registry | Read a registry index, local or remote. |
pipetest | Run portable test files against a pipe. |
conformance | A harness for the conformance fixtures of the specification repository. |
errs | Structured errors with stable codes such as E_REF and E_PERMISSION. |