# blueqbl/dsh-program architecture

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

- Interactive diagram: https://gitdiagram.com/blueqbl/dsh-program
- Repository: https://github.com/blueqbl/dsh-program

## Overview

DSH-program is a collection of independently runnable AI-assisted development projects, not one integrated application. Its portfolio includes an AI chat assistant, weather dashboard, image compressor, JWT-auth frontend, browser productivity tools, a portfolio site, a React routing demo, and a werewolf game. The graph emphasizes those documented products and the best-evidenced internal runtime paths. Several projects have only tree/README evidence, so their internals are intentionally represented as single nodes rather than inferred pipelines.

Main entry points: [`ai-chat/public/app.js`](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/app.js) (Chat Interface), [`cloud-atlas/server.js`](https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/server.js) (Weather Proxy), [`ai-chat/server.mjs`](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/server.mjs) (Chat API), [`werewolf-game/src/composables/useGame.js`](https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/composables/useGame.js) (Match State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chat["AI Chat"]
  node_chat_ui["Chat Interface<br/>[app.js]"]
  node_chat_store[("Local Conversations<br/>[store.js]")]
  node_chat_helpers["Chat Features"]
  node_chat_server["Chat API<br/>[server.mjs]"]
  node_chat_auth["Account Security<br/>[auth.mjs]"]
  node_auth_rules["Shared Auth Rules<br/>[auth-rules.js]"]
end

subgraph group_weather["Weather Dashboard"]
  node_weather_ui["Weather Dashboard<br/>[app.js]"]
  node_weather_core["Weather Logic<br/>[core.js]"]
  node_weather_api["Weather Proxy<br/>[server.js]"]
  node_geocoding["Place Search<br/>[geocode.js]"]
end

subgraph group_compress["Image Compressor"]
  node_compress_ui["Compressor Interface<br/>[app.js]"]
  node_compress_api["Upload and Compress<br/>[server.js]"]
  node_image_processor["Image Processor<br/>[processor.js]"]
end

subgraph group_auth["JWT Frontend"]
  node_jwt_frontend["JWT Web Client"]
end

subgraph group_games["Games"]
  node_werewolf_app["Game Stage<br/>[App.vue]"]
  node_game_state["Match State<br/>[useGame.js]"]
  node_game_engine["Game Director<br/>[director.js]"]
  node_game_rules["Roles and Setup"]
end

subgraph group_tools["Productivity Tools"]
  node_ledger["Personal Ledger<br/>[app.js]"]
  node_todo["Todo App"]
  node_notes["Markdown Notes"]
  node_pomodoro["Focus Timer"]
  node_water["Water Reminder<br/>[app.js]"]
end

subgraph group_sites["Web Demos"]
  node_portfolio["Portfolio Website<br/>[main.js]"]
  node_react_demo["React Router Demo<br/>[App.tsx]"]
end

node_visitor(("User"))
node_model{{"AI Model API"}}
node_weather_services{{"Weather Services"}}

node_visitor -->|"chats with"| node_chat_ui
node_chat_ui -->|"persists locally"| node_chat_store
node_chat_ui -->|"streams chat"| node_chat_server
node_chat_ui -->|"uses features"| node_chat_helpers
node_chat_server -->|"forwards SSE"| node_model
node_chat_server -->|"uses auth"| node_chat_auth
node_chat_auth -->|"validates with"| node_auth_rules
node_visitor -->|"checks weather"| node_weather_ui
node_weather_ui -.->|"requests data"| node_weather_api
node_weather_api -->|"searches places"| node_geocoding
node_weather_api -->|"proxies requests"| node_weather_services
node_weather_services -.->|"returns forecasts"| node_weather_api
node_visitor -->|"compresses images"| node_compress_ui
node_compress_ui -.->|"uploads files"| node_compress_api
node_compress_api -->|"processes images"| node_image_processor
node_visitor -->|"uses authentication"| node_jwt_frontend
node_visitor -->|"plays game"| node_werewolf_app
node_werewolf_app -->|"renders state"| node_game_state
node_game_state -->|"runs match"| node_game_engine
node_game_state -->|"creates match"| node_game_rules
node_visitor -->|"tracks expenses"| node_ledger
node_visitor -->|"manages tasks"| node_todo
node_visitor -->|"writes notes"| node_notes
node_visitor -->|"focuses with"| node_pomodoro
node_visitor -->|"gets reminders"| node_water
node_visitor -->|"views portfolio"| node_portfolio
node_visitor -->|"explores routes"| node_react_demo

click node_chat_ui "https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/app.js"
click node_chat_store "https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/lib/store.js"
click node_chat_helpers "https://github.com/blueqbl/dsh-program/tree/main/ai-chat/public/lib"
click node_chat_server "https://github.com/blueqbl/dsh-program/blob/main/ai-chat/server.mjs"
click node_chat_auth "https://github.com/blueqbl/dsh-program/blob/main/ai-chat/lib/auth.mjs"
click node_auth_rules "https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/lib/auth-rules.js"
click node_weather_ui "https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/js/app.js"
click node_weather_core "https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/js/core.js"
click node_weather_api "https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/server.js"
click node_geocoding "https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/lib/geocode.js"
click node_compress_ui "https://github.com/blueqbl/dsh-program/blob/main/image-compressor/public/js/app.js"
click node_compress_api "https://github.com/blueqbl/dsh-program/blob/main/image-compressor/server.js"
click node_image_processor "https://github.com/blueqbl/dsh-program/blob/main/image-compressor/lib/processor.js"
click node_jwt_frontend "https://github.com/blueqbl/dsh-program/tree/main/frontend/src"
click node_werewolf_app "https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/App.vue"
click node_game_state "https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/composables/useGame.js"
click node_game_engine "https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/game/director.js"
click node_game_rules "https://github.com/blueqbl/dsh-program/tree/main/werewolf-game/src/game"
click node_ledger "https://github.com/blueqbl/dsh-program/blob/main/ledger/app.js"
click node_todo "https://github.com/blueqbl/dsh-program/tree/main/todo-app/js"
click node_notes "https://github.com/blueqbl/dsh-program/tree/main/markdown-notes/js"
click node_pomodoro "https://github.com/blueqbl/dsh-program/tree/main/pomodoro/js"
click node_water "https://github.com/blueqbl/dsh-program/blob/main/water-reminder/app.js"
click node_portfolio "https://github.com/blueqbl/dsh-program/blob/main/portfolio/main.js"
click node_react_demo "https://github.com/blueqbl/dsh-program/blob/main/react-frontend/src/App.tsx"

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_chat_ui,node_chat_store,node_chat_helpers,node_chat_server,node_chat_auth,node_auth_rules,node_portfolio,node_react_demo,node_visitor toneBlue
class node_weather_ui,node_weather_core,node_weather_api,node_geocoding toneAmber
class node_compress_ui,node_compress_api,node_image_processor,node_model toneMint
class node_jwt_frontend toneRose
class node_werewolf_app,node_game_state,node_game_engine,node_game_rules,node_weather_services toneIndigo
class node_ledger,node_todo,node_notes,node_pomodoro,node_water toneTeal
```

## Components

### AI Chat

- [Chat Interface](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/app.js): `ai-chat/public/app.js`
- [Local Conversations](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/lib/store.js): `ai-chat/public/lib/store.js`
- [Chat Features](https://github.com/blueqbl/dsh-program/tree/main/ai-chat/public/lib): `ai-chat/public/lib`
- [Chat API](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/server.mjs): `ai-chat/server.mjs`
- [Account Security](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/lib/auth.mjs): `ai-chat/lib/auth.mjs`
- [Shared Auth Rules](https://github.com/blueqbl/dsh-program/blob/main/ai-chat/public/lib/auth-rules.js): `ai-chat/public/lib/auth-rules.js`

### Weather Dashboard

- [Weather Dashboard](https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/js/app.js): `cloud-atlas/js/app.js`
- [Weather Logic](https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/js/core.js): `cloud-atlas/js/core.js`
- [Weather Proxy](https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/server.js): `cloud-atlas/server.js`
- [Place Search](https://github.com/blueqbl/dsh-program/blob/main/cloud-atlas/lib/geocode.js): `cloud-atlas/lib/geocode.js`

### Image Compressor

- [Compressor Interface](https://github.com/blueqbl/dsh-program/blob/main/image-compressor/public/js/app.js): `image-compressor/public/js/app.js`
- [Upload and Compress](https://github.com/blueqbl/dsh-program/blob/main/image-compressor/server.js): `image-compressor/server.js`
- [Image Processor](https://github.com/blueqbl/dsh-program/blob/main/image-compressor/lib/processor.js): `image-compressor/lib/processor.js`

### JWT Frontend

- [JWT Web Client](https://github.com/blueqbl/dsh-program/tree/main/frontend/src): `frontend/src`

### Games

- [Game Stage](https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/App.vue): `werewolf-game/src/App.vue`
- [Match State](https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/composables/useGame.js): `werewolf-game/src/composables/useGame.js`
- [Game Director](https://github.com/blueqbl/dsh-program/blob/main/werewolf-game/src/game/director.js): `werewolf-game/src/game/director.js`
- [Roles and Setup](https://github.com/blueqbl/dsh-program/tree/main/werewolf-game/src/game): `werewolf-game/src/game`

### Productivity Tools

- [Personal Ledger](https://github.com/blueqbl/dsh-program/blob/main/ledger/app.js): `ledger/app.js`
- [Todo App](https://github.com/blueqbl/dsh-program/tree/main/todo-app/js): `todo-app/js`
- [Markdown Notes](https://github.com/blueqbl/dsh-program/tree/main/markdown-notes/js): `markdown-notes/js`
- [Focus Timer](https://github.com/blueqbl/dsh-program/tree/main/pomodoro/js): `pomodoro/js`
- [Water Reminder](https://github.com/blueqbl/dsh-program/blob/main/water-reminder/app.js): `water-reminder/app.js`

### Web Demos

- [Portfolio Website](https://github.com/blueqbl/dsh-program/blob/main/portfolio/main.js): `portfolio/main.js`
- [React Router Demo](https://github.com/blueqbl/dsh-program/blob/main/react-frontend/src/App.tsx): `react-frontend/src/App.tsx`

### Other components

- **User**
- **AI Model API**
- **Weather Services**

## Connections

- User → Chat Interface: chats with
- Chat Interface → Local Conversations: persists locally (evidence: `ai-chat/public/app.js`)
- Chat Interface → Chat API: streams chat (evidence: `ai-chat/public/app.js`)
- Chat Interface → Chat Features: uses features (evidence: `ai-chat/public/app.js`)
- Chat API → AI Model API: forwards SSE (evidence: `ai-chat/server.mjs`)
- Chat API → Account Security: uses auth (evidence: `ai-chat/server.mjs`)
- Account Security → Shared Auth Rules: validates with (evidence: `ai-chat/lib/auth.mjs`)
- User → Weather Dashboard: checks weather
- Weather Dashboard → Weather Proxy: requests data
- Weather Proxy → Place Search: searches places (evidence: `cloud-atlas/server.js`)
- Weather Proxy → Weather Services: proxies requests (evidence: `cloud-atlas/server.js`)
- Weather Services → Weather Proxy: returns forecasts
- User → Compressor Interface: compresses images
- Compressor Interface → Upload and Compress: uploads files
- Upload and Compress → Image Processor: processes images (evidence: `image-compressor/server.js`)
- User → JWT Web Client: uses authentication
- User → Game Stage: plays game (evidence: `werewolf-game/src/App.vue`)
- Game Stage → Match State: renders state (evidence: `werewolf-game/src/App.vue`)
- Match State → Game Director: runs match (evidence: `werewolf-game/src/composables/useGame.js`)
- Match State → Roles and Setup: creates match (evidence: `werewolf-game/src/composables/useGame.js`)
- User → Personal Ledger: tracks expenses
- User → Todo App: manages tasks
- User → Markdown Notes: writes notes
- User → Focus Timer: focuses with
- User → Water Reminder: gets reminders
- User → Portfolio Website: views portfolio
- User → React Router Demo: explores routes
