This specification defines the OpenFlange package: a directory that contains one or more pipes, each with its own OPENFLANGE.md manifest. It defines how the pipes of a package are discovered, how a default pipe is chosen, and the optional openflange.yaml index file that lists them explicitly.
This document is published at https://openflange.org/package/v0.1. Its identifier, openflange.org/package/v0.1, is that URL without the scheme, and is the value documents of this kind carry in spec:.
At a glance #
- Identifier:
openflange.org/package/v0.1— the value ofspec:in documents of this kind - Published at: https://openflange.org/package/v0.1 (raw Markdown: https://openflange.org/package/v0.1.md)
- Version: 0.1.0-draft
- Status: experimental (feature maturity labels are listed in the document)
- Updated: 2026-12-03
- JSON Schemas (2020-12):
- Related specifications:
- Pipe: https://openflange.org/pipe/v0.1
- Pipeline: https://openflange.org/pipeline/v0.1
- Lockfile: https://openflange.org/lock/v0.1
- Registry: https://openflange.org/registry/v0.1
Minimal example #
An openflange.yaml at the root of a package with three pipes:
spec: openflange.org/package/v0.1
default: pipes/normalize-and-mask-email
pipes:
- pipes/lowercase
- pipes/mask-email
- pipes/normalize-and-mask-emailThe index is optional: a directory with a single OPENFLANGE.md at its
root is already a package.
1. Introduction #
Pipes are distributed in packages. A package is just a directory — a project folder, a Git repository or a sub-directory of one, an unpacked npm package. This document is the normative home of the package rules; the Pipe specification, section 11 summarises them.
1.1 Conventions #
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 2119 and RFC 8174 when, and only when, they appear in capitals.
Fenced examples whose info string contains openflange:<kind> are normative
and machine-checked against the JSON Schemas at
https://openflange.org/schemas/.
1.2 Citing this document #
Normative statements are cited by section number, for example
package/v0.1 §4.2, and numbered or bulleted rules within a section by their
position, for example package/v0.1 §4.2(3). Section numbers are stable
within v0.1: sections are appended, never renumbered. Every heading has a
stable fragment identifier derived from its text (lower-cased; characters
other than letters, digits, spaces, hyphens and underscores removed; spaces
replaced by hyphens), so a section is addressable as
https://openflange.org/package/v0.1#<fragment>. Cross-references to other
OpenFlange specifications are absolute URLs of that form. This document
does not rely on images; its diagrams are text.
2. Terminology and maturity #
The terms pipe, source, sink, pipeline, subpipeline, node, port, stream, run and dataset are defined in the Pipe specification, section 2; workflow is reserved for future control-flow orchestration and is not used here.
- package — a directory containing one or more pipe manifests.
- package root — that directory. Paths in manifests never leave it.
- default pipe — the pipe selected by a reference to the package that names no sub-path.
- package index — the optional file
openflange.yamlat the package root.
| Feature | Maturity |
|---|---|
| Directory packages and manifest discovery (3) | experimental |
Package index openflange.yaml (4) |
experimental |
npm package.json key (5) |
experimental |
Nothing is stable or deprecated in v0.1.
3. Discovery without an index #
- An
OPENFLANGE.mdat the package root is the package's default pipe. - Additional pipes live in sub-directories, each with its own
OPENFLANGE.md. Each manifest's paths resolve against its own directory and MUST stay inside the package root (E_PATH). - A tool discovering the pipes of a package MUST find every
OPENFLANGE.mdunder the package root, MUST skip directories namednode_modulesand directories whose name begins with., and MUST NOT follow symbolic links that lead outside the package root. - Two pipes of one package MUST NOT have the same
id(E_DUPLICATE). - A reference to a package without a sub-path selects its default pipe.
If the package has none, the reference is invalid (
E_REF).
4. The package index #
A package MAY contain openflange.yaml at its root. It is parsed with the
safe YAML rules of the
Pipe specification, section 4.2
and MUST validate against
https://openflange.org/schemas/package-v0.1.schema.json (E_MANIFEST
otherwise).
| Key | Required | Meaning |
|---|---|---|
spec |
yes | The constant openflange.org/package/v0.1. |
default |
one of default, pipes |
Path of the default pipe: a directory containing OPENFLANGE.md, or a manifest file. |
pipes |
one of default, pipes |
Paths of every pipe of the package, in the same form. No duplicates. |
x-<vendor>-<name> |
no | Extensions. |
Rules:
- When an index is present it is authoritative. The package's pipes
are exactly those listed in
pipes, plusdefaultif it is not listed; manifests elsewhere in the tree are not part of the package, and rule 1 of section 3 does not apply. - Paths are relative to the package root, use
/separators, and are subject to the path rules of the Pipe specification, section 12: absolute paths, traversal out of the package root and escapes through symbolic links areE_PATH. - Every listed path MUST lead to a valid manifest (
E_REFif missing). - If
defaultis absent, the package has no default pipe, even if anOPENFLANGE.mdexists at the root.
An index that names neither a default nor any pipe is invalid:
spec: openflange.org/package/v0.15. npm packages #
An npm package MAY point at its manifest from package.json instead of
placing OPENFLANGE.md at its root:
{"name": "@acme/geo-pipes", "version": "2.3.1", "openflange": {"manifest": "pipes/geocode/OPENFLANGE.md"}}The named manifest is the package's default pipe. An openflange.yaml, if
present, takes precedence over the package.json key. Other pipes of the
package are addressed with a manifest sub-path
(npm:<pkg>@<range>#<subpath>).
6. Security considerations #
A package is untrusted input until a consumer decides otherwise.
- Malicious manifests and indexes are parsed with safe YAML (size limit, no aliases, no custom tags, duplicate keys rejected) and validated before anything else is read.
- Path traversal. Index paths and manifest paths are checked on the resolved real path; discovery never follows symbolic links out of the package root.
- Package lifecycle scripts. Discovering or installing a package MUST
NOT execute anything from it (npm:
--ignore-scripts). - Resource exhaustion. Discovery SHOULD bound directory depth and the number of manifests.
- Discovery grants nothing: permissions remain enforce-or-refuse per node, a subprocess is not a sandbox, trusted mode is explicit, and secrets, SSRF and redirect handling are governed by the Pipeline specification, section 12.
7. Compatibility and versioning #
The format is identified by openflange.org/package/v0.1. Unknown keys are
rejected except x- extensions. While experimental, a later 0.x version
MAY change incompatibly, with a changelog entry. See COMPATIBILITY.md in
the specification repository.
8. Deferred #
Not part of v0.1: package-level metadata (name, version, licence of the package as a whole), package signing, workspaces, and package formats for PyPI, CRAN and OCI distributions. Execution-related deferrals (event-time watermarks, session windows, checkpointing, distributed scheduling, WASM, reconnect, dynamic ports) are listed in the Pipeline specification.