Different pipes. One standard.

Начните вводить запрос.

Поиск работает прямо в браузере по статическому индексу, собранному вместе с сайтом (Pagefind). Ваш запрос никуда не отправляется.

Формат реестра

Описывает, как пайпы (шаги обработки данных) публикуются и находятся: одна YAML-запись на пайп в Git-репозитории, пространства имён издателей, привязанные к учётным записям GitHub, и генерируемые JSON-индексы, которые может прочитать любой инструмент. Центральный реестр не обязателен: частный реестр использует тот же формат.

Коротко

Идентификатор
openflange.org/registry/v0.1 — открывается по адресу https://openflange.org/registry/v0.1/
Статус
Экспериментально
Версия
v0.1 (документ 0.1.0-draft), последняя · все версии
Обновлено
Схемы
Связанные
Пайп · Lock-файл
Форматы
HTML (эта страница) · Открыть в формате Markdown (на английском) · лицензия CC BY 4.0

Нормативным является английский текст

Ниже приведена спецификация «OpenFlange Registry Specification» на языке оригинала — английском. Нормативную силу имеет только английский текст; краткое описание и подписи на этой странице носят справочный характер.

This specification defines an open, Git-backed directory format for OpenFlange pipes: one entry per pipe with immutable version records, publisher namespaces bound to GitHub accounts, and generated portable indexes. It defines how entries are validated and how clients resolve a <publisher>/<name> reference; no central registry is required.

This document is published at https://openflange.org/registry/v0.1. Its identifier, openflange.org/registry/v0.1, is that URL without the scheme, and is the value documents of this kind carry in spec:.

At a glance #

Minimal example #

The smallest valid entry (the commit and hash are illustrative):

yaml
spec: openflange.org/registry/v0.1
publisher: openflange
name: lowercase
distribution:
  type: git
  url: https://github.com/openflange/openflange-go
  path: examples/email/pipes/lowercase
versions:
  - version: 0.1.0
    manifest: https://raw.githubusercontent.com/openflange/openflange-go/3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70/examples/email/pipes/lowercase/OPENFLANGE.md
    revision: 3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70
    integrity: sha256-9b2f7c1d4e6a8b0c2d4f6a8b0c2e4f6a8b0c2d4e6f8a0b1c3d5e7f9a1b3c5d7e

A pipeline refers to it as openflange/lowercase@^0.1.

1. Introduction #

A registry is a directory of pipes: it says that a pipe exists, who publishes it, where its manifest and artifacts live, and which versions there are. It does not host code. A registry references manifests and immutable artifacts; it never copies source.

The format is open and file-based so that anyone can run a registry — a public one, a private one inside a company, or a federation of several — with nothing more than a Git repository and a static file server. OpenFlange works without any registry: paths, git:, npm: and https: references need none, and nothing in the other specifications depends on a central service.

This document specifies the logical model and repository layout (section 3), the entry and publisher formats (4, 5), publication through pull requests and its validation (6), the generated artifacts (7), and resolution by clients (8).

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 schemas in schemas/: registry-entry-v0.1, registry-publisher-v0.1, registry-index-v0.1 and registry-facets-v0.1.

1.2 Citing this document #

Normative statements are cited by section number, for example registry/v0.1 §4.2, and numbered or bulleted rules within a section by their position, for example registry/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/registry/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 and not used here. In this document:

  • registry — a Git repository in the layout of section 3, and the artifacts generated from it.
  • publisher — a namespace owner, identified by a GitHub user or organisation login.
  • entry — the file describing one pipe.
  • index — the generated, portable summary of all entries.
  • distribution — where and how a pipe's package is obtained.
