---
title: OpenFlange Pipeline Layout
spec: openflange.org/layout/v0.1
version: 0.1.0-draft
status: experimental
updated: 2026-12-03
summary: pipeline.layout.yaml — where design tools keep node positions and tool state, separate from the executable pipeline and ignored by runners.
---

# OpenFlange Pipeline Layout v0.1

This specification defines `pipeline.layout.yaml`, the optional file in which design tools keep the visual position of a pipeline's nodes and other tool state. Layout is kept apart from `pipeline.yaml` so that the executable graph stays canonical; runners ignore layout files entirely.

This document is published at <https://openflange.org/layout/v0.1>. Its identifier, `openflange.org/layout/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/layout/v0.1` — the value of `spec:` in documents of this kind
- **Published at:** <https://openflange.org/layout/v0.1> (raw Markdown: <https://openflange.org/layout/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):**
  - <https://openflange.org/schemas/layout-v0.1.schema.json>
- **Related specifications:**
  - Pipeline: <https://openflange.org/pipeline/v0.1>
  - Pipe: <https://openflange.org/pipe/v0.1>

## Minimal example

`pipeline.layout.yaml`, next to a `pipeline.yaml` with nodes `lowercase`
and `mask`:

```yaml openflange:layout
spec: openflange.org/layout/v0.1
nodes:
  lowercase: {x: 120, y: 80}
  mask: {x: 360, y: 80}
```

## 1. Introduction

A visual designer needs to remember where the user put each node. That
information is not part of what a pipeline *means*, changes far more often
than the graph, and differs between tools. OpenFlange therefore keeps it
out of the pipeline file — where a `layout` key is forbidden — and in a
separate, optional file.

### 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
`layout/v0.1 §4.2`, and numbered or bulleted rules within a section by their
position, for example `layout/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/layout/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](https://openflange.org/pipe/v0.1#2-terminology);
**workflow** is reserved for future control-flow orchestration and is not
used here.

- **layout file** — the file `pipeline.layout.yaml`.
- **tool** — software that displays or edits pipelines.

| Feature | Maturity |
|---|---|
| Layout file and node coordinates (3) | experimental |
| Tool state in `x-` extensions (3) | experimental |

Nothing is `stable` or `deprecated` in v0.1.

## 3. The layout file

1. The layout of the pipeline file `<dir>/pipeline.yaml` is
   `<dir>/pipeline.layout.yaml`. For a pipeline file with another name
   `<name>.yaml`, it is `<name>.layout.yaml`.
2. The file is parsed with the safe YAML rules of the
   [Pipe specification, section 4.2](https://openflange.org/pipe/v0.1#42-safe-yaml)
   and validates against
   `https://openflange.org/schemas/layout-v0.1.schema.json`.

| Key | Required | Meaning |
|---|---|---|
| `spec` | yes | The constant `openflange.org/layout/v0.1`. |
| `nodes` | no | Map of element id to position. |
| `x-<vendor>-<name>` | no | Tool-specific state, at the top level and inside positions. |

3. A key of `nodes` is a node id of the pipeline, or `inputs.<name>` /
   `outputs.<name>` for the pipeline's external ports.
4. A position is `{x: <number>, y: <number>}`: the top-left corner of the
   element in an abstract coordinate space whose x axis grows to the right
   and y axis grows downwards. The unit is tool-defined; tools SHOULD use
   CSS pixels at 100 % zoom.
5. **Runners MUST ignore layout files.** A missing, stale or invalid layout
   file MUST NOT affect validation or execution, and MUST NOT produce an
   error from `openflange validate` or `openflange run`.
6. Tools MUST tolerate layout entries for nodes that no longer exist
   (SHOULD drop them on save) and nodes without an entry (SHOULD place them
   automatically).
7. Tools MUST NOT store secrets, credentials, cached records or data
   previews in a layout file. Layout files are meant to be committed.
8. Tools MUST preserve `x-` keys they do not understand when rewriting the
   file.

A position needs both coordinates:

```yaml openflange:layout invalid
spec: openflange.org/layout/v0.1
nodes:
  lowercase: {x: 120}
```

## 4. Security considerations

Layout files are untrusted input for tools: safe YAML (size limit, no
aliases, no custom tags, duplicate keys rejected) and schema validation
apply, and coordinates SHOULD be clamped to a sane range before rendering
(resource exhaustion). A layout file has no effect on execution, so it
cannot change permissions, grants, trusted mode or what a subprocess may
do; it never contains paths that are opened (no path traversal), URLs that
are fetched (no SSRF or redirects), package scripts or secrets. Extension
values are data and MUST NOT be evaluated as code.

## 5. Compatibility and versioning

The format is identified by `openflange.org/layout/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.

## 6. Deferred

Not part of v0.1: edge routing and waypoints, groups and annotations,
viewport state, multiple named layouts, and layout for nested pipelines
shown inline. Execution-related deferrals (event-time watermarks, session
windows, checkpointing, distributed scheduling, WASM, reconnect, dynamic
ports) are listed in the Pipeline specification and do not concern layout.
