# natrongithub/natron architecture

> Architecture diagram of the GitHub repository natrongithub/natron, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/natrongithub/natron
- Repository: https://github.com/natrongithub/natron

## Overview

Natron is a node-based video compositor. Users build and animate a compositing graph, preview its output, and render frames interactively, in batch, or headlessly. The graph highlights project/node state, rendering and caching, media I/O, plugin hosting, and the GUI and scripting surfaces. README-documented capabilities are included alongside source-indexed core modules; many runtime call paths were not sampled, so links not directly evidenced are omitted.

Main entry points: [`Engine/OutputSchedulerThread.cpp`](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/OutputSchedulerThread.cpp) (Render pipeline), [`Engine/Node.h`](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Node.h) (Node graph model), [`Engine/Project.h`](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Project.h) (Project state), [`Engine/ReadNode.cpp`](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/ReadNode.cpp) (Media input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and projects"]
  node_appmgr["Application manager<br/>[AppManager.h]"]
  node_project["Project state<br/>[Project.h]"]
  node_settings["Application settings<br/>[Settings.h]"]
end

subgraph group_graph["Compositing and media"]
  node_node["Node graph model<br/>[Node.h]"]
  node_knob["Parameters and animation<br/>[Knob.h]"]
  node_timeline["Timeline<br/>[TimeLine.cpp]"]
  node_read["Media input<br/>[ReadNode.cpp]"]
  node_write["Media output<br/>[WriteNode.cpp]"]
  node_roto["Roto and paint<br/>[RotoContext.cpp]"]
  node_tracker["Tracking<br/>[TrackerContext.cpp]"]
end

subgraph group_render["Rendering and viewing"]
  node_render["Render pipeline"]
  node_cache[("RAM and disk cache<br/>[Cache.cpp]")]
  node_image["Image processing<br/>[Image.cpp]"]
  node_viewer["Interactive viewer<br/>[ViewerInstance.cpp]"]
end

subgraph group_interaction["User interaction"]
  node_guiapp["GUI application manager"]
  node_gui["Main GUI<br/>[Gui.h]"]
  node_knobgui["Parameter controls<br/>[KnobGuiFactory.h]"]
  node_docmanager["Documentation interface"]
end

subgraph group_extensibility["Plugins and scripting"]
  node_ofx["OpenFX host<br/>[OfxHost.cpp]"]
  node_python["Python integration<br/>[PyAppInstance.cpp]"]
end

node_user(("Compositor user"))
node_plugins["OpenFX plugins"]
node_formats["Image and video formats"]
node_scriptuser(("Script or batch user"))

node_user -->|"opens compositor"| node_guiapp
node_guiapp -->|"provides interface"| node_gui
node_user -->|"creates graph"| node_project
node_project -->|"contains graph state"| node_node
node_node -->|"exposes parameters"| node_knob
node_user -->|"edits parameters"| node_knobgui
node_knobgui -.->|"edits controls"| node_knob
node_user -->|"edits keyframes"| node_timeline
node_project -.->|"loads media"| node_read
node_read -.->|"feeds graph"| node_node
node_roto -->|"adds paint effects"| node_node
node_tracker -->|"adds tracking data"| node_node
node_user -->|"requests render"| node_render
node_scriptuser -->|"batch renders"| node_render
node_render -.->|"evaluates graph"| node_node
node_render -.->|"processes frames"| node_image
node_render -->|"uses frame cache"| node_cache
node_render -.->|"renders output"| node_write
node_render -->|"updates preview"| node_viewer
node_viewer -->|"shows preview"| node_user
node_write -->|"writes formats"| node_formats
node_read -->|"reads formats"| node_formats
node_node -.->|"hosts effects"| node_ofx
node_ofx -->|"loads plugins"| node_plugins
node_user -->|"scripts application"| node_python
node_guiapp -->|"starts documentation"| node_docmanager

click node_appmgr "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/AppManager.h"
click node_project "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Project.h"
click node_settings "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Settings.h"
click node_node "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Node.h"
click node_knob "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Knob.h"
click node_timeline "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/TimeLine.cpp"
click node_read "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/ReadNode.cpp"
click node_write "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/WriteNode.cpp"
click node_roto "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/RotoContext.cpp"
click node_tracker "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/TrackerContext.cpp"
click node_render "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/OutputSchedulerThread.cpp"
click node_cache "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Cache.cpp"
click node_image "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Image.cpp"
click node_viewer "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/ViewerInstance.cpp"
click node_guiapp "https://github.com/natrongithub/natron/blob/RB-2.6/Gui/GuiApplicationManager.cpp"
click node_gui "https://github.com/natrongithub/natron/blob/RB-2.6/Gui/Gui.h"
click node_knobgui "https://github.com/natrongithub/natron/blob/RB-2.6/Gui/KnobGuiFactory.h"
click node_docmanager "https://github.com/natrongithub/natron/blob/RB-2.6/Gui/DocumentationManager.cpp"
click node_ofx "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/OfxHost.cpp"
click node_python "https://github.com/natrongithub/natron/blob/RB-2.6/Engine/PyAppInstance.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_appmgr,node_project,node_settings,node_user,node_scriptuser toneBlue
class node_node,node_knob,node_timeline,node_read,node_write,node_roto,node_tracker toneAmber
class node_render,node_cache,node_image,node_viewer toneMint
class node_guiapp,node_gui,node_knobgui,node_docmanager toneRose
class node_ofx,node_python,node_plugins,node_formats toneIndigo
```

## Components

### Application and projects

- [Application manager](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/AppManager.h): `Engine/AppManager.h`
- [Project state](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Project.h): `Engine/Project.h`
- [Application settings](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Settings.h): `Engine/Settings.h`

### Compositing and media

- [Node graph model](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Node.h): `Engine/Node.h`
- [Parameters and animation](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Knob.h): `Engine/Knob.h`
- [Timeline](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/TimeLine.cpp): `Engine/TimeLine.cpp`
- [Media input](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/ReadNode.cpp): `Engine/ReadNode.cpp`
- [Media output](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/WriteNode.cpp): `Engine/WriteNode.cpp`
- [Roto and paint](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/RotoContext.cpp): `Engine/RotoContext.cpp`
- [Tracking](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/TrackerContext.cpp): `Engine/TrackerContext.cpp`

### Rendering and viewing

- [Render pipeline](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/OutputSchedulerThread.cpp): `Engine/OutputSchedulerThread.cpp`
- [RAM and disk cache](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Cache.cpp): `Engine/Cache.cpp`
- [Image processing](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/Image.cpp): `Engine/Image.cpp`
- [Interactive viewer](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/ViewerInstance.cpp): `Engine/ViewerInstance.cpp`

### User interaction

- [GUI application manager](https://github.com/natrongithub/natron/blob/RB-2.6/Gui/GuiApplicationManager.cpp): `Gui/GuiApplicationManager.cpp`
- [Main GUI](https://github.com/natrongithub/natron/blob/RB-2.6/Gui/Gui.h): `Gui/Gui.h`
- [Parameter controls](https://github.com/natrongithub/natron/blob/RB-2.6/Gui/KnobGuiFactory.h): `Gui/KnobGuiFactory.h`
- [Documentation interface](https://github.com/natrongithub/natron/blob/RB-2.6/Gui/DocumentationManager.cpp): `Gui/DocumentationManager.cpp`

### Plugins and scripting

- [OpenFX host](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/OfxHost.cpp): `Engine/OfxHost.cpp`
- [Python integration](https://github.com/natrongithub/natron/blob/RB-2.6/Engine/PyAppInstance.cpp): `Engine/PyAppInstance.cpp`

### Other components

- **Compositor user**
- **OpenFX plugins**
- **Image and video formats**
- **Script or batch user**

## Connections

- Compositor user → GUI application manager: opens compositor
- GUI application manager → Main GUI: provides interface (evidence: `Gui/GuiApplicationManager.cpp`)
- Compositor user → Project state: creates graph
- Project state → Node graph model: contains graph state (evidence: `Engine/Project.h`)
- Node graph model → Parameters and animation: exposes parameters (evidence: `Engine/Node.h`)
- Compositor user → Parameter controls: edits parameters
- Parameter controls → Parameters and animation: edits controls
- Compositor user → Timeline: edits keyframes
- Project state → Media input: loads media
- Media input → Node graph model: feeds graph
- Roto and paint → Node graph model: adds paint effects
- Tracking → Node graph model: adds tracking data
- Compositor user → Render pipeline: requests render
- Script or batch user → Render pipeline: batch renders
- Render pipeline → Node graph model: evaluates graph
- Render pipeline → Image processing: processes frames
- Render pipeline → RAM and disk cache: uses frame cache
- Render pipeline → Media output: renders output
- Render pipeline → Interactive viewer: updates preview
- Interactive viewer → Compositor user: shows preview
- Media output → Image and video formats: writes formats
- Media input → Image and video formats: reads formats
- Node graph model → OpenFX host: hosts effects
- OpenFX host → OpenFX plugins: loads plugins
- Compositor user → Python integration: scripts application
- GUI application manager → Documentation interface: starts documentation (evidence: `Gui/GuiApplicationManager.cpp`)