Feature Maturity
Logical model, entry format, version records (3.1, 4) experimental
On-disk layout as an inGitDB database (3.2) experimental; normative for the public registry
Publication as an OpenVaultDB database (3.2) experimental, optional; prepared for the public registry, not yet live
Publisher files and GitHub-backed ownership (5) experimental
Pull-request validation rules (6) experimental
index.json, index.ndjson (7) experimental
facets.json (7.3) experimental
Static detail pages and browser search index (7.4) experimental; not a protocol
Deprecation (4.4) experimental
Private and federated registries (9) experimental
Hosted private registries, marketplace features not specified; planned at most

Nothing is stable or deprecated in v0.1.

3. Logical model and repository layout #

3.1 Logical model (normative) #

A registry consists of exactly these kinds of records:

Record Identity Defined in
pipe entry registry id <publisher>/<name> section 4
version record (registry id, version) — part of the pipe entry section 4.3
publisher <publisher> (a GitHub login) section 5
index generated from all pipe entries of one commit section 7.1, 7.2
facets generated from the index section 7.3

The Git repository is authoritative for pipe entries and publishers. The index and facets are derived from one commit and never edited by hand. The registry id is unique. Every record validates against its JSON Schema regardless of how it is stored, and all YAML is parsed with the safe YAML rules of the Pipe specification, section 4.2.

Everything else in this document is stated in terms of this logical model.

3.2 On-disk layout: an inGitDB database #

The public registry is an inGitDB database: a Git repository in which each collection has a definition file and one file per record. This layout is normative for the public registry. A private or federated registry MAY use it too, but is only REQUIRED to produce the same portable index (section 7) from records that satisfy the logical model; clients read the index, never the layout.

text
.ingitdb/root-collections.yaml              the collections: pipes, publishers
pipes/.collection/definition.yaml           columns and constraints of a pipe entry
pipes/$records/<publisher>~2F<name>.yaml    one pipe entry per file
publishers/.collection/definition.yaml      columns and constraints of a publisher
publishers/$records/<publisher>.yaml        one publisher per file

($records is a literal directory name.) Generated artifacts — index.json, index.ndjson, facets.json — are build output; whether they are committed is a deployment choice.

Rules:

  1. Collections. There are exactly two root collections, pipes and publishers. The publisher of a pipe entry is a foreign key into publishers: an entry whose publisher has no record is invalid.
  2. Record keys. The key of a pipe entry is its registry id <publisher>/<name>; the key of a publisher is its login. The identity stated inside a record (publisher, name) MUST equal its key.
  3. Key encoding. A file name cannot contain /, so the pipes collection declares key_encoding: tilde-v1, in which / is written ~2F: the entry acme/mask-email is the file pipes/$records/acme~2Fmask-email.yaml. A record file name MUST be the canonical tilde-v1 encoding of its key; any other spelling of the same key is invalid. Readers show and use the decoded key.
  4. Two-layer validation. A record is valid only if it passes both:
    1. ingitdb validate (inGitDB CLI v0.71 or newer) against the collection definition — types, required columns, enumerations, lengths, nested shapes, the foreign key, and no undeclared column;
    2. the registry's own checks — everything in sections 4 to 6 that a column definition cannot express (key equals <publisher>/<name>, name and login patterns, SemVer order and uniqueness, safe and immutable URLs, the per-type shape of distribution, manifest integrity, ownership). Both layers run on pull requests under the trust separation of section 6. The JSON Schemas of this specification describe the same records and are what a registry in another layout validates against.
  5. Extension keys. The format permits x- keys (4.1). In an inGitDB registry an x- key is accepted only when it is declared in the collection definition, because undeclared columns are refused. Declaring one is a maintainer change, not a namespace change.
  6. Dates are quoted strings. publishedAt is written publishedAt: "2026-12-03". Unquoted, YAML 1.1 tooling (including the inGitDB layer) reads a timestamp rather than the string the column declares, and the record is refused. Writers MUST quote date strings; the same applies to any value that YAML 1.1 would read as a non-string (for example an all-digit revision).

