# devbrother2024/paseo-coordinator-board architecture

> Architecture diagram of the GitHub repository devbrother2024/paseo-coordinator-board, 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/devbrother2024/paseo-coordinator-board
- Repository: https://github.com/devbrother2024/paseo-coordinator-board

## Overview

This Paseo plugin presents a multi-project coordinator board: users review session progress and decisions, then reply, ask follow-up questions, delegate work, or review and merge ready PRs. The server assembles board data and handles those actions; shared RPC schemas and domain models define the client/server boundary. The README documents additional capabilities such as photo replies, session linking, usage-based model routing, and history. Several implementation files were not sampled, so their documented relationships are shown as README-supported rather than inferred source calls.

Main entry points: [`index.server.ts`](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/index.server.ts) (RPC registration), [`client/board.tsx`](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/board.tsx) (Board screen), [`shared/contract.ts`](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/contract.ts) (Board RPC contract), [`server/coordinator.ts`](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/coordinator.ts) (Coordinator workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Board interface"]
  node_board["Board screen<br/>[board.tsx]"]
  node_client_entry["Plugin entry<br/>[index.client.tsx]"]
  node_decision_ui["Decision cards"]
  node_kanban["Project kanban<br/>[project-kanban.tsx]"]
  node_progress["Session progress"]
  node_settings_ui["Board settings<br/>[controls.tsx]"]
  node_photo_ui["Photo composer<br/>[photo-composer.tsx]"]
end

subgraph group_server["Board services"]
  node_server_entry["RPC registration<br/>[index.server.ts]"]
  node_snapshot["Board snapshot<br/>[snapshot-reads.ts]"]
  node_discovery["Session discovery<br/>[discovery.ts]"]
  node_coordinator["Coordinator workflow<br/>[coordinator.ts]"]
  node_conversation["Session messaging<br/>[conversation.ts]"]
  node_tracked[("Tracked decisions")]
  node_clarifications["Clarification flow<br/>[clarifications.ts]"]
  node_pulls["PR review and merge<br/>[prs.ts]"]
  node_prefs[("Preferences store<br/>[preferences.ts]")]
  node_photos["Photo handling<br/>[session-photos.ts]"]
end

subgraph group_domain["Domain contracts"]
  node_contract["Board RPC contract<br/>[contract.ts]"]
  node_tracked_schema["Decision model"]
  node_clarification_schema["Clarification model<br/>[clarifications.ts]"]
  node_pr_schema["Pull request model<br/>[prs.ts]"]
  node_photo_schema["Photo constraints<br/>[work-images.ts]"]
end

subgraph group_integrations["Host integrations"]
  node_host_api{{"Paseo APIs"}}
  node_github{{"GitHub"}}
end

node_person(("Board user"))
node_plugin{{"Paseo host"}}

node_person -->|"opens board"| node_client_entry
node_client_entry -->|"renders"| node_board
node_board -->|"shows decisions"| node_decision_ui
node_board -->|"shows projects"| node_kanban
node_board -->|"shows sessions"| node_progress
node_person -->|"replies or resolves"| node_decision_ui
node_person -->|"asks follow-up"| node_clarifications
node_person -->|"delegates work"| node_coordinator
node_person -->|"reviews merge"| node_pulls
node_client_entry -->|"calls RPCs"| node_server_entry
node_server_entry -->|"registers snapshot"| node_snapshot
node_snapshot -->|"loads sessions"| node_discovery
node_server_entry -->|"registers workflow"| node_coordinator
node_coordinator -->|"sends messages"| node_conversation
node_coordinator -->|"discovers sessions"| node_discovery
node_server_entry -->|"registers decisions"| node_tracked
node_server_entry -->|"registers questions"| node_clarifications
node_server_entry -->|"registers PR actions"| node_pulls
node_server_entry -->|"registers settings"| node_prefs
node_server_entry -->|"registers photo actions"| node_photos
node_server_entry -->|"uses RPC schemas"| node_contract
node_contract -->|"includes decisions"| node_tracked_schema
node_contract -->|"includes clarifications"| node_clarification_schema
node_contract -->|"includes pull requests"| node_pr_schema
node_tracked_schema -->|"validates images"| node_photo_schema
node_clarification_schema -->|"validates images"| node_photo_schema
node_photo_schema -->|"constrains uploads"| node_photos
node_discovery -->|"lists sessions"| node_host_api
node_conversation -->|"sends session input"| node_host_api
node_pulls -->|"queries and merges"| node_github
node_person -->|"configures board"| node_settings_ui
node_settings_ui -.->|"stores preferences"| node_prefs
node_person -->|"attaches photos"| node_photo_ui
node_board -->|"fetches board data"| node_server_entry
node_server_entry -->|"loads PR data"| node_pulls

click node_board "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/board.tsx"
click node_client_entry "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/index.client.tsx"
click node_decision_ui "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/decision-actions.tsx"
click node_kanban "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/project-kanban.tsx"
click node_progress "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/session-progress.tsx"
click node_settings_ui "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/controls.tsx"
click node_photo_ui "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/photo-composer.tsx"
click node_server_entry "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/index.server.ts"
click node_snapshot "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/snapshot-reads.ts"
click node_discovery "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/discovery.ts"
click node_coordinator "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/coordinator.ts"
click node_conversation "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/conversation.ts"
click node_tracked "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/tracked-decisions.ts"
click node_clarifications "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/clarifications.ts"
click node_pulls "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/prs.ts"
click node_prefs "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/preferences.ts"
click node_photos "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/session-photos.ts"
click node_contract "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/contract.ts"
click node_tracked_schema "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/tracked-decisions.ts"
click node_clarification_schema "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/clarifications.ts"
click node_pr_schema "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/prs.ts"
click node_photo_schema "https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/work-images.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_board,node_client_entry,node_decision_ui,node_kanban,node_progress,node_settings_ui,node_photo_ui,node_person toneBlue
class node_server_entry,node_snapshot,node_discovery,node_coordinator,node_conversation,node_tracked,node_clarifications,node_pulls,node_prefs,node_photos toneAmber
class node_contract,node_tracked_schema,node_clarification_schema,node_pr_schema,node_photo_schema toneMint
class node_host_api,node_github toneRose
class node_plugin toneIndigo
```

## Components

### Board interface

- [Board screen](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/board.tsx): `client/board.tsx`
- [Plugin entry](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/index.client.tsx): `index.client.tsx`
- [Decision cards](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/decision-actions.tsx): `client/decision-actions.tsx`
- [Project kanban](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/project-kanban.tsx): `client/project-kanban.tsx`
- [Session progress](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/session-progress.tsx): `client/session-progress.tsx`
- [Board settings](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/controls.tsx): `client/controls.tsx`
- [Photo composer](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/client/photo-composer.tsx): `client/photo-composer.tsx`

### Board services

- [RPC registration](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/index.server.ts): `index.server.ts`
- [Board snapshot](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/snapshot-reads.ts): `server/snapshot-reads.ts`
- [Session discovery](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/discovery.ts): `server/discovery.ts`
- [Coordinator workflow](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/coordinator.ts): `server/coordinator.ts`
- [Session messaging](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/conversation.ts): `server/conversation.ts`
- [Tracked decisions](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/tracked-decisions.ts): `server/tracked-decisions.ts`
- [Clarification flow](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/clarifications.ts): `server/clarifications.ts`
- [PR review and merge](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/prs.ts): `server/prs.ts`
- [Preferences store](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/preferences.ts): `server/preferences.ts`
- [Photo handling](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/server/session-photos.ts): `server/session-photos.ts`

### Domain contracts

- [Board RPC contract](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/contract.ts): `shared/contract.ts`
- [Decision model](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/tracked-decisions.ts): `shared/tracked-decisions.ts`
- [Clarification model](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/clarifications.ts): `shared/clarifications.ts`
- [Pull request model](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/prs.ts): `shared/prs.ts`
- [Photo constraints](https://github.com/devbrother2024/paseo-coordinator-board/blob/main/shared/work-images.ts): `shared/work-images.ts`

### Host integrations

- **Paseo APIs**
- **GitHub**

### Other components

- **Board user**
- **Paseo host**

## Connections

- Board user → Plugin entry: opens board (evidence: `README.md`)
- Plugin entry → Board screen: renders (evidence: `index.client.tsx`)
- Board screen → Decision cards: shows decisions (evidence: `README.md`)
- Board screen → Project kanban: shows projects (evidence: `README.md`)
- Board screen → Session progress: shows sessions (evidence: `README.md`)
- Board user → Decision cards: replies or resolves (evidence: `README.md`)
- Board user → Clarification flow: asks follow-up (evidence: `README.md`)
- Board user → Coordinator workflow: delegates work (evidence: `README.md`)
- Board user → PR review and merge: reviews merge (evidence: `README.md`)
- Plugin entry → RPC registration: calls RPCs (evidence: `index.client.tsx`)
- RPC registration → Board snapshot: registers snapshot (evidence: `index.server.ts`)
- Board snapshot → Session discovery: loads sessions (evidence: `index.server.ts`)
- RPC registration → Coordinator workflow: registers workflow (evidence: `index.server.ts`)
- Coordinator workflow → Session messaging: sends messages (evidence: `server/coordinator.ts`)
- Coordinator workflow → Session discovery: discovers sessions (evidence: `server/coordinator.ts`)
- RPC registration → Tracked decisions: registers decisions (evidence: `index.server.ts`)
- RPC registration → Clarification flow: registers questions (evidence: `index.server.ts`)
- RPC registration → PR review and merge: registers PR actions (evidence: `index.server.ts`)
- RPC registration → Preferences store: registers settings (evidence: `index.server.ts`)
- RPC registration → Photo handling: registers photo actions (evidence: `index.server.ts`)
- RPC registration → Board RPC contract: uses RPC schemas (evidence: `index.server.ts`)
- Board RPC contract → Decision model: includes decisions (evidence: `shared/contract.ts`)
- Board RPC contract → Clarification model: includes clarifications (evidence: `shared/contract.ts`)
- Board RPC contract → Pull request model: includes pull requests (evidence: `shared/contract.ts`)
- Decision model → Photo constraints: validates images (evidence: `shared/tracked-decisions.ts`)
- Clarification model → Photo constraints: validates images (evidence: `shared/clarifications.ts`)
- Photo constraints → Photo handling: constrains uploads (evidence: `server/session-photos.ts`)
- Session discovery → Paseo APIs: lists sessions (evidence: `server/discovery.ts`)
- Session messaging → Paseo APIs: sends session input (evidence: `server/conversation.ts`)
- PR review and merge → GitHub: queries and merges (evidence: `README.md`)
- Board user → Board settings: configures board (evidence: `README.md`)
- Board settings → Preferences store: stores preferences
- Board user → Photo composer: attaches photos (evidence: `README.md`)
- Board screen → RPC registration: fetches board data
- RPC registration → PR review and merge: loads PR data (evidence: `index.server.ts`)
