# aaronmurniadi/ofxrawhost architecture

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

- Interactive diagram: https://gitdiagram.com/aaronmurniadi/ofxrawhost
- Repository: https://github.com/aaronmurniadi/ofxrawhost

## Overview

OFX Raw Host is a desktop still-image OpenFX host. The principal workflow is to open a RAW or raster image, configure an ordered filter chain, preview its rendered output, and export PNG or JPEG. The graph also preserves workspace/filmstrip and sidecar-project capabilities, plus the host’s plugin, image, UI, and render subsystems. Edges cite README statements or shown source references; where excerpts do not establish a runtime call, the relationship is omitted or marked unverified.

Main entry points: [`src/Actions.cpp`](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/Actions.cpp) (User actions), [`src/ofx/OfxPlugins.cpp`](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxPlugins.cpp) (OFX host), [`src/NodeGraph.cpp`](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/NodeGraph.cpp) (Filter chain), [`src/RenderScheduler.cpp`](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/RenderScheduler.cpp) (Render scheduler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["App entry<br/>[main.cpp]"]
  node_ui["Desktop UI<br/>[UI.cpp]"]
  node_preview["Image preview<br/>[PreviewPanel.cpp]"]
  node_state["App state<br/>[AppState.h]"]
  node_actions["User actions<br/>[Actions.cpp]"]
end

subgraph group_image["Image Pipeline"]
  node_imageio["Image I/O<br/>[ImageIO.h]"]
  node_decode["Image decoding<br/>[ImageLoad.cpp]"]
  node_color["Color handling<br/>[ImageColor.cpp]"]
  node_export["Image export<br/>[ImageWrite.cpp]"]
end

subgraph group_effects["OFX Effects"]
  node_chain["Filter chain<br/>[NodeGraph.cpp]"]
  node_params["Parameter bridge<br/>[ParamBridge.cpp]"]
  node_host["OFX host<br/>[OfxPlugins.cpp]"]
  node_suites["OFX suites<br/>[OfxSuites.cpp]"]
  node_gpu["GPU support<br/>[OfxEffectGpu.h]"]
  node_metal["Metal support<br/>[OfxMetal.h]"]
  node_transform["Transform plugin<br/>[Transform.cpp]"]
end

subgraph group_render["Rendering"]
  node_chainrender["Chain renderer<br/>[ChainRenderer.cpp]"]
  node_scheduler["Render scheduler"]
end

subgraph group_workspace["Workspace &amp; Persistence"]
  node_filmstrip["Filmstrip<br/>[Filmstrip.cpp]"]
  node_persist["Project persistence<br/>[ProjectPersist.h]"]
  node_chainio["Chain persistence<br/>[ChainIO.cpp]"]
  node_json["JSON handling<br/>[Json.cpp]"]
end

node_user(("Image editor"))

node_user -->|"opens app"| node_entry
node_entry -->|"starts"| node_ui
node_ui -->|"dispatches"| node_actions
node_ui -->|"draws"| node_preview
node_actions -->|"opens image"| node_decode
node_decode -->|"provides image"| node_imageio
node_actions -->|"manages chain"| node_chain
node_chain -.->|"creates effects"| node_host
node_params -.->|"bridges parameters"| node_host
node_scheduler -->|"schedules render"| node_chainrender
node_scheduler -->|"renders effects"| node_host
node_actions -->|"rebuilds preview"| node_scheduler
node_chainrender -.->|"uses pixels"| node_imageio
node_actions -->|"writes output"| node_export
node_export -.->|"embeds profile"| node_color
node_actions -->|"refreshes"| node_filmstrip
node_filmstrip -->|"loads thumbnails"| node_imageio
node_actions -->|"loads and saves"| node_persist
node_actions -->|"loads chain"| node_chainio
node_chainio -->|"restores nodes"| node_chain
node_persist -.->|"stores JSON"| node_json
node_host -->|"provides suites"| node_suites
node_host -->|"uses GPU support"| node_gpu
node_host -->|"uses Metal support"| node_metal
node_transform -->|"runs as plugin"| node_host
node_chain -->|"chains filters"| node_transform
node_state -.->|"holds render state"| node_scheduler

click node_entry "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/main.cpp"
click node_ui "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/UI.cpp"
click node_preview "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ui/PreviewPanel.cpp"
click node_state "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/AppState.h"
click node_imageio "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageIO.h"
click node_decode "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageLoad.cpp"
click node_color "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageColor.cpp"
click node_export "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageWrite.cpp"
click node_filmstrip "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/Filmstrip.cpp"
click node_chain "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/NodeGraph.cpp"
click node_params "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ParamBridge.cpp"
click node_host "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxPlugins.cpp"
click node_suites "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxSuites.cpp"
click node_gpu "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxEffectGpu.h"
click node_metal "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxMetal.h"
click node_transform "https://github.com/aaronmurniadi/ofxrawhost/blob/main/plugins/Transform.cpp"
click node_chainrender "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ChainRenderer.cpp"
click node_scheduler "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/RenderScheduler.cpp"
click node_actions "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/Actions.cpp"
click node_persist "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/ProjectPersist.h"
click node_chainio "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/ChainIO.cpp"
click node_json "https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/Json.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_entry,node_ui,node_preview,node_state,node_actions toneBlue
class node_imageio,node_decode,node_color,node_export toneAmber
class node_chain,node_params,node_host,node_suites,node_gpu,node_metal,node_transform toneMint
class node_chainrender,node_scheduler toneRose
class node_filmstrip,node_persist,node_chainio,node_json,node_user toneIndigo
```

## Components

### Application

- [App entry](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/main.cpp): `src/main.cpp`
- [Desktop UI](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/UI.cpp): `src/UI.cpp`
- [Image preview](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ui/PreviewPanel.cpp): `src/ui/PreviewPanel.cpp`
- [App state](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/AppState.h): `src/AppState.h`
- [User actions](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/Actions.cpp): `src/Actions.cpp`

### Image Pipeline

- [Image I/O](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageIO.h): `src/imgio/ImageIO.h`
- [Image decoding](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageLoad.cpp): `src/imgio/ImageLoad.cpp`
- [Color handling](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageColor.cpp): `src/imgio/ImageColor.cpp`
- [Image export](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/imgio/ImageWrite.cpp): `src/imgio/ImageWrite.cpp`

### OFX Effects

- [Filter chain](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/NodeGraph.cpp): `src/NodeGraph.cpp`
- [Parameter bridge](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ParamBridge.cpp): `src/ParamBridge.cpp`
- [OFX host](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxPlugins.cpp): `src/ofx/OfxPlugins.cpp`
- [OFX suites](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxSuites.cpp): `src/ofx/OfxSuites.cpp`
- [GPU support](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxEffectGpu.h): `src/ofx/OfxEffectGpu.h`
- [Metal support](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ofx/OfxMetal.h): `src/ofx/OfxMetal.h`
- [Transform plugin](https://github.com/aaronmurniadi/ofxrawhost/blob/main/plugins/Transform.cpp): `plugins/Transform.cpp`

### Rendering

- [Chain renderer](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/ChainRenderer.cpp): `src/ChainRenderer.cpp`
- [Render scheduler](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/RenderScheduler.cpp): `src/RenderScheduler.cpp`

### Workspace & Persistence

- [Filmstrip](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/Filmstrip.cpp): `src/Filmstrip.cpp`
- [Project persistence](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/ProjectPersist.h): `src/persist/ProjectPersist.h`
- [Chain persistence](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/ChainIO.cpp): `src/persist/ChainIO.cpp`
- [JSON handling](https://github.com/aaronmurniadi/ofxrawhost/blob/main/src/persist/Json.cpp): `src/persist/Json.cpp`

### Other components

- **Image editor**

## Connections

- Image editor → App entry: opens app (evidence: `README.md`)
- App entry → Desktop UI: starts (evidence: `src/main.cpp`)
- Desktop UI → User actions: dispatches
- Desktop UI → Image preview: draws (evidence: `src/ui/PreviewPanel.cpp`)
- User actions → Image decoding: opens image (evidence: `src/Actions.cpp`)
- Image decoding → Image I/O: provides image (evidence: `src/imgio/ImageLoad.cpp`)
- User actions → Filter chain: manages chain (evidence: `src/Actions.cpp`)
- Filter chain → OFX host: creates effects
- Parameter bridge → OFX host: bridges parameters
- Render scheduler → Chain renderer: schedules render (evidence: `src/RenderScheduler.cpp`)
- Render scheduler → OFX host: renders effects (evidence: `src/RenderScheduler.cpp`)
- User actions → Render scheduler: rebuilds preview (evidence: `src/Actions.cpp`)
- Chain renderer → Image I/O: uses pixels
- User actions → Image export: writes output (evidence: `src/Actions.cpp`)
- Image export → Color handling: embeds profile
- User actions → Filmstrip: refreshes (evidence: `src/Actions.cpp`)
- Filmstrip → Image I/O: loads thumbnails (evidence: `src/Filmstrip.cpp`)
- User actions → Project persistence: loads and saves (evidence: `src/Actions.cpp`)
- User actions → Chain persistence: loads chain (evidence: `src/Actions.cpp`)
- Chain persistence → Filter chain: restores nodes (evidence: `src/persist/ChainIO.cpp`)
- Project persistence → JSON handling: stores JSON
- OFX host → OFX suites: provides suites (evidence: `src/ofx/OfxSuites.cpp`)
- OFX host → GPU support: uses GPU support (evidence: `src/ofx/OfxPlugins.cpp`)
- OFX host → Metal support: uses Metal support (evidence: `src/ofx/OfxPlugins.cpp`)
- Transform plugin → OFX host: runs as plugin (evidence: `README.md`)
- Filter chain → Transform plugin: chains filters (evidence: `README.md`)
- App state → Render scheduler: holds render state