OpenVaultDB (optional). A registry MAY additionally be published as an OpenVaultDB database, by adding the publisher files OVDB.md and ovdb.yaml and a ModelSpec model of the two record types, and MAY be listed in the OpenVaultDB Directory (https://directory.openvaultdb.com/). This is presentation and discovery only: it adds no requirement for clients and changes nothing in the logical model or the index. The public registry carries these files (OVDB.md, ovdb.yaml, model/openflange-registry.modelspec.json and .hcl); at the time of writing its status is prepared, not yet live — the database is neither served nor listed in the Directory.

4. Entries #

4.1 Format #

yaml
spec: openflange.org/registry/v0.1
publisher: openflange
name: lowercase
title: Lowercase
description: Lower-cases strings
license: Apache-2.0
keywords: [text]
languages: [starlark]
runtimes: [starlark]
mediaTypes: [application/x-ndjson]
distribution:
  type: git
  url: https://github.com/openflange/openflange-go
  path: examples/email/pipes/lowercase
deprecated: false
versions:
  - version: 0.1.0
    manifest: https://raw.githubusercontent.com/openflange/openflange-go/3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70/examples/email/pipes/lowercase/OPENFLANGE.md
    revision: 3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70
    integrity: sha256-9b2f7c1d4e6a8b0c2d4f6a8b0c2e4f6a8b0c2d4e6f8a0b1c3d5e7f9a1b3c5d7e
    publishedAt: "2026-12-03"
    deprecated: false

(The repository, commit and hash in this example are illustrative; no such publication exists yet.)

Key Required Meaning
spec yes The constant openflange.org/registry/v0.1.
publisher yes Lower-case GitHub user or organisation login.
name yes The pipe's id (^[a-z0-9][a-z0-9-]{0,63}$).
title, description no Shown in directories. SHOULD match the manifest.
license no SPDX expression of the pipe, chosen by its author. (The registry metadata itself is contributed under CC0-1.0.)
keywords no Search terms.
languages no Implementation languages: go, r, javascript, python, starlark, sql, …
runtimes no Adapters a runner needs: starlark, subprocess, node, rscript, http, go, duckdb, …
mediaTypes no Media types of the pipe's ports.
distribution yes Where the pipe's package lives (4.2).
deprecated no false (default), true, or {reason, replacedBy} (4.4).
versions yes Version records, at least one (4.3).
x-<vendor>-<name> no Extensions, on entries and on version records. In an inGitDB registry, only keys declared in the collection definition (3.2).

Unknown keys are rejected.

4.2 Distribution #

distribution.type is one of git, npm, http, pypi, cran, oci.

type members resolves to the reference
git url (HTTPS clone URL), optional path (package directory), optional informative ref git:<url>#<revision>:<path>
npm package, optional path (manifest sub-path) npm:<package>@<version>#<path>
http url — the remote pipe URL {base}/pipes/<id> of an HTTP Pipe Protocol server that URL
pypi, cran package recognised; v0.1 runners report E_UNSUPPORTED when asked to install
oci url recognised; v0.1 runners report E_UNSUPPORTED

A registry MUST NOT list a distribution as installable by tooling that does not support it; directories SHOULD show the capability limit.

4.3 Version records #

versions lists every published version in ascending SemVer precedence order (oldest first).

Key Required Meaning
version yes SemVer version; equals the version in the referenced manifest.
manifest yes Immutable HTTPS URL of that version's OPENFLANGE.md — for Git, a URL containing the full commit hash, never a branch name. For http distributions, the definition URL.
revision no The immutable revision: full Git commit hash (REQUIRED for git), npm dist shasum, or the remote-reported revision.
integrity yes sha256-<64 lower-case hex digits> of the manifest file's bytes as served by manifest.
publishedAt no Calendar date (YYYY-MM-DD) the version was added, written as a quoted string (3.2).
deprecated no As for the entry, for this version only.

Published version records are immutable. A later change MUST NOT alter version, manifest, revision or integrity of an existing record; the only permitted changes are setting deprecated and adding x- keys. A mistake is corrected by publishing a new version and deprecating the old.

The registry integrity covers the manifest only. The integrity recorded in a consumer's lockfile covers the manifest and its implementation files and is computed by the consumer (Lockfile specification).

4.4 Deprecation and removal #

  • deprecated: true, or {reason: "...", replacedBy: "<publisher>/<name>"}, marks a pipe or a version as deprecated. Deprecated items stay resolvable; tools SHOULD warn and directories SHOULD show the reason and the replacement.
  • Removal is a pull request deleting the entry file. It removes the pipe from generated indexes and pages on the next build. Lockfiles that already pin the pipe keep working as long as the distribution itself exists, because a lockfile records the resolved location, not the registry entry.
  • Version history is kept in the entry (versions) and in Git history.

5. Publishers #

A publisher namespace is bound to a GitHub account; registries do not have accounts of their own.

yaml
spec: openflange.org/registry/v0.1
publisher: openflange
type: org
owners: [alice, bob]
displayName: OpenFlange
url: https://openflange.org/
Key Required Meaning
spec yes The constant openflange.org/registry/v0.1.
publisher yes The GitHub login naming the namespace; equals the file name.
type yes user or org.
owners yes GitHub logins allowed to change this namespace by pull request. For type: user this is the user.
displayName, url no Presentation.

Ownership rules a registry's validation MUST enforce:

  1. A pull request may add, change or delete the pipe entries and the publisher record of a namespace only if its author is listed in owners of that publisher as it is on the target branch (not as modified by the pull request).
  2. The first pull request creating a namespace MUST come from the GitHub user of that login (type: user) or from a member of that organisation (type: org), verified through the GitHub API.
  3. Changes outside a single publisher's namespace (tooling, other publishers) are not namespace changes and need a registry maintainer.

Ownership of what an entry points to is verified independently: owning a registry namespace says nothing about owning the npm package, the Git repository or the HTTP endpoint in distribution. Validation SHOULD check that the publisher controls the referenced location (for example the repository belongs to the same GitHub account, or the manifest's content names the registry id) and MUST at least check that the manifest at the immutable URL matches the entry.

6. Publication and validation #

Entries are added, updated and removed by pull request. Validation of a pull request MUST check, and MUST be able to do so without executing any submitted code:

  1. Schema — every changed record validates against its schema, with safe YAML; in the public registry this is the two-layer validation of section 3.2 (ingitdb validate, then the registry's own checks).
  2. Naming and uniqueness — the record's location matches its content (canonical key encoding); the registry id is unique; versions are unique and ascending.
  3. Ownership — section 5.
  4. Immutability — existing version records are unchanged (4.3).
  5. Manifest — each new version's manifest URL is fetched with the bounded-fetch rules (section 10), its bytes match integrity, it is a valid pipe manifest (Pipe specification) whose id equals name and whose version equals the record's version, and it carries the attribution link to https://openflange.org/.
  6. Safe references — URLs are HTTPS, contain no credentials, and are immutable (a commit hash for Git); paths are relative and do not traverse.

Trust separation (normative for public registries). A pull request is untrusted input:

  • The job that validates a pull request runs with no secrets and no write permissions, and treats the submission purely as data: it MUST NOT execute, import, install or build anything from the pull request or from the packages it references (no package lifecycle scripts, no test runs of submitted pipes).
  • Workflows that hold privileged tokens MUST NOT check out or run pull-request content (on GitHub: no pull_request_target job that touches the submitted tree).
  • Building and deploying generated artifacts is a separate, trusted job that runs only on the protected main branch after merge.

7. Generated artifacts #

On every merge to the main branch a trusted build generates, from one commit, the following artifacts, and publishes them together so that they are mutually consistent. Additions, changes and deletions of entries are all reflected: an entry that was removed disappears from every artifact on the next build.

7.1 index.json #

json
{
  "spec": "openflange.org/registry/v0.1",
  "generatedAt": "2026-12-03T12:00:00Z",
  "commit": "f15728a4f8ca4daed1f4ff7e9fe530e5c4b892a1",
  "pipes": [
    {
      "id": "openflange/lowercase",
      "spec": "openflange.org/registry/v0.1",
      "publisher": "openflange",
      "name": "lowercase",
      "title": "Lowercase",
      "description": "Lower-cases strings",
      "license": "Apache-2.0",
      "keywords": ["text"],
      "languages": ["starlark"],
      "runtimes": ["starlark"],
      "mediaTypes": ["application/x-ndjson"],
      "distribution": {"type": "git", "url": "https://github.com/openflange/openflange-go", "path": "examples/email/pipes/lowercase"},
      "deprecated": false,
      "latest": "0.1.0",
      "versions": [
        {
          "version": "0.1.0",
          "manifest": "https://raw.githubusercontent.com/openflange/openflange-go/3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70/examples/email/pipes/lowercase/OPENFLANGE.md",
          "revision": "3f1c2b7a9d0e4f5a6b7c8d9e0f1a2b3c4d5e6f70",
          "integrity": "sha256-9b2f7c1d4e6a8b0c2d4f6a8b0c2e4f6a8b0c2d4e6f8a0b1c3d5e7f9a1b3c5d7e",
          "publishedAt": "2026-12-03",
          "deprecated": false
        }
      ]
    }
  ]
}
  • generatedAt is an RFC 3339 UTC time; commit is the registry commit the index was built from and is omitted when unknown (for example when built outside a Git checkout).
  • pipes is sorted by id. Each element is the entry with defaults filled in, plus:
    • id — the registry id <publisher>/<name>;
    • latest — a version string: the highest non-deprecated stable version; if there is none, the highest non-deprecated pre-release; if there is none, the highest version. It is always one of versions[].version.
  • The arrays keywords, languages, runtimes and mediaTypes are always present (possibly empty), so that consumers need no defaults.
  • Extension keys of entries are carried through.

7.2 index.ndjson #

The same elements as index.json's pipes, one JSON object per line, in the same order, in NDJSON framing. It exists so that large registries can be consumed as a stream. Each line validates against the indexEntry definition of the index schema.

7.3 facets.json #

Distinct filter values with counts, for directory user interfaces:

json
{
  "spec": "openflange.org/registry/v0.1",
  "generatedAt": "2026-12-03T12:00:00Z",
  "commit": "f15728a4f8ca4daed1f4ff7e9fe530e5c4b892a1",
  "total": 1,
  "facets": {
    "languages": [{"value": "starlark", "count": 1}],
    "runtimes": [{"value": "starlark", "count": 1}],
    "licenses": [{"value": "Apache-2.0", "count": 1}],
    "distributionTypes": [{"value": "git", "count": 1}],
    "mediaTypes": [{"value": "application/x-ndjson", "count": 1}],
    "publishers": [{"value": "openflange", "count": 1}],
    "keywords": [{"value": "text", "count": 1}]
  }
}

total is the number of pipes. Each facet is a list of {value, count} with count ≥ 1; commit is omitted when unknown. facets.json is a convenience derived from the index; a consumer can always compute it.

A public registry additionally generates static, individually addressable detail pages and a static, browser-side search index (the reference registry uses Pagefind). These are presentation, not protocol: there is no search API and no dedicated search backend, and nothing in this specification implies a hosted search service. Programmatic consumers use index.json / index.ndjson. A server publishing the index SHOULD allow cross-origin GET so that browser-based tools can read it.

8. Resolution by clients #

A registry reference has the form <publisher>/<name>[@<range>].

  1. The client obtains the index from the configured registry: a URL or a local path (CLI --registry, environment OPENFLANGE_REGISTRY). The default public location is https://openflange.com/index.json, which is not live at the time of writing; a local path or a private URL MUST work, and a client MUST fail clearly (E_REF) rather than hang when the default is unreachable.
  2. It finds the element whose id matches.
  3. It selects the version: with a range, the highest version satisfying it, preferring non-deprecated versions; without one, latest.
  4. It converts the distribution and the version record to a concrete reference (4.2), fetches the manifest, and verifies integrity before using it.
  5. It records the result in the lockfile. From then on the lockfile, not the registry, is what makes builds reproducible; locked runs never contact a registry.

A registry reference, the equivalent git:/npm: reference and a relative path to the same package MUST resolve to the same contract.

9. Private and federated registries #

A private registry is the same format behind access control: a Git repository and a published index.json. A client is pointed at it with --registry. Federation in v0.1 is by configuration — a client uses one registry at a time, and an organisation that wants a merged view builds an index from several sources (ids are globally unique because publishers are GitHub logins). No registry is mandatory, and no reference form other than <publisher>/<name> consults one.

10. Security considerations #

  • Untrusted submissions. Section 6's trust separation is the core control: validation without secrets, without write access and without executing submitted code; deployment from a separate trusted job. Package lifecycle scripts are never run; packages are not installed to validate an entry.
  • Malicious manifests and entries. Safe YAML (size limit, no aliases, no custom tags, duplicate keys rejected) and schema validation precede any use. Titles and descriptions are untrusted text: generators MUST escape them in HTML and MUST NOT interpret them as markup.
  • SSRF and unsafe redirects. Fetching manifest URLs happens on infrastructure with network access to internal services. Fetches MUST be HTTPS only, bounded in size and time, MUST NOT connect to private, loopback or link-local addresses (checked on the resolved address), and MUST NOT follow redirects off the original host or to another scheme.
  • Path traversal. distribution.path and the registry's own file names are validated; a generator MUST NOT derive output paths from unvalidated entry content.
  • Integrity and immutability. Version records are immutable and carry a hash; clients verify it. This protects against a changed manifest, not against a malicious publisher: a registry listing is not an endorsement or a security review, and directories MUST NOT suggest otherwise. Consumers still decide what to grant (permissions are enforce-or-refuse at the runner).
  • Namespace takeover. Ownership is evaluated against the target branch's publisher file and the live GitHub API. A renamed or deleted GitHub account can free a login; registries SHOULD re-verify on every change and SHOULD freeze a namespace whose account no longer matches.
  • Secret leakage. Entries MUST NOT contain credentials; URLs with user-info are rejected. Registry tokens exist only in the trusted deployment job.
  • Resource exhaustion. Entry size, number of versions, index size and fetch sizes are bounded by the tooling.
  • Subprocess and trusted mode. The registry runs no pipes. Anything that does (a playground, a preview) is outside this specification and must not present a subprocess as a sandbox or trusted mode as isolation.

11. Compatibility and versioning #

  • The format is identified by openflange.org/registry/v0.1, present in every entry, publisher file, index and facets file.
  • Consumers of generated artifacts MUST ignore unknown members of index elements that begin with x-; other unknown members are a schema violation in v0.1.
  • New distribution.type values and new optional keys are additions for a later minor version; while experimental, incompatible changes are possible with a CHANGELOG.md entry.
  • The registry repository's tooling is authoritative for behaviour this document does not specify (page layout, search ranking).

See COMPATIBILITY.md in the specification repository.

12. Deferred #

Not part of v0.1: signed entries or indexes; yanking semantics beyond deprecation; multi-registry resolution order in clients; verified-publisher badges; download statistics; hosted private registries and marketplaces (planned at most — not available); installation of pypi, cran and oci distributions; WASM distributions. The execution-related deferrals of the other specifications (event-time watermarks, session windows, checkpointing, distributed scheduling, reconnect, dynamic ports) do not concern the registry.

Источник: specs/registry/v0.1.md в репозитории спецификаций. Ключевые слова, такие как MUST и SHOULD, используются в значении, определённом в RFC 2119.