# bgvinay7/opencreator architecture

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

- Interactive diagram: https://gitdiagram.com/bgvinay7/opencreator
- Repository: https://github.com/bgvinay7/opencreator

## Overview

OpenCreator is a local-first AI workspace for creators, combining visual creation tools with Codex-powered agent conversations. The main user workflow starts in the shared Web interface, reaches the local Runtime, and returns creation results or agent-run updates to the workspace. The README documents creation, reusable Skills, scheduling, memory, approvals, and versioning; the graph preserves these product branches. Relationships beyond the README and SOURCE INDEX references are left out rather than inferred from filenames.

Main entry points: [`apps/daemon/src/runs/manager.ts`](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/runs/manager.ts) (Agent runs), [`apps/web/src/app/AppController.tsx`](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/app/AppController.tsx) (Web workspace), [`apps/web/src/features/dashboard/creator-workspace.ts`](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/features/dashboard/creator-workspace.ts) (Creator workspaces), [`apps/web/src/runtime/client.ts`](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/runtime/client.ts) (Runtime client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["User workspace"]
  node_web["Web workspace<br/>[AppController.tsx]"]
  node_creator_ui["Creator workspaces"]
  node_web_client["Runtime client<br/>[client.ts]"]
  node_event_stream["Run event stream<br/>[sse.ts]"]
end

subgraph group_runtime["Local runtime"]
  node_daemon["Local Runtime API<br/>[server.ts]"]
  node_creator_routes["Creator API<br/>[routes.creator.ts]"]
end

subgraph group_creation["Creator workflows"]
  node_creator_service["Creator jobs<br/>[service.ts]"]
  node_creator_dispatch["Creation dispatch"]
  node_creator_stages["Creation stages<br/>[stage-runner.ts]"]
  node_video_translation["Video translation<br/>[executor.ts]"]
  node_image_video["Image and video generation<br/>[service.ts]"]
  node_writing["Writing tools<br/>[executor.ts]"]
  node_stickman["Stickman animation"]
end

subgraph group_agent["Agent capabilities"]
  node_runs["Agent runs<br/>[manager.ts]"]
  node_codex["Codex execution"]
  node_skills["Skills and MCP<br/>[manager.ts]"]
  node_schedules["Schedules<br/>[service.ts]"]
  node_memory["Memory<br/>[service.ts]"]
  node_approvals["Approvals<br/>[manager.ts]"]
end

subgraph group_state["Local state"]
  node_database[("Local database<br/>[database.ts]")]
  node_repositories["State repositories<br/>[repositories.ts]"]
end

node_creator(("Creator"))

node_creator -->|"uses"| node_web
node_web -->|"opens tools"| node_creator_ui
node_creator_ui -.->|"submits work"| node_web_client
node_web_client -->|"requests runtime"| node_daemon
node_daemon -.->|"routes requests"| node_creator_routes
node_creator_routes -->|"manages jobs"| node_creator_service
node_creator_service -->|"dispatches commands"| node_creator_dispatch
node_creator -->|"can translate video"| node_video_translation
node_creator -->|"can generate media"| node_image_video
node_creator -->|"can write content"| node_writing
node_creator -->|"can create animation"| node_stickman
node_creator -->|"can guide tasks"| node_runs
node_runs -->|"executes with"| node_codex
node_web -->|"subscribes to runs"| node_event_stream
node_event_stream -.->|"receives updates"| node_runs
node_creator -->|"manages Skills"| node_skills
node_creator -->|"manages schedules"| node_schedules
node_creator -->|"uses memory"| node_memory
node_creator -->|"reviews approvals"| node_approvals
node_database -->|"backs"| node_repositories
node_runs -->|"persists run state"| node_repositories

click node_web "https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/app/AppController.tsx"
click node_creator_ui "https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/features/dashboard/creator-workspace.ts"
click node_web_client "https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/runtime/client.ts"
click node_event_stream "https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/runtime/sse.ts"
click node_daemon "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/api/server.ts"
click node_creator_routes "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/api/routes.creator.ts"
click node_creator_service "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/service.ts"
click node_creator_dispatch "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/command-dispatcher.ts"
click node_creator_stages "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/stage-runner.ts"
click node_video_translation "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/smart-dubbing/executor.ts"
click node_image_video "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/image-generation/service.ts"
click node_writing "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/article/executor.ts"
click node_stickman "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/stickman/remotion-executor.ts"
click node_runs "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/runs/manager.ts"
click node_codex "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/codex/app-server-host-2026-07-28.ts"
click node_skills "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/codex/skills/manager.ts"
click node_schedules "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/scheduler/service.ts"
click node_memory "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/memory/service.ts"
click node_approvals "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/approvals/manager.ts"
click node_database "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/storage/database.ts"
click node_repositories "https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/storage/repositories.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_web,node_creator_ui,node_web_client,node_event_stream toneBlue
class node_daemon,node_creator_routes toneAmber
class node_creator_service,node_creator_dispatch,node_creator_stages,node_video_translation,node_image_video,node_writing,node_stickman toneMint
class node_runs,node_codex,node_skills,node_schedules,node_memory,node_approvals toneRose
class node_database,node_repositories,node_creator toneIndigo
```

## Components

### User workspace

- [Web workspace](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/app/AppController.tsx): `apps/web/src/app/AppController.tsx`
- [Creator workspaces](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/features/dashboard/creator-workspace.ts): `apps/web/src/features/dashboard/creator-workspace.ts`
- [Runtime client](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/runtime/client.ts): `apps/web/src/runtime/client.ts`
- [Run event stream](https://github.com/bgvinay7/opencreator/blob/master/apps/web/src/runtime/sse.ts): `apps/web/src/runtime/sse.ts`

### Local runtime

- [Local Runtime API](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/api/server.ts): `apps/daemon/src/api/server.ts`
- [Creator API](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/api/routes.creator.ts): `apps/daemon/src/api/routes.creator.ts`

### Creator workflows

- [Creator jobs](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/service.ts): `apps/daemon/src/creator/service.ts`
- [Creation dispatch](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/command-dispatcher.ts): `apps/daemon/src/creator/command-dispatcher.ts`
- [Creation stages](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/stage-runner.ts): `apps/daemon/src/creator/stage-runner.ts`
- [Video translation](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/smart-dubbing/executor.ts): `apps/daemon/src/creator/smart-dubbing/executor.ts`
- [Image and video generation](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/image-generation/service.ts): `apps/daemon/src/image-generation/service.ts`
- [Writing tools](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/article/executor.ts): `apps/daemon/src/creator/article/executor.ts`
- [Stickman animation](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/creator/stickman/remotion-executor.ts): `apps/daemon/src/creator/stickman/remotion-executor.ts`

### Agent capabilities

- [Agent runs](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/runs/manager.ts): `apps/daemon/src/runs/manager.ts`
- [Codex execution](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/codex/app-server-host-2026-07-28.ts): `apps/daemon/src/codex/app-server-host-2026-07-28.ts`
- [Skills and MCP](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/codex/skills/manager.ts): `apps/daemon/src/codex/skills/manager.ts`
- [Schedules](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/scheduler/service.ts): `apps/daemon/src/scheduler/service.ts`
- [Memory](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/memory/service.ts): `apps/daemon/src/memory/service.ts`
- [Approvals](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/approvals/manager.ts): `apps/daemon/src/approvals/manager.ts`

### Local state

- [Local database](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/storage/database.ts): `apps/daemon/src/storage/database.ts`
- [State repositories](https://github.com/bgvinay7/opencreator/blob/master/apps/daemon/src/storage/repositories.ts): `apps/daemon/src/storage/repositories.ts`

### Other components

- **Creator**

## Connections

- Creator → Web workspace: uses (evidence: `README.md`)
- Web workspace → Creator workspaces: opens tools (evidence: `apps/web/src/app/AppController.tsx`)
- Creator workspaces → Runtime client: submits work
- Runtime client → Local Runtime API: requests runtime (evidence: `README.md`)
- Local Runtime API → Creator API: routes requests
- Creator API → Creator jobs: manages jobs (evidence: `apps/daemon/src/api/routes.creator.ts`)
- Creator jobs → Creation dispatch: dispatches commands (evidence: `apps/daemon/src/agent-tools/creator-tools.ts`)
- Creator → Video translation: can translate video (evidence: `README.md`)
- Creator → Image and video generation: can generate media (evidence: `README.md`)
- Creator → Writing tools: can write content (evidence: `README.md`)
- Creator → Stickman animation: can create animation (evidence: `README.md`)
- Creator → Agent runs: can guide tasks (evidence: `README.md`)
- Agent runs → Codex execution: executes with (evidence: `apps/daemon/src/runs/manager.ts`)
- Web workspace → Run event stream: subscribes to runs (evidence: `apps/web/src/app/AppController.tsx`)
- Run event stream → Agent runs: receives updates
- Creator → Skills and MCP: manages Skills (evidence: `README.md`)
- Creator → Schedules: manages schedules (evidence: `README.md`)
- Creator → Memory: uses memory (evidence: `README.md`)
- Creator → Approvals: reviews approvals (evidence: `README.md`)
- Local database → State repositories: backs (evidence: `apps/daemon/src/storage/repositories.ts`)
- Agent runs → State repositories: persists run state (evidence: `apps/daemon/src/runs/manager.ts`)
