# blenderai/blenderrl architecture

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

- Interactive diagram: https://gitdiagram.com/blenderai/blenderrl
- Repository: https://github.com/blenderai/blenderrl

## Overview

BlenderRL is presented as a Blender add-on for issuing text or voice requests and automating 3D tasks, with OpenUSD asset workflows also described in the README. The visible implementation is a single add-on file: its panel dispatches operators, which make a placeholder API request and currently add a cube. Voice transcription, real RL task execution, and OpenUSD integration are documented capabilities, but are not evidenced as implemented in the sampled code. The repository also contains a separate documentation-theme site; its unsampled pages are not expanded here.

Main entry points: [`BRL.py`](https://github.com/blenderai/blenderrl/blob/main/BRL.py) (Voice request), [`BRL001_SoundSupport.py`](https://github.com/blenderai/blenderrl/blob/main/BRL001_SoundSupport.py) (Audio capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_addon["Blender Add-on"]
  node_panel["Viewport panel<br/>[BRL.py]"]
  node_textop["Text request<br/>[BRL.py]"]
  node_voiceop["Voice request<br/>[BRL.py]"]
  node_audio["Audio capture"]
  node_request["Model request<br/>[BRL.py]"]
  node_scene["Blender scene<br/>[BRL.py]"]
end

subgraph group_integrations["External Integrations"]
  node_api{{"Model API"}}
  node_other3d{{"Other 3D tools"}}
end

subgraph group_assets["Asset Workflows"]
  node_usd["OpenUSD assets"]
end

node_user(("Blender user"))

node_user -->|"opens"| node_panel
node_panel -->|"dispatches"| node_textop
node_panel -->|"dispatches"| node_voiceop
node_textop -->|"calls"| node_request
node_voiceop -->|"calls"| node_request
node_request -->|"posts prompt"| node_api
node_api -->|"returns response"| node_request
node_textop -->|"adds cube"| node_scene
node_voiceop -->|"adds cube"| node_scene
node_voiceop -.->|"records audio"| node_audio
node_scene -.->|"exports assets"| node_usd
node_usd -.->|"shares assets"| node_other3d

click node_panel "https://github.com/blenderai/blenderrl/blob/main/BRL.py"
click node_textop "https://github.com/blenderai/blenderrl/blob/main/BRL.py"
click node_voiceop "https://github.com/blenderai/blenderrl/blob/main/BRL.py"
click node_audio "https://github.com/blenderai/blenderrl/blob/main/BRL001_SoundSupport.py"
click node_request "https://github.com/blenderai/blenderrl/blob/main/BRL.py"
click node_scene "https://github.com/blenderai/blenderrl/blob/main/BRL.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_panel,node_textop,node_voiceop,node_audio,node_request,node_scene,node_user toneBlue
class node_api,node_other3d toneAmber
class node_usd toneMint
```

## Components

### Blender Add-on

- [Viewport panel](https://github.com/blenderai/blenderrl/blob/main/BRL.py): `BRL.py`
- [Text request](https://github.com/blenderai/blenderrl/blob/main/BRL.py): `BRL.py`
- [Voice request](https://github.com/blenderai/blenderrl/blob/main/BRL.py): `BRL.py`
- [Audio capture](https://github.com/blenderai/blenderrl/blob/main/BRL001_SoundSupport.py): `BRL001_SoundSupport.py`
- [Model request](https://github.com/blenderai/blenderrl/blob/main/BRL.py): `BRL.py`
- [Blender scene](https://github.com/blenderai/blenderrl/blob/main/BRL.py): `BRL.py`

### External Integrations

- **Model API**
- **Other 3D tools**

### Asset Workflows

- **OpenUSD assets**

### Other components

- **Blender user**

## Connections

- Blender user → Viewport panel: opens (evidence: `README.md`)
- Viewport panel → Text request: dispatches (evidence: `BRL.py`)
- Viewport panel → Voice request: dispatches (evidence: `BRL.py`)
- Text request → Model request: calls (evidence: `BRL.py`)
- Voice request → Model request: calls (evidence: `BRL.py`)
- Model request → Model API: posts prompt (evidence: `BRL.py`)
- Model API → Model request: returns response (evidence: `BRL.py`)
- Text request → Blender scene: adds cube (evidence: `BRL.py`)
- Voice request → Blender scene: adds cube (evidence: `BRL.py`)
- Voice request → Audio capture: records audio
- Blender scene → OpenUSD assets: exports assets (evidence: `README.md`)
- OpenUSD assets → Other 3D tools: shares assets (evidence: `README.md`)
