# How ONF fits together

Understand workspaces, graphs, library assets and the execution snapshot before building a workflow.

Canonical URL: https://opennodeflow.dev/wiki/concepts/
JSON reference: https://opennodeflow.dev/wiki/concepts/index.json
Source snapshot: 2026-10-23

ONF is a code-first visual automation workbench. A graph connects reusable operations through typed data sockets and explicit execution routes. You can author and inspect that graph yourself or use a compatible agent through MCP. The same saved graph and library contracts apply to both approaches.

## Workspaces and the shared library

A workspace groups workflows and scopes durable variables and storage. It does not isolate users, credentials, code permissions or the reusable library. A library definition published in one workspace can be discovered elsewhere when its pack is available. Treat the installation as one trusted administrative environment.

The library has four asset kinds. A **node** performs work, a **trigger** defines an entry operation, an **executor** wraps JavaScript/TypeScript execution, and a **type** describes JSON values with JSON Schema. Only nodes and triggers are placed directly on the canvas. [Library packs](/wiki/library-packs/) control authoring discovery; they do not rewrite old workflow pins.

## Data and execution are separate

A data wire supplies a value and establishes a dependency. A control wire selects whether another node may execute. Control sockets do not contain ordinary JSON values. Ordinary nodes wait for all their incoming predecessors to settle, then use OR selection across their incoming control wires. Use an [explicit join](/wiki/control-flow/) when you need a different branch-completion rule.

An unwired data input uses its instance literal, then its definition default. A connected source that produces no value does not cause fallback to that literal: the dependent path normally skips. This distinction is important when wiring optional decoder outputs or mutually exclusive branches.

## Definitions, instances and pins

A definition is reusable published code or schema. A graph node is one instance of that definition with an instance ID, exact definition version, configuration and input literals. Publishing v2 does not change an instance pinned to v1. Socket custom-type versions and executor versions are pinned too.

Saving a workflow creates a new revision for conflict detection. That revision is different from the immutable versions of library assets. Accepted runs capture their workflow and exact dependency closure, allowing later inspection even after the canvas changes. Current credentials and external services remain runtime dependencies; a snapshot is not an entire machine image.

## A useful first reading path

Start with [installation status](/wiki/installation/) and [a synthetic first workflow](/wiki/first-workflow/). Then read [types](/wiki/types/), [versioning](/wiki/versioning/) and [triggers](/wiki/triggers/) before enabling automation. For agents, use the [agent entry point](/wiki/agents/) and discover actual definitions instead of guessing IDs.

Manual Run executes real code even when the workflow automation master is off. A library Test also executes code. Begin with pure transformations and synthetic input, inspect their outputs, and add external effects deliberately.

---

## Documentation provenance

- `docs/README.md`
- `docs/WORKFLOWS.md`
- `docs/AUTHORING.md`
- `docs/TYPES-AND-VERSIONING.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
