# pixaroma/comfyui-pixaroma architecture

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

- Interactive diagram: https://gitdiagram.com/pixaroma/comfyui-pixaroma
- Repository: https://github.com/pixaroma/comfyui-pixaroma

## Overview

ComfyUI Pixaroma is a ComfyUI custom-node and canvas-tools extension. Users add its nodes to a workflow to load and transform media, compose prompts, inspect results, and save outputs; canvas extensions add workflow browsing, editing, and help. The README establishes these product capabilities, while the excerpts show shared frontend infrastructure and selected server routes. Edges therefore describe documented user-facing capabilities, not unverified calls between individual node implementations.

Main entry points: [`js/shared`](https://github.com/pixaroma/comfyui-pixaroma/tree/main/js/shared) (Canvas compatibility), [`js/load_image/index.js`](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_image/index.js) (Load and resize), [`js/load_3d/engine.mjs`](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_3d/engine.mjs) (Load 3D), [`js/shared/api_url.mjs`](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/api_url.mjs) (API URL helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_media["Media workflow"]
  node_preview["Preview images<br/>[index.js]"]
  node_load_image["Load and resize<br/>[index.js]"]
  node_compare["Compare images<br/>[index.js]"]
  node_paint["Paint and edit<br/>[engine.mjs]"]
  node_outpaint["Outpaint images<br/>[core.mjs]"]
  node_save_image["Save images<br/>[index.js]"]
  node_save_video["Save video<br/>[index.js]"]
  node_load_video["Load video<br/>[node_load_video.py]"]
  node_load3d["Load 3D<br/>[engine.mjs]"]
  node_save3d["Save 3D<br/>[node_save_3d.py]"]
end

subgraph group_prompt["Prompt tools"]
  node_prompt_editor["Prompt editor<br/>[library_editor.mjs]"]
  node_prompt_tools["Prompt nodes<br/>[index.js]"]
end

subgraph group_canvas["Canvas tools"]
  node_canvas_edit["Canvas editing<br/>[fx_engine.mjs]"]
  node_workflow_browser["Workflow browser<br/>[index.js]"]
  node_notes["Workflow notes<br/>[core.mjs]"]
  node_help_browser["Node help<br/>[index.js]"]
end

subgraph group_shared["Shared frontend"]
  node_shared["Canvas compatibility"]
  node_shared_help["Help registry<br/>[help.mjs]"]
  node_shared_settings["Node settings<br/>[node_settings.mjs]"]
  node_api_urls["API URL helper<br/>[api_url.mjs]"]
end

subgraph group_server["Server integration"]
  node_routes["Pixaroma API routes<br/>[server_routes.py]"]
end

node_user(("ComfyUI user"))
node_comfy["ComfyUI workflow"]

node_user -->|"builds workflow"| node_comfy
node_comfy -->|"loads media"| node_load_image
node_comfy -->|"previews results"| node_preview
node_comfy -->|"compares images"| node_compare
node_comfy -.->|"edits images"| node_paint
node_comfy -.->|"extends images"| node_outpaint
node_comfy -->|"saves images"| node_save_image
node_comfy -->|"loads video"| node_load_video
node_comfy -->|"saves video"| node_save_video
node_comfy -->|"loads models"| node_load3d
node_comfy -->|"saves models"| node_save3d
node_user -->|"writes prompts"| node_prompt_editor
node_comfy -->|"uses prompts"| node_prompt_tools
node_user -.->|"browses workflows"| node_workflow_browser
node_user -->|"explains workflow"| node_notes
node_user -->|"opens help"| node_help_browser
node_shared -->|"provides help registry"| node_shared_help
node_shared -->|"provides settings"| node_shared_settings
node_load_image -->|"builds API URLs"| node_api_urls
node_load3d -->|"builds API URLs"| node_api_urls
node_user -.->|"requests media services"| node_routes

click node_preview "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/preview/index.js"
click node_load_image "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_image/index.js"
click node_compare "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/compare/index.js"
click node_paint "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/paint/engine.mjs"
click node_outpaint "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/outpaint/core.mjs"
click node_save_image "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/save_image/index.js"
click node_save_video "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/save_video/index.js"
click node_load_video "https://github.com/pixaroma/comfyui-pixaroma/blob/main/nodes/node_load_video.py"
click node_load3d "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_3d/engine.mjs"
click node_save3d "https://github.com/pixaroma/comfyui-pixaroma/blob/main/nodes/node_save_3d.py"
click node_prompt_editor "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/prompt/library_editor.mjs"
click node_prompt_tools "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/prompt_each/index.js"
click node_canvas_edit "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/composer/fx_engine.mjs"
click node_workflow_browser "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/workflow_browser/index.js"
click node_notes "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/note/core.mjs"
click node_help_browser "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/help_browser/index.js"
click node_shared "https://github.com/pixaroma/comfyui-pixaroma/tree/main/js/shared"
click node_shared_help "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/help.mjs"
click node_shared_settings "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/node_settings.mjs"
click node_api_urls "https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/api_url.mjs"
click node_routes "https://github.com/pixaroma/comfyui-pixaroma/blob/main/server_routes.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_preview,node_load_image,node_compare,node_paint,node_outpaint,node_save_image,node_save_video,node_load_video,node_load3d,node_save3d,node_user,node_comfy toneBlue
class node_prompt_editor,node_prompt_tools toneAmber
class node_canvas_edit,node_workflow_browser,node_notes,node_help_browser toneMint
class node_shared,node_shared_help,node_shared_settings,node_api_urls toneRose
class node_routes toneIndigo
```

## Components

### Media workflow

- [Preview images](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/preview/index.js): `js/preview/index.js`
- [Load and resize](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_image/index.js): `js/load_image/index.js`
- [Compare images](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/compare/index.js): `js/compare/index.js`
- [Paint and edit](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/paint/engine.mjs): `js/paint/engine.mjs`
- [Outpaint images](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/outpaint/core.mjs): `js/outpaint/core.mjs`
- [Save images](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/save_image/index.js): `js/save_image/index.js`
- [Save video](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/save_video/index.js): `js/save_video/index.js`
- [Load video](https://github.com/pixaroma/comfyui-pixaroma/blob/main/nodes/node_load_video.py): `nodes/node_load_video.py`
- [Load 3D](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/load_3d/engine.mjs): `js/load_3d/engine.mjs`
- [Save 3D](https://github.com/pixaroma/comfyui-pixaroma/blob/main/nodes/node_save_3d.py): `nodes/node_save_3d.py`

### Prompt tools

- [Prompt editor](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/prompt/library_editor.mjs): `js/prompt/library_editor.mjs`
- [Prompt nodes](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/prompt_each/index.js): `js/prompt_each/index.js`

### Canvas tools

- [Canvas editing](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/composer/fx_engine.mjs): `js/composer/fx_engine.mjs`
- [Workflow browser](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/workflow_browser/index.js): `js/workflow_browser/index.js`
- [Workflow notes](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/note/core.mjs): `js/note/core.mjs`
- [Node help](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/help_browser/index.js): `js/help_browser/index.js`

### Shared frontend

- [Canvas compatibility](https://github.com/pixaroma/comfyui-pixaroma/tree/main/js/shared): `js/shared`
- [Help registry](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/help.mjs): `js/shared/help.mjs`
- [Node settings](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/node_settings.mjs): `js/shared/node_settings.mjs`
- [API URL helper](https://github.com/pixaroma/comfyui-pixaroma/blob/main/js/shared/api_url.mjs): `js/shared/api_url.mjs`

### Server integration

- [Pixaroma API routes](https://github.com/pixaroma/comfyui-pixaroma/blob/main/server_routes.py): `server_routes.py`

### Other components

- **ComfyUI user**
- **ComfyUI workflow**

## Connections

- ComfyUI user → ComfyUI workflow: builds workflow
- ComfyUI workflow → Load and resize: loads media
- ComfyUI workflow → Preview images: previews results
- ComfyUI workflow → Compare images: compares images
- ComfyUI workflow → Paint and edit: edits images
- ComfyUI workflow → Outpaint images: extends images
- ComfyUI workflow → Save images: saves images
- ComfyUI workflow → Load video: loads video
- ComfyUI workflow → Save video: saves video
- ComfyUI workflow → Load 3D: loads models
- ComfyUI workflow → Save 3D: saves models
- ComfyUI user → Prompt editor: writes prompts
- ComfyUI workflow → Prompt nodes: uses prompts
- ComfyUI user → Workflow browser: browses workflows
- ComfyUI user → Workflow notes: explains workflow
- ComfyUI user → Node help: opens help
- Canvas compatibility → Help registry: provides help registry (evidence: `js/shared/index.mjs`)
- Canvas compatibility → Node settings: provides settings (evidence: `js/shared/index.mjs`)
- Load and resize → API URL helper: builds API URLs (evidence: `js/load_image/index.js`)
- Load 3D → API URL helper: builds API URLs (evidence: `js/load_3d/engine.mjs`)
- ComfyUI user → Pixaroma API routes: requests media services
