# cdsassj00/vibestack architecture

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

- Interactive diagram: https://gitdiagram.com/cdsassj00/vibestack
- Repository: https://github.com/cdsassj00/vibestack

## Overview

VibeStack is a static learning and project-planning web app. Its main user flow collects project requirements, diagnoses an appropriate technical approach, and presents a recommended stack, prompt, related learning modules, and similar scenarios. Separate curriculum boards let users explore modules and assemble a locally saved course plan, optionally with AI assistance. A Cloudflare Worker also exposes read-only curriculum tools to MCP clients and proxies AI requests to OpenRouter. Some links are documented in the README rather than shown in the sampled excerpts.

Main entry points: [`worker/src/tools.js`](https://github.com/cdsassj00/vibestack/blob/main/worker/src/tools.js) (Curriculum tools), [`curriculum/board.js`](https://github.com/cdsassj00/vibestack/blob/main/curriculum/board.js) (Board engine), [`app.js`](https://github.com/cdsassj00/vibestack/blob/main/app.js) (Guidance interface), [`worker/src/index.js`](https://github.com/cdsassj00/vibestack/blob/main/worker/src/index.js) (Worker router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Project guidance"]
  node_app["Guidance interface<br/>[app.js]"]
  node_diagnosis["Stack diagnosis<br/>[diagnosis.js]"]
  node_i18n["Language selection<br/>[i18n.js]"]
end

subgraph group_learning["Curriculum boards"]
  node_board["Board engine<br/>[board.js]"]
  node_workaxes["Work board axes<br/>[axes.js]"]
  node_vibeaxes["Vibe board axes<br/>[axes.js]"]
  node_planner["AI course planner<br/>[ai-planner.js]"]
end

subgraph group_worker["Worker services"]
  node_workerentry["Worker router<br/>[index.js]"]
  node_aitransport["AI proxy<br/>[ai.js]"]
  node_mcp["MCP endpoint<br/>[mcp.js]"]
  node_tools["Curriculum tools<br/>[tools.js]"]
end

subgraph group_content["Learning content"]
  node_scenarios["Scenario catalog<br/>[scenarios-data.js]"]
  node_glossary["Glossary and errors<br/>[glossary-data.js]"]
  node_workdata["Work curriculum<br/>[data.js]"]
  node_vibedata["Vibe curriculum<br/>[data.js]"]
end

node_learner(("Site visitor"))
node_openrouter{{"OpenRouter"}}
node_mcpclient(("External MCP client"))

node_learner -->|"uses"| node_app
node_app -->|"requests diagnosis"| node_diagnosis
node_app -->|"shows scenarios"| node_scenarios
node_app -->|"shows glossary"| node_glossary
node_app -->|"uses language"| node_i18n
node_learner -->|"plans courses"| node_board
node_board -->|"renders modules"| node_workdata
node_board -->|"uses axes"| node_workaxes
node_board -->|"renders modules"| node_vibedata
node_board -->|"uses axes"| node_vibeaxes
node_board -->|"invokes"| node_planner
node_planner -->|"requests course draft"| node_workerentry
node_workerentry -->|"routes AI"| node_aitransport
node_aitransport -->|"forwards request"| node_openrouter
node_mcpclient -->|"calls MCP"| node_workerentry
node_workerentry -->|"routes MCP"| node_mcp
node_mcp -->|"dispatches tools"| node_tools
node_tools -->|"reads modules"| node_workdata
node_tools -->|"reads axes"| node_workaxes
node_tools -->|"reads modules"| node_vibedata
node_tools -->|"reads axes"| node_vibeaxes
node_tools -->|"reads terms"| node_glossary
node_tools -->|"uses rules"| node_diagnosis
node_tools -->|"reads scenarios"| node_scenarios

click node_app "https://github.com/cdsassj00/vibestack/blob/main/app.js"
click node_diagnosis "https://github.com/cdsassj00/vibestack/blob/main/diagnosis.js"
click node_scenarios "https://github.com/cdsassj00/vibestack/blob/main/scenarios-data.js"
click node_glossary "https://github.com/cdsassj00/vibestack/blob/main/glossary-data.js"
click node_i18n "https://github.com/cdsassj00/vibestack/blob/main/i18n.js"
click node_board "https://github.com/cdsassj00/vibestack/blob/main/curriculum/board.js"
click node_workdata "https://github.com/cdsassj00/vibestack/blob/main/curriculum/data.js"
click node_workaxes "https://github.com/cdsassj00/vibestack/blob/main/curriculum/axes.js"
click node_vibedata "https://github.com/cdsassj00/vibestack/blob/main/vibecoding/data.js"
click node_vibeaxes "https://github.com/cdsassj00/vibestack/blob/main/vibecoding/axes.js"
click node_planner "https://github.com/cdsassj00/vibestack/blob/main/curriculum/ai-planner.js"
click node_workerentry "https://github.com/cdsassj00/vibestack/blob/main/worker/src/index.js"
click node_aitransport "https://github.com/cdsassj00/vibestack/blob/main/worker/src/ai.js"
click node_mcp "https://github.com/cdsassj00/vibestack/blob/main/worker/src/mcp.js"
click node_tools "https://github.com/cdsassj00/vibestack/blob/main/worker/src/tools.js"

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_app,node_diagnosis,node_i18n,node_mcpclient toneBlue
class node_board,node_workaxes,node_vibeaxes,node_planner toneAmber
class node_workerentry,node_aitransport,node_mcp,node_tools,node_openrouter toneMint
class node_scenarios,node_glossary,node_workdata,node_vibedata toneRose
class node_learner toneIndigo
```

## Components

### Project guidance

- [Guidance interface](https://github.com/cdsassj00/vibestack/blob/main/app.js): `app.js`
- [Stack diagnosis](https://github.com/cdsassj00/vibestack/blob/main/diagnosis.js): `diagnosis.js`
- [Language selection](https://github.com/cdsassj00/vibestack/blob/main/i18n.js): `i18n.js`

### Curriculum boards

- [Board engine](https://github.com/cdsassj00/vibestack/blob/main/curriculum/board.js): `curriculum/board.js`
- [Work board axes](https://github.com/cdsassj00/vibestack/blob/main/curriculum/axes.js): `curriculum/axes.js`
- [Vibe board axes](https://github.com/cdsassj00/vibestack/blob/main/vibecoding/axes.js): `vibecoding/axes.js`
- [AI course planner](https://github.com/cdsassj00/vibestack/blob/main/curriculum/ai-planner.js): `curriculum/ai-planner.js`

### Worker services

- [Worker router](https://github.com/cdsassj00/vibestack/blob/main/worker/src/index.js): `worker/src/index.js`
- [AI proxy](https://github.com/cdsassj00/vibestack/blob/main/worker/src/ai.js): `worker/src/ai.js`
- [MCP endpoint](https://github.com/cdsassj00/vibestack/blob/main/worker/src/mcp.js): `worker/src/mcp.js`
- [Curriculum tools](https://github.com/cdsassj00/vibestack/blob/main/worker/src/tools.js): `worker/src/tools.js`

### Learning content

- [Scenario catalog](https://github.com/cdsassj00/vibestack/blob/main/scenarios-data.js): `scenarios-data.js`
- [Glossary and errors](https://github.com/cdsassj00/vibestack/blob/main/glossary-data.js): `glossary-data.js`
- [Work curriculum](https://github.com/cdsassj00/vibestack/blob/main/curriculum/data.js): `curriculum/data.js`
- [Vibe curriculum](https://github.com/cdsassj00/vibestack/blob/main/vibecoding/data.js): `vibecoding/data.js`

### Other components

- **Site visitor**
- **OpenRouter**
- **External MCP client**

## Connections

- Site visitor → Guidance interface: uses
- Guidance interface → Stack diagnosis: requests diagnosis (evidence: `app.js`)
- Guidance interface → Scenario catalog: shows scenarios (evidence: `app.js`)
- Guidance interface → Glossary and errors: shows glossary (evidence: `app.js`)
- Guidance interface → Language selection: uses language (evidence: `app.js`)
- Site visitor → Board engine: plans courses
- Board engine → Work curriculum: renders modules
- Board engine → Work board axes: uses axes
- Board engine → Vibe curriculum: renders modules (evidence: `vibecoding/vibecoding.js`)
- Board engine → Vibe board axes: uses axes (evidence: `vibecoding/vibecoding.js`)
- Board engine → AI course planner: invokes (evidence: `curriculum/board.js`)
- AI course planner → Worker router: requests course draft
- Worker router → AI proxy: routes AI (evidence: `worker/src/index.js`)
- AI proxy → OpenRouter: forwards request
- External MCP client → Worker router: calls MCP
- Worker router → MCP endpoint: routes MCP (evidence: `worker/src/index.js`)
- MCP endpoint → Curriculum tools: dispatches tools (evidence: `worker/src/mcp.js`)
- Curriculum tools → Work curriculum: reads modules (evidence: `worker/src/tools.js`)
- Curriculum tools → Work board axes: reads axes (evidence: `worker/src/tools.js`)
- Curriculum tools → Vibe curriculum: reads modules (evidence: `worker/src/tools.js`)
- Curriculum tools → Vibe board axes: reads axes (evidence: `worker/src/tools.js`)
- Curriculum tools → Glossary and errors: reads terms (evidence: `worker/src/tools.js`)
- Curriculum tools → Stack diagnosis: uses rules (evidence: `worker/src/tools.js`)
- Curriculum tools → Scenario catalog: reads scenarios (evidence: `worker/src/tools.js`)
