# visualbruno/3dgenstudio architecture

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

- Interactive diagram: https://gitdiagram.com/visualbruno/3dgenstudio
- Repository: https://github.com/visualbruno/3dgenstudio

## Overview

3D Gen Studio is an AI-assisted 3D production workspace: users manage projects, create assets through visual workflows and specialist editors, then process, assemble, and export results. The browser routes into project workspaces and tools; the backend and Python mesh service provide persistence and processing, while MCP exposes headless automation. README capabilities include image editing, graph/kanban/batch workflows, procedural buildings, trees, VFX, mesh editing, assembly fitting, and engine plugins. Several links are documented rather than source-verified; edge evidence is limited to excerpts and explicit README statements.

Main entry points: [`gateway.js`](https://github.com/visualbruno/3dgenstudio/blob/main/gateway.js) (ComfyUI workflows), [`vfx/preview.js`](https://github.com/visualbruno/3dgenstudio/blob/main/vfx/preview.js) (VFX authoring), [`src/pages/MeshEditorPage.jsx`](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/MeshEditorPage.jsx) (Mesh editor), [`server.js`](https://github.com/visualbruno/3dgenstudio/blob/main/server.js) (Node backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace"]
  node_app["Studio routes<br/>[App.jsx]"]
  node_projects["Projects &amp; assets"]
  node_kanban["Kanban boards<br/>[KanbanPage.jsx]"]
  node_graph["Visual graph<br/>[GraphPage.jsx]"]
  node_batch["Batch runner<br/>[runner.js]"]
end

subgraph group_creation["Asset Creation"]
  node_image["Image editor"]
  node_comfy["ComfyUI workflows<br/>[gateway.js]"]
  node_building["Building generator<br/>[compile.js]"]
  node_tree["Tree generator<br/>[build.py]"]
  node_vfx["VFX authoring<br/>[preview.js]"]
end

subgraph group_mesh["Mesh Production"]
  node_mesh_editor["Mesh editor<br/>[MeshEditorPage.jsx]"]
  node_mesh_tools["Mesh processing<br/>[meshes.py]"]
  node_retopo["Auto retopology<br/>[pipeline.py]"]
  node_assembly["Assembly fitting<br/>[pipeline.py]"]
end

subgraph group_services["Runtime Services"]
  node_storage[("Project persistence<br/>[storage.js]")]
  node_db_driver[("SQL adapters<br/>[index.js]")]
  node_node_server["Node backend<br/>[server.js]"]
  node_python_service["Python service<br/>[main.py]"]
  node_mcp["MCP automation<br/>[index.js]"]
end

subgraph group_integrations["Export Integrations"]
  node_unity["Unity importer"]
  node_unreal["Unreal importer"]
end

node_user(("Artist / operator"))
node_external_ai(("AI providers"))

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_projects
node_user -.->|"organizes work"| node_kanban
node_user -.->|"builds pipelines"| node_graph
node_user -.->|"runs stages"| node_batch
node_user -.->|"edits images"| node_image
node_user -.->|"edits meshes"| node_mesh_editor
node_user -.->|"draws plans"| node_building
node_user -.->|"generates trees"| node_tree
node_user -.->|"authors effects"| node_vfx
node_graph -.->|"runs workflows"| node_comfy
node_kanban -.->|"runs workflows"| node_comfy
node_batch -.->|"runs stages"| node_comfy
node_mesh_editor -.->|"requests processing"| node_mesh_tools
node_mesh_tools -.->|"runs retopology"| node_retopo
node_mesh_editor -.->|"fits pieces"| node_assembly
node_node_server -.->|"persists data"| node_storage
node_storage -->|"executes SQL"| node_db_driver
node_node_server -->|"proxies requests"| node_python_service
node_python_service -->|"routes mesh calls"| node_mesh_tools
node_user -.->|"automates via client"| node_mcp
node_mcp -->|"calls backend"| node_node_server
node_comfy -.->|"submits generation"| node_external_ai
node_vfx -.->|"exports bundles"| node_unity
node_vfx -.->|"exports bundles"| node_unreal

click node_app "https://github.com/visualbruno/3dgenstudio/blob/main/src/App.jsx"
click node_projects "https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/ProjectWorkspacePage.jsx"
click node_kanban "https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/KanbanPage.jsx"
click node_graph "https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/GraphPage.jsx"
click node_batch "https://github.com/visualbruno/3dgenstudio/blob/main/batch/runner.js"
click node_image "https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/ImageEditorPage.jsx"
click node_comfy "https://github.com/visualbruno/3dgenstudio/blob/main/gateway.js"
click node_building "https://github.com/visualbruno/3dgenstudio/blob/main/building/compile.js"
click node_tree "https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/treegen/build.py"
click node_vfx "https://github.com/visualbruno/3dgenstudio/blob/main/vfx/preview.js"
click node_mesh_editor "https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/MeshEditorPage.jsx"
click node_mesh_tools "https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/routes/meshes.py"
click node_retopo "https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/autoretopo/pipeline.py"
click node_assembly "https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/assemblyfit/pipeline.py"
click node_storage "https://github.com/visualbruno/3dgenstudio/blob/main/storage.js"
click node_db_driver "https://github.com/visualbruno/3dgenstudio/blob/main/db/index.js"
click node_node_server "https://github.com/visualbruno/3dgenstudio/blob/main/server.js"
click node_python_service "https://github.com/visualbruno/3dgenstudio/blob/main/python-server/main.py"
click node_mcp "https://github.com/visualbruno/3dgenstudio/blob/main/mcp/index.js"
click node_unity "https://github.com/visualbruno/3dgenstudio/blob/main/plugins/unity/com.3dgenstudio.vfx-import/Editor/VfxBundleImporter.cs"
click node_unreal "https://github.com/visualbruno/3dgenstudio/blob/main/plugins/unreal/VfxImport/Source/VfxImportEditor/Private/VfxBundleImporter.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_app,node_projects,node_kanban,node_graph,node_batch toneBlue
class node_image,node_comfy,node_building,node_tree,node_vfx toneAmber
class node_mesh_editor,node_mesh_tools,node_retopo,node_assembly toneMint
class node_storage,node_db_driver,node_node_server,node_python_service,node_mcp toneRose
class node_unity,node_unreal,node_user,node_external_ai toneIndigo
```

## Components

### Workspace

- [Studio routes](https://github.com/visualbruno/3dgenstudio/blob/main/src/App.jsx): `src/App.jsx`
- [Projects & assets](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/ProjectWorkspacePage.jsx): `src/pages/ProjectWorkspacePage.jsx`
- [Kanban boards](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/KanbanPage.jsx): `src/pages/KanbanPage.jsx`
- [Visual graph](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/GraphPage.jsx): `src/pages/GraphPage.jsx`
- [Batch runner](https://github.com/visualbruno/3dgenstudio/blob/main/batch/runner.js): `batch/runner.js`

### Asset Creation

- [Image editor](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/ImageEditorPage.jsx): `src/pages/ImageEditorPage.jsx`
- [ComfyUI workflows](https://github.com/visualbruno/3dgenstudio/blob/main/gateway.js): `gateway.js`
- [Building generator](https://github.com/visualbruno/3dgenstudio/blob/main/building/compile.js): `building/compile.js`
- [Tree generator](https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/treegen/build.py): `python-server/app/services/treegen/build.py`
- [VFX authoring](https://github.com/visualbruno/3dgenstudio/blob/main/vfx/preview.js): `vfx/preview.js`

### Mesh Production

- [Mesh editor](https://github.com/visualbruno/3dgenstudio/blob/main/src/pages/MeshEditorPage.jsx): `src/pages/MeshEditorPage.jsx`
- [Mesh processing](https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/routes/meshes.py): `python-server/app/routes/meshes.py`
- [Auto retopology](https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/autoretopo/pipeline.py): `python-server/app/services/autoretopo/pipeline.py`
- [Assembly fitting](https://github.com/visualbruno/3dgenstudio/blob/main/python-server/app/services/assemblyfit/pipeline.py): `python-server/app/services/assemblyfit/pipeline.py`

### Runtime Services

- [Project persistence](https://github.com/visualbruno/3dgenstudio/blob/main/storage.js): `storage.js`
- [SQL adapters](https://github.com/visualbruno/3dgenstudio/blob/main/db/index.js): `db/index.js`
- [Node backend](https://github.com/visualbruno/3dgenstudio/blob/main/server.js): `server.js`
- [Python service](https://github.com/visualbruno/3dgenstudio/blob/main/python-server/main.py): `python-server/main.py`
- [MCP automation](https://github.com/visualbruno/3dgenstudio/blob/main/mcp/index.js): `mcp/index.js`

### Export Integrations

- [Unity importer](https://github.com/visualbruno/3dgenstudio/blob/main/plugins/unity/com.3dgenstudio.vfx-import/Editor/VfxBundleImporter.cs): `plugins/unity/com.3dgenstudio.vfx-import/Editor/VfxBundleImporter.cs`
- [Unreal importer](https://github.com/visualbruno/3dgenstudio/blob/main/plugins/unreal/VfxImport/Source/VfxImportEditor/Private/VfxBundleImporter.cpp): `plugins/unreal/VfxImport/Source/VfxImportEditor/Private/VfxBundleImporter.cpp`

### Other components

- **Artist / operator**
- **AI providers**

## Connections

- Artist / operator → Studio routes: uses (evidence: `README.md`)
- Studio routes → Projects & assets: routes to (evidence: `src/App.jsx`)
- Artist / operator → Kanban boards: organizes work (evidence: `README.md`)
- Artist / operator → Visual graph: builds pipelines (evidence: `README.md`)
- Artist / operator → Batch runner: runs stages (evidence: `README.md`)
- Artist / operator → Image editor: edits images (evidence: `README.md`)
- Artist / operator → Mesh editor: edits meshes (evidence: `README.md`)
- Artist / operator → Building generator: draws plans (evidence: `README.md`)
- Artist / operator → Tree generator: generates trees (evidence: `README.md`)
- Artist / operator → VFX authoring: authors effects (evidence: `README.md`)
- Visual graph → ComfyUI workflows: runs workflows (evidence: `README.md`)
- Kanban boards → ComfyUI workflows: runs workflows (evidence: `README.md`)
- Batch runner → ComfyUI workflows: runs stages (evidence: `README.md`)
- Mesh editor → Mesh processing: requests processing (evidence: `README.md`)
- Mesh processing → Auto retopology: runs retopology
- Mesh editor → Assembly fitting: fits pieces
- Node backend → Project persistence: persists data
- Project persistence → SQL adapters: executes SQL (evidence: `storage.js`)
- Node backend → Python service: proxies requests (evidence: `python-server/main.py`)
- Python service → Mesh processing: routes mesh calls (evidence: `python-server/main.py`)
- Artist / operator → MCP automation: automates via client (evidence: `mcp/index.js`)
- MCP automation → Node backend: calls backend (evidence: `mcp/index.js`)
- ComfyUI workflows → AI providers: submits generation (evidence: `README.md`)
- VFX authoring → Unity importer: exports bundles (evidence: `README.md`)
- VFX authoring → Unreal importer: exports bundles (evidence: `README.md`)
