# antelopejs/dms-assistant architecture

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

- Interactive diagram: https://gitdiagram.com/antelopejs/dms-assistant
- Repository: https://github.com/antelopejs/dms-assistant

## Overview

DMS Assistant is a development-time dashboard assistant: owners onboard a project, use chat or mockup workflows to shape it, and review or undo agent edits. The principal chat path runs from the dashboard through the module’s sidecar bridge to a local coding agent and back to reviewable change sets. The README also documents database-based onboarding, mockup iteration/building, terminal use, and Settings, Changes, and Activity pages. Some subsystem links below rely on README descriptions or source-index references; unsampled implementation details are not inferred.

Main entry points: [`sidecar/src/index.ts`](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/index.ts) (Sidecar runtime), [`sidecar/src/server/http-routes.ts`](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/server/http-routes.ts) (Sidecar HTTP API), [`src/builder/routes/database.ts`](https://github.com/antelopejs/dms-assistant/blob/main/src/builder/routes/database.ts) (Database routes), [`frontend-vue/app/chat/components/ChatView.vue`](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/chat/components/ChatView.vue) (Chat panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard experience"]
  node_chatui["Chat panel<br/>[ChatView.vue]"]
  node_frontend["Assistant runtime<br/>[ai.client.ts]"]
  node_onboarding["Onboarding flow<br/>[controller.ts]"]
  node_dbconnect["Database connect"]
  node_reviewui["Change review<br/>[ChangeSetPanel.vue]"]
  node_pages["Owner pages<br/>[ChangesView.vue]"]
end

subgraph group_module["Assistant module"]
  node_moduleapi["Module routes<br/>[index.ts]"]
  node_channel["Chat event bridge<br/>[channel-service.ts]"]
  node_dbapi["Database routes<br/>[database.ts]"]
  node_launcher["Sidecar lifecycle<br/>[spawn-sidecar.ts]"]
end

subgraph group_sidecar["Agent sidecar"]
  node_sidecarboot["Sidecar runtime<br/>[index.ts]"]
  node_httpapi["Sidecar HTTP API<br/>[http-routes.ts]"]
  node_agent["Agent session<br/>[session.ts]"]
  node_providers["Claude / Codex<br/>[registry.ts]"]
  node_skills["Skills catalog<br/>[build-catalog.ts]"]
  node_checkpoints[("Change sets<br/>[checkpoints.ts]")]
  node_conversations[("Conversation state<br/>[conversations.ts]")]
  node_activity[("Activity audit<br/>[activity.ts]")]
end

subgraph group_project["Project workflows"]
  node_mockups["Mockup workflow<br/>[mockup-runs.ts]"]
  node_builder["Page builder<br/>[capability.ts]"]
  node_terminaltools["DMS MCP tools<br/>[dms-server.ts]"]
end

node_owner(("Project owner"))
node_terminal(("Claude / Codex CLI"))

node_owner -->|"starts setup"| node_onboarding
node_onboarding -->|"requests analysis"| node_dbapi
node_dbapi -->|"returns schema analysis"| node_owner
node_owner -->|"opens chat"| node_chatui
node_chatui -->|"sends prompts"| node_frontend
node_frontend -->|"streams messages"| node_channel
node_channel -->|"bridges socket"| node_sidecarboot
node_moduleapi -->|"starts sidecar"| node_launcher
node_launcher -->|"spawns process"| node_sidecarboot
node_sidecarboot -->|"serves routes"| node_httpapi
node_httpapi -->|"reads and acts"| node_checkpoints
node_httpapi -->|"queries activity"| node_activity
node_sidecarboot -->|"loads state"| node_conversations
node_agent -.->|"runs provider"| node_providers
node_sidecarboot -->|"builds catalog"| node_skills
node_owner -->|"reviews edits"| node_reviewui
node_reviewui -->|"requests change actions"| node_httpapi
node_owner -->|"opens reports"| node_pages
node_owner -->|"iterates mockup"| node_mockups
node_mockups -->|"builds real pages"| node_builder
node_terminal -->|"uses skills"| node_terminaltools
node_terminaltools -->|"invokes builder tools"| node_builder
node_dbconnect -.->|"calls database routes"| node_dbapi

click node_chatui "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/chat/components/ChatView.vue"
click node_frontend "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/plugins/ai.client.ts"
click node_onboarding "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/onboarding/controller.ts"
click node_dbconnect "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/builder/app/runtime/database-connect.ts"
click node_reviewui "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/views/ChangeSetPanel.vue"
click node_pages "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/components/ChangesView.vue"
click node_moduleapi "https://github.com/antelopejs/dms-assistant/blob/main/src/index.ts"
click node_channel "https://github.com/antelopejs/dms-assistant/blob/main/src/channels/channel-service.ts"
click node_dbapi "https://github.com/antelopejs/dms-assistant/blob/main/src/builder/routes/database.ts"
click node_launcher "https://github.com/antelopejs/dms-assistant/blob/main/src/lifecycle/spawn-sidecar.ts"
click node_sidecarboot "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/index.ts"
click node_httpapi "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/server/http-routes.ts"
click node_agent "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/agent/session.ts"
click node_providers "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/providers/registry.ts"
click node_skills "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/skills/build-catalog.ts"
click node_checkpoints "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/checkpoints/checkpoints.ts"
click node_conversations "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/state/conversations.ts"
click node_activity "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/audit/activity.ts"
click node_mockups "https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/runtime/mockup-runs.ts"
click node_builder "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/builder/capability.ts"
click node_terminaltools "https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/mcp/dms-server.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_chatui,node_frontend,node_onboarding,node_dbconnect,node_reviewui,node_pages toneBlue
class node_moduleapi,node_channel,node_dbapi,node_launcher toneAmber
class node_sidecarboot,node_httpapi,node_agent,node_providers,node_skills,node_checkpoints,node_conversations,node_activity toneMint
class node_mockups,node_builder,node_terminaltools toneRose
class node_owner,node_terminal toneIndigo
```

## Components

### Dashboard experience

- [Chat panel](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/chat/components/ChatView.vue): `frontend-vue/app/chat/components/ChatView.vue`
- [Assistant runtime](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/plugins/ai.client.ts): `frontend-vue/app/plugins/ai.client.ts`
- [Onboarding flow](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/onboarding/controller.ts): `frontend-vue/app/onboarding/controller.ts`
- [Database connect](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/builder/app/runtime/database-connect.ts): `frontend-vue/builder/app/runtime/database-connect.ts`
- [Change review](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/views/ChangeSetPanel.vue): `frontend-vue/app/views/ChangeSetPanel.vue`
- [Owner pages](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/components/ChangesView.vue): `frontend-vue/app/components/ChangesView.vue`

### Assistant module

- [Module routes](https://github.com/antelopejs/dms-assistant/blob/main/src/index.ts): `src/index.ts`
- [Chat event bridge](https://github.com/antelopejs/dms-assistant/blob/main/src/channels/channel-service.ts): `src/channels/channel-service.ts`
- [Database routes](https://github.com/antelopejs/dms-assistant/blob/main/src/builder/routes/database.ts): `src/builder/routes/database.ts`
- [Sidecar lifecycle](https://github.com/antelopejs/dms-assistant/blob/main/src/lifecycle/spawn-sidecar.ts): `src/lifecycle/spawn-sidecar.ts`

### Agent sidecar

- [Sidecar runtime](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/index.ts): `sidecar/src/index.ts`
- [Sidecar HTTP API](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/server/http-routes.ts): `sidecar/src/server/http-routes.ts`
- [Agent session](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/agent/session.ts): `sidecar/src/agent/session.ts`
- [Claude / Codex](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/providers/registry.ts): `sidecar/src/providers/registry.ts`
- [Skills catalog](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/skills/build-catalog.ts): `sidecar/src/skills/build-catalog.ts`
- [Change sets](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/checkpoints/checkpoints.ts): `sidecar/src/checkpoints/checkpoints.ts`
- [Conversation state](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/state/conversations.ts): `sidecar/src/state/conversations.ts`
- [Activity audit](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/audit/activity.ts): `sidecar/src/audit/activity.ts`

### Project workflows

- [Mockup workflow](https://github.com/antelopejs/dms-assistant/blob/main/frontend-vue/app/runtime/mockup-runs.ts): `frontend-vue/app/runtime/mockup-runs.ts`
- [Page builder](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/builder/capability.ts): `sidecar/src/builder/capability.ts`
- [DMS MCP tools](https://github.com/antelopejs/dms-assistant/blob/main/sidecar/src/mcp/dms-server.ts): `sidecar/src/mcp/dms-server.ts`

### Other components

- **Project owner**
- **Claude / Codex CLI**

## Connections

- Project owner → Onboarding flow: starts setup (evidence: `README.md`)
- Onboarding flow → Database routes: requests analysis (evidence: `README.md`)
- Database routes → Project owner: returns schema analysis (evidence: `README.md`)
- Project owner → Chat panel: opens chat (evidence: `README.md`)
- Chat panel → Assistant runtime: sends prompts (evidence: `frontend-vue/app/plugins/ai.client.ts`)
- Assistant runtime → Chat event bridge: streams messages (evidence: `src/channels/channel-service.ts`)
- Chat event bridge → Sidecar runtime: bridges socket (evidence: `src/channels/channel-service.ts`)
- Module routes → Sidecar lifecycle: starts sidecar (evidence: `src/index.ts`)
- Sidecar lifecycle → Sidecar runtime: spawns process
- Sidecar runtime → Sidecar HTTP API: serves routes (evidence: `sidecar/src/index.ts`)
- Sidecar HTTP API → Change sets: reads and acts (evidence: `sidecar/src/server/http-routes.ts`)
- Sidecar HTTP API → Activity audit: queries activity (evidence: `sidecar/src/server/http-routes.ts`)
- Sidecar runtime → Conversation state: loads state (evidence: `sidecar/src/index.ts`)
- Agent session → Claude / Codex: runs provider
- Sidecar runtime → Skills catalog: builds catalog (evidence: `sidecar/src/index.ts`)
- Project owner → Change review: reviews edits (evidence: `README.md`)
- Change review → Sidecar HTTP API: requests change actions (evidence: `README.md`)
- Project owner → Owner pages: opens reports (evidence: `README.md`)
- Project owner → Mockup workflow: iterates mockup (evidence: `README.md`)
- Mockup workflow → Page builder: builds real pages (evidence: `README.md`)
- Claude / Codex CLI → DMS MCP tools: uses skills (evidence: `README.md`)
- DMS MCP tools → Page builder: invokes builder tools (evidence: `README.md`)
- Database connect → Database routes: calls database routes
