# vasanthpranav/opendots architecture

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

- Interactive diagram: https://gitdiagram.com/vasanthpranav/opendots
- Repository: https://github.com/vasanthpranav/opendots

## Overview

OpenDots is a self-hosted workspace template for persistent specialist agents (“Dots”), accessed through web chat, calls, or Slack. The main workflow is to select a Dot, converse while it streams work and tool activity, review proposed page drafts, then approve them into an authorized Space for continued editing. Supporting capabilities include Dot computers, MCP connections with approval controls, realtime voice, Slack, and scheduled research tasks. The graph combines documented product flows with source-index references; several subsystem details are documented but their implementation was not sampled.

Main entry points: [`src/server/app.ts`](https://github.com/vasanthpranav/opendots/blob/main/src/server/app.ts) (HTTP routes), [`src/server/platform.ts`](https://github.com/vasanthpranav/opendots/blob/main/src/server/platform.ts) (Agent platform), [`src/client/Chat.tsx`](https://github.com/vasanthpranav/opendots/blob/main/src/client/Chat.tsx) (Dot conversation), [`src/client/api.ts`](https://github.com/vasanthpranav/opendots/blob/main/src/client/api.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Workspace experience"]
  node_web["Web application<br/>[App.tsx]"]
  node_chat["Dot conversation<br/>[Chat.tsx]"]
  node_voiceui["Call interface<br/>[CallView.tsx]"]
  node_clientapi["API client<br/>[api.ts]"]
end

subgraph group_pages["Spaces and pages"]
  node_spacesui["Space navigation<br/>[SpaceWorkspace.tsx]"]
  node_editor["Page editor<br/>[RichEditor.tsx]"]
  node_review["Review card<br/>[PageReviewCard.tsx]"]
  node_pageservice["Page service<br/>[pages.ts]"]
end

subgraph group_agents["Agent runtime"]
  node_http["HTTP routes<br/>[app.ts]"]
  node_runtime["Agent platform<br/>[platform.ts]"]
  node_dotagent["Specialist agent<br/>[dot-agent.ts]"]
  node_research["Scheduled research<br/>[runner.ts]"]
  node_intelligence["CopilotKit Intelligence"]
  node_model["Model provider"]
end

subgraph group_integrations["Tools and channels"]
  node_computer["Dot computer"]
  node_connections["MCP connections<br/>[connections.ts]"]
  node_voice["Voice service<br/>[voice.ts]"]
  node_slack["Slack channel<br/>[slack-channel.ts]"]
  node_channels["Channels SDK"]
  node_computerbackend["Computer service"]
  node_mcp["MCP servers"]
  node_speech["Realtime speech"]
end

subgraph group_state["Workspace state"]
  node_workspace[("Workspace store<br/>[workspace.ts]")]
  node_appstore[("Application store<br/>[store.ts]")]
end

node_owner(("Workspace owner"))
node_slackuser(("Slack user"))

node_owner -->|"uses"| node_web
node_web -->|"opens conversation"| node_chat
node_chat -->|"requests data"| node_clientapi
node_clientapi -->|"calls API"| node_http
node_http -->|"routes requests"| node_runtime
node_runtime -->|"creates agents"| node_dotagent
node_dotagent -->|"streams responses"| node_model
node_runtime -->|"manages threads"| node_intelligence
node_web -->|"opens Space"| node_spacesui
node_spacesui -->|"opens page"| node_editor
node_editor -->|"saves edits"| node_clientapi
node_chat -->|"renders review"| node_review
node_review -->|"submits decision"| node_clientapi
node_http -->|"routes page requests"| node_pageservice
node_pageservice -->|"stores pages"| node_workspace
node_review -->|"approves draft"| node_pageservice
node_http -->|"routes computer actions"| node_computer
node_computer -->|"controls computer"| node_computerbackend
node_http -->|"routes connection actions"| node_connections
node_connections -->|"invokes tools"| node_mcp
node_runtime -->|"provides call service"| node_voice
node_chat -->|"opens call view"| node_voiceui
node_voiceui -->|"uses realtime speech"| node_speech
node_voice -->|"bridges compute work"| node_dotagent
node_runtime -->|"configures channel"| node_slack
node_slackuser -->|"mentions Dot"| node_slack
node_slack -->|"uses SDK"| node_channels
node_channels -->|"dispatches messages"| node_dotagent
node_http -->|"runs scheduled tasks"| node_research
node_research -->|"stores task state"| node_appstore
node_runtime -->|"uses workspace state"| node_workspace
node_http -->|"reads application state"| node_appstore

click node_web "https://github.com/vasanthpranav/opendots/blob/main/src/client/App.tsx"
click node_chat "https://github.com/vasanthpranav/opendots/blob/main/src/client/Chat.tsx"
click node_voiceui "https://github.com/vasanthpranav/opendots/blob/main/src/client/CallView.tsx"
click node_clientapi "https://github.com/vasanthpranav/opendots/blob/main/src/client/api.ts"
click node_spacesui "https://github.com/vasanthpranav/opendots/blob/main/src/client/SpaceWorkspace.tsx"
click node_editor "https://github.com/vasanthpranav/opendots/blob/main/src/client/editor/RichEditor.tsx"
click node_review "https://github.com/vasanthpranav/opendots/blob/main/src/client/PageReviewCard.tsx"
click node_http "https://github.com/vasanthpranav/opendots/blob/main/src/server/app.ts"
click node_runtime "https://github.com/vasanthpranav/opendots/blob/main/src/server/platform.ts"
click node_dotagent "https://github.com/vasanthpranav/opendots/blob/main/src/server/dot-agent.ts"
click node_research "https://github.com/vasanthpranav/opendots/blob/main/src/server/runner.ts"
click node_pageservice "https://github.com/vasanthpranav/opendots/blob/main/src/server/pages.ts"
click node_computer "https://github.com/vasanthpranav/opendots/blob/main/src/server/computer-service.ts"
click node_connections "https://github.com/vasanthpranav/opendots/blob/main/src/server/connections.ts"
click node_voice "https://github.com/vasanthpranav/opendots/blob/main/src/server/voice.ts"
click node_slack "https://github.com/vasanthpranav/opendots/blob/main/src/server/slack-channel.ts"
click node_workspace "https://github.com/vasanthpranav/opendots/blob/main/src/server/workspace.ts"
click node_appstore "https://github.com/vasanthpranav/opendots/blob/main/src/server/store.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_chat,node_voiceui,node_clientapi,node_slackuser toneBlue
class node_spacesui,node_editor,node_review,node_pageservice toneAmber
class node_http,node_runtime,node_dotagent,node_research,node_intelligence,node_model toneMint
class node_computer,node_connections,node_voice,node_slack,node_channels,node_computerbackend,node_mcp,node_speech toneRose
class node_workspace,node_appstore,node_owner toneIndigo
```

## Components

### Workspace experience

- [Web application](https://github.com/vasanthpranav/opendots/blob/main/src/client/App.tsx): `src/client/App.tsx`
- [Dot conversation](https://github.com/vasanthpranav/opendots/blob/main/src/client/Chat.tsx): `src/client/Chat.tsx`
- [Call interface](https://github.com/vasanthpranav/opendots/blob/main/src/client/CallView.tsx): `src/client/CallView.tsx`
- [API client](https://github.com/vasanthpranav/opendots/blob/main/src/client/api.ts): `src/client/api.ts`

### Spaces and pages

- [Space navigation](https://github.com/vasanthpranav/opendots/blob/main/src/client/SpaceWorkspace.tsx): `src/client/SpaceWorkspace.tsx`
- [Page editor](https://github.com/vasanthpranav/opendots/blob/main/src/client/editor/RichEditor.tsx): `src/client/editor/RichEditor.tsx`
- [Review card](https://github.com/vasanthpranav/opendots/blob/main/src/client/PageReviewCard.tsx): `src/client/PageReviewCard.tsx`
- [Page service](https://github.com/vasanthpranav/opendots/blob/main/src/server/pages.ts): `src/server/pages.ts`

### Agent runtime

- [HTTP routes](https://github.com/vasanthpranav/opendots/blob/main/src/server/app.ts): `src/server/app.ts`
- [Agent platform](https://github.com/vasanthpranav/opendots/blob/main/src/server/platform.ts): `src/server/platform.ts`
- [Specialist agent](https://github.com/vasanthpranav/opendots/blob/main/src/server/dot-agent.ts): `src/server/dot-agent.ts`
- [Scheduled research](https://github.com/vasanthpranav/opendots/blob/main/src/server/runner.ts): `src/server/runner.ts`
- **CopilotKit Intelligence**
- **Model provider**

### Tools and channels

- [Dot computer](https://github.com/vasanthpranav/opendots/blob/main/src/server/computer-service.ts): `src/server/computer-service.ts`
- [MCP connections](https://github.com/vasanthpranav/opendots/blob/main/src/server/connections.ts): `src/server/connections.ts`
- [Voice service](https://github.com/vasanthpranav/opendots/blob/main/src/server/voice.ts): `src/server/voice.ts`
- [Slack channel](https://github.com/vasanthpranav/opendots/blob/main/src/server/slack-channel.ts): `src/server/slack-channel.ts`
- **Channels SDK**
- **Computer service**
- **MCP servers**
- **Realtime speech**

### Workspace state

- [Workspace store](https://github.com/vasanthpranav/opendots/blob/main/src/server/workspace.ts): `src/server/workspace.ts`
- [Application store](https://github.com/vasanthpranav/opendots/blob/main/src/server/store.ts): `src/server/store.ts`

### Other components

- **Workspace owner**
- **Slack user**

## Connections

- Workspace owner → Web application: uses (evidence: `README.md`)
- Web application → Dot conversation: opens conversation (evidence: `src/client/App.tsx`)
- Dot conversation → API client: requests data (evidence: `src/client/Chat.tsx`)
- API client → HTTP routes: calls API (evidence: `src/client/api.ts`)
- HTTP routes → Agent platform: routes requests (evidence: `src/server/app.ts`)
- Agent platform → Specialist agent: creates agents (evidence: `src/server/platform.ts`)
- Specialist agent → Model provider: streams responses (evidence: `README.md`)
- Agent platform → CopilotKit Intelligence: manages threads (evidence: `README.md`)
- Web application → Space navigation: opens Space (evidence: `src/client/App.tsx`)
- Space navigation → Page editor: opens page (evidence: `src/client/SpaceWorkspace.tsx`)
- Page editor → API client: saves edits (evidence: `README.md`)
- Dot conversation → Review card: renders review (evidence: `src/client/Chat.tsx`)
- Review card → API client: submits decision (evidence: `src/client/PageReviewCard.tsx`)
- HTTP routes → Page service: routes page requests
- Page service → Workspace store: stores pages (evidence: `src/server/workspace.ts`)
- Review card → Page service: approves draft (evidence: `README.md`)
- HTTP routes → Dot computer: routes computer actions (evidence: `src/server/app.ts`)
- Dot computer → Computer service: controls computer (evidence: `README.md`)
- HTTP routes → MCP connections: routes connection actions (evidence: `src/server/app.ts`)
- MCP connections → MCP servers: invokes tools (evidence: `README.md`)
- Agent platform → Voice service: provides call service (evidence: `src/server/app.ts`)
- Dot conversation → Call interface: opens call view (evidence: `src/client/Chat.tsx`)
- Call interface → Realtime speech: uses realtime speech (evidence: `README.md`)
- Voice service → Specialist agent: bridges compute work (evidence: `README.md`)
- Agent platform → Slack channel: configures channel (evidence: `src/server/platform.ts`)
- Slack user → Slack channel: mentions Dot (evidence: `README.md`)
- Slack channel → Channels SDK: uses SDK (evidence: `README.md`)
- Channels SDK → Specialist agent: dispatches messages (evidence: `README.md`)
- HTTP routes → Scheduled research: runs scheduled tasks (evidence: `src/server/app.ts`)
- Scheduled research → Application store: stores task state (evidence: `src/server/app.ts`)
- Agent platform → Workspace store: uses workspace state (evidence: `src/server/platform.ts`)
- HTTP routes → Application store: reads application state (evidence: `src/server/app.ts`)
