# ynput/ayon-core architecture

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

- Interactive diagram: https://gitdiagram.com/ynput/ayon-core
- Repository: https://github.com/ynput/ayon-core

## Overview

AYON Core is the foundational client addon for AYON pipeline integrations: it initializes addons, exposes integration APIs and host hooks, and supplies publishing plugins, artist tools, and shared UI/runtime services. The principal workflow is an artist working in a host integration, using creator and loader capabilities and publishing through shared pipeline plugins. The README documents these capabilities; sampled source confirms selected utility and UI relationships. Other subsystem links are limited to README-level descriptions rather than inferred call chains.

Main entry points: [`client/ayon_core/tools/publisher`](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/publisher) (Publisher UI), [`client/ayon_core/plugins/publish/extract_review.py`](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/plugins/publish/extract_review.py) (Review extraction), [`client/ayon_core/tools/loader`](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/loader) (Loader UI), [`client/ayon_core/tools/workfiles`](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/workfiles) (Workfiles UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_addon["Addon runtime"]
  node_cli["Command line<br/>[cli.py]"]
  node_addon_base["Addon discovery<br/>[base.py]"]
  node_hooks["Global hooks"]
  node_host_api["Host API<br/>[abstract.py]"]
end

subgraph group_pipeline["Pipeline lifecycle"]
  node_anatomy["Path anatomy<br/>[anatomy.py]"]
  node_creator["Creator plugins<br/>[creator_plugins.py]"]
  node_workfiles["Workfiles"]
  node_loaders["Loaders"]
  node_publish_plugins["Publish plugins"]
  node_publish_review["Review extraction<br/>[extract_review.py]"]
  node_actions["Launcher actions"]
end

subgraph group_tools["Artist tools"]
  node_browser["Reviews browser"]
  node_publisher["Publisher UI"]
  node_loader_ui["Loader UI"]
  node_workfiles_ui["Workfiles UI"]
  node_tray["Addon manager<br/>[addons_manager.py]"]
end

subgraph group_shared["Shared client services"]
  node_shared_lib["Runtime utilities"]
  node_file_transactions["File transactions"]
  node_icons["Icon definitions"]
  node_task_widgets["Task widgets<br/>[tasks_widget.py]"]
  node_qt_style["Qt styling"]
end

subgraph group_settings["Server settings"]
  node_server_settings["Settings<br/>[main.py]"]
  node_publish_settings["Publish settings<br/>[publish_plugins.py]"]
end

node_launcher(("AYON Launcher"))
node_artist(("Artist"))
node_integration{{"Host integration"}}

node_launcher -->|"invokes"| node_cli
node_artist -.->|"manages files"| node_workfiles_ui
node_artist -.->|"publishes work"| node_publisher
node_integration -->|"discovers addons"| node_addon_base
node_integration -->|"uses base API"| node_host_api
node_integration -->|"uses hooks"| node_hooks
node_integration -->|"creates products"| node_creator
node_integration -->|"uses loaders"| node_loaders
node_integration -->|"uses plugins"| node_publish_plugins
node_integration -->|"uses pipeline API"| node_anatomy
node_integration -->|"uses pipeline API"| node_workfiles
node_integration -->|"uses actions"| node_actions
node_publisher -.->|"runs publishing"| node_publish_plugins
node_loader_ui -.->|"uses loaders"| node_loaders
node_workfiles_ui -.->|"uses workfile API"| node_workfiles
node_tray -->|"manages addons"| node_addon_base
node_publish_review -->|"uses utilities"| node_shared_lib
node_publish_review -->|"uses transactions"| node_file_transactions
node_task_widgets -->|"renders icons"| node_icons
node_server_settings -->|"loads settings"| node_publish_settings
node_publisher -.->|"uses styling"| node_qt_style
node_loader_ui -->|"uses task widgets"| node_task_widgets

click node_cli "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/cli.py"
click node_addon_base "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/addon/base.py"
click node_hooks "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/hooks"
click node_host_api "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/host/abstract.py"
click node_anatomy "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/pipeline/anatomy/anatomy.py"
click node_creator "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/pipeline/create/creator_plugins.py"
click node_workfiles "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/workfile"
click node_loaders "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/load"
click node_publish_plugins "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/plugins/publish"
click node_publish_review "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/plugins/publish/extract_review.py"
click node_actions "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/actions"
click node_browser "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/browser/ui/browser_controller.py"
click node_publisher "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/publisher"
click node_loader_ui "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/loader"
click node_workfiles_ui "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/workfiles"
click node_tray "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/tray/ui/addons_manager.py"
click node_shared_lib "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/lib"
click node_file_transactions "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/lib/file_transaction.py"
click node_icons "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/lib/icon_definitions.py"
click node_task_widgets "https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/utils/tasks_widget.py"
click node_qt_style "https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/style"
click node_server_settings "https://github.com/ynput/ayon-core/blob/develop/server/settings/main.py"
click node_publish_settings "https://github.com/ynput/ayon-core/blob/develop/server/settings/publish_plugins.py"

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_cli,node_addon_base,node_hooks,node_host_api toneBlue
class node_anatomy,node_creator,node_workfiles,node_loaders,node_publish_plugins,node_publish_review,node_actions toneAmber
class node_browser,node_publisher,node_loader_ui,node_workfiles_ui,node_tray toneMint
class node_shared_lib,node_file_transactions,node_icons,node_task_widgets,node_qt_style toneRose
class node_server_settings,node_publish_settings,node_launcher,node_artist,node_integration toneIndigo
```

## Components

### Addon runtime

- [Command line](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/cli.py): `client/ayon_core/cli.py`
- [Addon discovery](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/addon/base.py): `client/ayon_core/addon/base.py`
- [Global hooks](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/hooks): `client/ayon_core/hooks`
- [Host API](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/host/abstract.py): `client/ayon_core/host/abstract.py`

### Pipeline lifecycle

- [Path anatomy](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/pipeline/anatomy/anatomy.py): `client/ayon_core/pipeline/anatomy/anatomy.py`
- [Creator plugins](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/pipeline/create/creator_plugins.py): `client/ayon_core/pipeline/create/creator_plugins.py`
- [Workfiles](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/workfile): `client/ayon_core/pipeline/workfile`
- [Loaders](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/load): `client/ayon_core/pipeline/load`
- [Publish plugins](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/plugins/publish): `client/ayon_core/plugins/publish`
- [Review extraction](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/plugins/publish/extract_review.py): `client/ayon_core/plugins/publish/extract_review.py`
- [Launcher actions](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/pipeline/actions): `client/ayon_core/pipeline/actions`

### Artist tools

- [Reviews browser](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/browser/ui/browser_controller.py): `client/ayon_core/tools/browser/ui/browser_controller.py`
- [Publisher UI](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/publisher): `client/ayon_core/tools/publisher`
- [Loader UI](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/loader): `client/ayon_core/tools/loader`
- [Workfiles UI](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/tools/workfiles): `client/ayon_core/tools/workfiles`
- [Addon manager](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/tray/ui/addons_manager.py): `client/ayon_core/tools/tray/ui/addons_manager.py`

### Shared client services

- [Runtime utilities](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/lib): `client/ayon_core/lib`
- [File transactions](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/lib/file_transaction.py): `client/ayon_core/lib/file_transaction.py`
- [Icon definitions](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/lib/icon_definitions.py): `client/ayon_core/lib/icon_definitions.py`
- [Task widgets](https://github.com/ynput/ayon-core/blob/develop/client/ayon_core/tools/utils/tasks_widget.py): `client/ayon_core/tools/utils/tasks_widget.py`
- [Qt styling](https://github.com/ynput/ayon-core/tree/develop/client/ayon_core/style): `client/ayon_core/style`

### Server settings

- [Settings](https://github.com/ynput/ayon-core/blob/develop/server/settings/main.py): `server/settings/main.py`
- [Publish settings](https://github.com/ynput/ayon-core/blob/develop/server/settings/publish_plugins.py): `server/settings/publish_plugins.py`

### Other components

- **AYON Launcher**
- **Artist**
- **Host integration**

## Connections

- AYON Launcher → Command line: invokes
- Artist → Workfiles UI: manages files
- Artist → Publisher UI: publishes work
- Host integration → Addon discovery: discovers addons
- Host integration → Host API: uses base API
- Host integration → Global hooks: uses hooks
- Host integration → Creator plugins: creates products
- Host integration → Loaders: uses loaders
- Host integration → Publish plugins: uses plugins
- Host integration → Path anatomy: uses pipeline API
- Host integration → Workfiles: uses pipeline API
- Host integration → Launcher actions: uses actions
- Publisher UI → Publish plugins: runs publishing
- Loader UI → Loaders: uses loaders
- Workfiles UI → Workfiles: uses workfile API
- Addon manager → Addon discovery: manages addons (evidence: `client/ayon_core/tools/tray/ui/addons_manager.py`)
- Review extraction → Runtime utilities: uses utilities (evidence: `client/ayon_core/plugins/publish/extract_review.py`)
- Review extraction → File transactions: uses transactions (evidence: `client/ayon_core/plugins/publish/extract_review.py`)
- Task widgets → Icon definitions: renders icons (evidence: `client/ayon_core/tools/utils/tasks_widget.py`)
- Settings → Publish settings: loads settings (evidence: `server/settings/main.py`)
- Publisher UI → Qt styling: uses styling (evidence: `client/ayon_core/tools/publisher/widgets/tasks_model.py`)
- Loader UI → Task widgets: uses task widgets (evidence: `client/ayon_core/tools/loader/ui/tasks_widget.py`)
