# justin-sky/ai-art-engine architecture

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

- Interactive diagram: https://gitdiagram.com/justin-sky/ai-art-engine
- Repository: https://github.com/justin-sky/ai-art-engine

## Overview

AI Art Engine is a local-first Electron desktop app for generating and reusing image, video, audio, 3D, and spatial assets, then assembling them into workflows and timelines. The main user path runs from the studio workspace through graph-task orchestration and graph execution to model-provider calls and saved project assets. Separate branches cover 3D direction, semantic timeline editing, and MCP agents. The graph reflects README capabilities and indexed/import evidence; several UI-to-service details and unsampled subsystems are documented only at a high level.

Main entry points: [`src/renderer/src/App.vue`](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/App.vue) (Studio workspace), [`src/preload/index.ts`](https://github.com/justin-sky/ai-art-engine/blob/main/src/preload/index.ts) (Studio bridge), [`src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue`](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue) (Graph editor), [`src/renderer/src/stores/graphTasks.ts`](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/stores/graphTasks.ts) (Graph task queue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop shell"]
  node_workspace["Studio workspace<br/>[App.vue]"]
  node_preload["Studio bridge<br/>[index.ts]"]
  node_main["Electron main<br/>[index.ts]"]
  node_settings[("Provider settings<br/>[settingsService.ts]")]
end

subgraph group_creation["Asset creation"]
  node_graph_ui["Graph editor"]
  node_task_queue["Graph task queue<br/>[graphTasks.ts]"]
  node_run_session["Graph run session"]
  node_graph_engine["Graph executor<br/>[engine.ts]"]
  node_providers{{"Model providers"}}
end

subgraph group_project["Project workspace"]
  node_project_ui["Project state<br/>[project.ts]"]
  node_project_service["Project service<br/>[projectService.ts]"]
  node_asset_store[("Project assets")]
end

subgraph group_production["Production tools"]
  node_director["3D director"]
  node_semantic["Semantic timeline"]
  node_timeline_ui["Timeline editor"]
end

subgraph group_integration["Agent integrations"]
  node_mcp["MCP tool server"]
  node_storage["Object storage"]
end

node_user(("User"))
node_external_agent(("External agent"))

node_user -->|"uses"| node_workspace
node_workspace -.->|"requests"| node_preload
node_preload -->|"bridges IPC"| node_main
node_workspace -->|"manages project"| node_project_ui
node_project_ui -->|"loads assets"| node_project_service
node_project_service -.->|"persists assets"| node_asset_store
node_user -->|"builds workflows"| node_graph_ui
node_graph_ui -->|"enqueues runs"| node_task_queue
node_task_queue -.->|"runs tasks"| node_run_session
node_run_session -.->|"executes graph"| node_graph_engine
node_graph_engine -.->|"invokes models"| node_providers
node_providers -.->|"uses configuration"| node_settings
node_user -->|"directs scenes"| node_director
node_user -->|"edits timeline"| node_timeline_ui
node_timeline_ui -.->|"analyzes media"| node_semantic
node_external_agent -->|"controls project"| node_mcp
node_mcp -.->|"operates app"| node_main
node_user -.->|"configures uploads"| node_storage

click node_workspace "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/App.vue"
click node_preload "https://github.com/justin-sky/ai-art-engine/blob/main/src/preload/index.ts"
click node_main "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/index.ts"
click node_project_ui "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/stores/project.ts"
click node_project_service "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/projectService.ts"
click node_asset_store "https://github.com/justin-sky/ai-art-engine/tree/main/src/main/repositories"
click node_graph_ui "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue"
click node_task_queue "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/stores/graphTasks.ts"
click node_run_session "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/features/graph/controllers/useGraphRunSession.ts"
click node_graph_engine "https://github.com/justin-sky/ai-art-engine/blob/main/src/shared/graph/execute/engine.ts"
click node_providers "https://github.com/justin-sky/ai-art-engine/tree/main/src/main/services/modelProviders"
click node_settings "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/settingsService.ts"
click node_director "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/features/director/useDirectorStageScene.ts"
click node_semantic "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/semanticTimeline/SemanticTimelineService.ts"
click node_timeline_ui "https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/components/SemanticTimelineEditor.vue"
click node_mcp "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/mcpServerService.ts"
click node_storage "https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/objectStorageUploadService.ts"

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_workspace,node_preload,node_main,node_settings,node_user toneBlue
class node_graph_ui,node_task_queue,node_run_session,node_graph_engine,node_providers toneAmber
class node_project_ui,node_project_service,node_asset_store toneMint
class node_director,node_semantic,node_timeline_ui toneRose
class node_mcp,node_storage,node_external_agent toneIndigo
```

## Components

### Desktop shell

- [Studio workspace](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/App.vue): `src/renderer/src/App.vue`
- [Studio bridge](https://github.com/justin-sky/ai-art-engine/blob/main/src/preload/index.ts): `src/preload/index.ts`
- [Electron main](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/index.ts): `src/main/index.ts`
- [Provider settings](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/settingsService.ts): `src/main/services/settingsService.ts`

### Asset creation

- [Graph editor](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue): `src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue`
- [Graph task queue](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/stores/graphTasks.ts): `src/renderer/src/stores/graphTasks.ts`
- [Graph run session](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/features/graph/controllers/useGraphRunSession.ts): `src/renderer/src/features/graph/controllers/useGraphRunSession.ts`
- [Graph executor](https://github.com/justin-sky/ai-art-engine/blob/main/src/shared/graph/execute/engine.ts): `src/shared/graph/execute/engine.ts`
- [Model providers](https://github.com/justin-sky/ai-art-engine/tree/main/src/main/services/modelProviders): `src/main/services/modelProviders`

### Project workspace

- [Project state](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/stores/project.ts): `src/renderer/src/stores/project.ts`
- [Project service](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/projectService.ts): `src/main/services/projectService.ts`
- [Project assets](https://github.com/justin-sky/ai-art-engine/tree/main/src/main/repositories): `src/main/repositories`

### Production tools

- [3D director](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/features/director/useDirectorStageScene.ts): `src/renderer/src/features/director/useDirectorStageScene.ts`
- [Semantic timeline](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/semanticTimeline/SemanticTimelineService.ts): `src/main/services/semanticTimeline/SemanticTimelineService.ts`
- [Timeline editor](https://github.com/justin-sky/ai-art-engine/blob/main/src/renderer/src/components/SemanticTimelineEditor.vue): `src/renderer/src/components/SemanticTimelineEditor.vue`

### Agent integrations

- [MCP tool server](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/mcpServerService.ts): `src/main/services/mcpServerService.ts`
- [Object storage](https://github.com/justin-sky/ai-art-engine/blob/main/src/main/services/objectStorageUploadService.ts): `src/main/services/objectStorageUploadService.ts`

### Other components

- **User**
- **External agent**

## Connections

- User → Studio workspace: uses (evidence: `README.md`)
- Studio workspace → Studio bridge: requests
- Studio bridge → Electron main: bridges IPC (evidence: `src/main/index.ts`)
- Studio workspace → Project state: manages project (evidence: `src/renderer/src/App.vue`)
- Project state → Project service: loads assets (evidence: `src/renderer/src/stores/project.ts`)
- Project service → Project assets: persists assets (evidence: `src/main/services/projectService.ts`)
- User → Graph editor: builds workflows (evidence: `README.md`)
- Graph editor → Graph task queue: enqueues runs (evidence: `src/renderer/src/components/dive/EditorDiveEpisodePipelineView.vue`)
- Graph task queue → Graph run session: runs tasks
- Graph run session → Graph executor: executes graph
- Graph executor → Model providers: invokes models
- Model providers → Provider settings: uses configuration
- User → 3D director: directs scenes (evidence: `README.md`)
- User → Timeline editor: edits timeline (evidence: `README.md`)
- Timeline editor → Semantic timeline: analyzes media
- External agent → MCP tool server: controls project (evidence: `README.md`)
- MCP tool server → Electron main: operates app (evidence: `src/main/index.ts`)
- User → Object storage: configures uploads
