# shaozi8866/dsh-tech-workbench architecture

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

- Interactive diagram: https://gitdiagram.com/shaozi8866/dsh-tech-workbench
- Repository: https://github.com/shaozi8866/dsh-tech-workbench

## Overview

DSH Tech Workbench is a host-and-browser plugin for discovering and maintaining plugins, presets, apps, and skills. Users open a unified workspace, browse and filter resources, refresh catalog data, and invoke local maintenance actions. The host coordinates Market, GitHub, npm, desktop-preset, and local sources, then merges results with cached and installation state before serving the client. The README documents additional API and lifecycle capabilities; unsampled implementation details are represented only where documented, and source-level links rely on the provided excerpts or SOURCE INDEX.

Main entry points: [`src/host/data-processor.ts`](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/data-processor.ts) (Catalog orchestration), [`src/index.ts`](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/index.ts) (Host API and scheduler), [`src/client/components/WorkbenchPage.tsx`](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/WorkbenchPage.tsx) (Workspace pages), [`src/client/index.tsx`](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/index.tsx) (Client entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Workbench client"]
  node_client_entry["Client entry<br/>[index.tsx]"]
  node_workspace["Workspace pages<br/>[WorkbenchPage.tsx]"]
  node_resource_card["Resource cards<br/>[ResourceCard.tsx]"]
  node_action_bar["Search and filters<br/>[ActionBar.tsx]"]
  node_local_manage["Local maintenance UI<br/>[LocalManage.tsx]"]
end

subgraph group_catalog["Catalog and discovery"]
  node_data_processor["Catalog orchestration<br/>[data-processor.ts]"]
  node_market[("Market source and cache<br/>[market-fetcher.ts]")]
  node_github["GitHub discovery<br/>[github-fetcher.ts]"]
  node_npm["npm discovery<br/>[npm-fetcher.ts]"]
  node_desktop_presets["Desktop presets"]
  node_local_fetcher["Installed resource state<br/>[local-fetcher.ts]"]
  node_classifier["Resource classification"]
end

subgraph group_host["Host API and maintenance"]
  node_host_api["Host API and scheduler<br/>[index.ts]"]
  node_plugin_cli["Plugin lifecycle CLI<br/>[plugin-cli.ts]"]
  node_preset_cli["Preset maintenance<br/>[preset-cli.ts]"]
  node_skill_cli["Skill maintenance<br/>[skill-cli.ts]"]
  node_changelog["Changelog lookup"]
end

subgraph group_metadata["Resource metadata"]
  node_resource_db[("Curated resource metadata")]
end

node_user(("Workbench user"))
node_browser["DSH browser shell"]
node_market_service["DSH Market"]
node_github_service["GitHub API"]
node_npm_service["npm registry"]
node_desktop_service["dshdesktop.com"]
node_dsh_cli[("DSH CLI and profile files")]

node_user -->|"opens workspace"| node_browser
node_browser -->|"hosts client"| node_client_entry
node_client_entry -->|"renders"| node_workspace
node_workspace -->|"renders cards"| node_resource_card
node_workspace -->|"renders controls"| node_action_bar
node_workspace -->|"renders maintenance"| node_local_manage
node_client_entry -->|"requests data"| node_host_api
node_local_manage -->|"sends maintenance requests"| node_host_api
node_host_api -->|"fetches catalog"| node_data_processor
node_data_processor -->|"reads and writes cache"| node_market
node_data_processor -->|"fetches community data"| node_github
node_data_processor -->|"fetches packages"| node_npm
node_data_processor -->|"fetches presets"| node_desktop_presets
node_data_processor -->|"joins local state"| node_local_fetcher
node_data_processor -->|"enriches resources"| node_resource_db
node_market -->|"requests catalog"| node_market_service
node_github -->|"queries repositories"| node_github_service
node_npm -.->|"searches registry"| node_npm_service
node_desktop_presets -.->|"fetches presets"| node_desktop_service
node_host_api -->|"dispatches lifecycle actions"| node_plugin_cli
node_host_api -->|"dispatches preset actions"| node_preset_cli
node_host_api -->|"dispatches skill actions"| node_skill_cli
node_host_api -->|"gets changelogs"| node_changelog
node_plugin_cli -->|"runs commands and edits profile"| node_dsh_cli
node_preset_cli -.->|"maintains presets"| node_dsh_cli
node_skill_cli -.->|"maintains skills"| node_dsh_cli
node_npm -->|"classifies resources"| node_classifier
node_local_fetcher -->|"classifies local resources"| node_classifier

click node_client_entry "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/index.tsx"
click node_workspace "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/WorkbenchPage.tsx"
click node_resource_card "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/ResourceCard.tsx"
click node_action_bar "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/ActionBar.tsx"
click node_local_manage "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/LocalManage.tsx"
click node_host_api "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/index.ts"
click node_data_processor "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/data-processor.ts"
click node_market "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/market-fetcher.ts"
click node_github "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/github-fetcher.ts"
click node_npm "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/npm-fetcher.ts"
click node_desktop_presets "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/dshdesktop-fetcher.ts"
click node_local_fetcher "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/local-fetcher.ts"
click node_classifier "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/category-classifier.ts"
click node_resource_db "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/resource-meta-database.ts"
click node_plugin_cli "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/plugin-cli.ts"
click node_preset_cli "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/preset-cli.ts"
click node_skill_cli "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/skill-cli.ts"
click node_changelog "https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/changelog-getter.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_client_entry,node_workspace,node_resource_card,node_action_bar,node_local_manage,node_user,node_browser toneBlue
class node_data_processor,node_market,node_github,node_npm,node_desktop_presets,node_local_fetcher,node_classifier,node_dsh_cli toneAmber
class node_host_api,node_plugin_cli,node_preset_cli,node_skill_cli,node_changelog,node_github_service toneMint
class node_resource_db toneRose
class node_market_service,node_npm_service,node_desktop_service toneIndigo
```

## Components

### Workbench client

- [Client entry](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/index.tsx): `src/client/index.tsx`
- [Workspace pages](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/WorkbenchPage.tsx): `src/client/components/WorkbenchPage.tsx`
- [Resource cards](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/ResourceCard.tsx): `src/client/components/ResourceCard.tsx`
- [Search and filters](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/ActionBar.tsx): `src/client/components/ActionBar.tsx`
- [Local maintenance UI](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/client/components/LocalManage.tsx): `src/client/components/LocalManage.tsx`

### Catalog and discovery

- [Catalog orchestration](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/data-processor.ts): `src/host/data-processor.ts`
- [Market source and cache](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/market-fetcher.ts): `src/host/market-fetcher.ts`
- [GitHub discovery](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/github-fetcher.ts): `src/host/github-fetcher.ts`
- [npm discovery](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/npm-fetcher.ts): `src/host/npm-fetcher.ts`
- [Desktop presets](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/dshdesktop-fetcher.ts): `src/host/dshdesktop-fetcher.ts`
- [Installed resource state](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/local-fetcher.ts): `src/host/local-fetcher.ts`
- [Resource classification](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/category-classifier.ts): `src/host/category-classifier.ts`

### Host API and maintenance

- [Host API and scheduler](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/index.ts): `src/index.ts`
- [Plugin lifecycle CLI](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/plugin-cli.ts): `src/host/plugin-cli.ts`
- [Preset maintenance](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/preset-cli.ts): `src/host/preset-cli.ts`
- [Skill maintenance](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/skill-cli.ts): `src/host/skill-cli.ts`
- [Changelog lookup](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/changelog-getter.ts): `src/host/changelog-getter.ts`

### Resource metadata

- [Curated resource metadata](https://github.com/shaozi8866/dsh-tech-workbench/blob/main/src/host/resource-meta-database.ts): `src/host/resource-meta-database.ts`

### Other components

- **Workbench user**
- **DSH browser shell**
- **DSH Market**
- **GitHub API**
- **npm registry**
- **dshdesktop.com**
- **DSH CLI and profile files**

## Connections

- Workbench user → DSH browser shell: opens workspace
- DSH browser shell → Client entry: hosts client (evidence: `src/client/index.tsx`)
- Client entry → Workspace pages: renders (evidence: `src/client/index.tsx`)
- Workspace pages → Resource cards: renders cards (evidence: `src/client/components/WorkbenchPage.tsx`)
- Workspace pages → Search and filters: renders controls (evidence: `src/client/components/WorkbenchPage.tsx`)
- Workspace pages → Local maintenance UI: renders maintenance (evidence: `src/client/components/WorkbenchPage.tsx`)
- Client entry → Host API and scheduler: requests data (evidence: `src/client/index.tsx`)
- Local maintenance UI → Host API and scheduler: sends maintenance requests (evidence: `src/client/components/LocalManage.tsx`)
- Host API and scheduler → Catalog orchestration: fetches catalog (evidence: `src/index.ts`)
- Catalog orchestration → Market source and cache: reads and writes cache (evidence: `src/host/data-processor.ts`)
- Catalog orchestration → GitHub discovery: fetches community data (evidence: `src/host/data-processor.ts`)
- Catalog orchestration → npm discovery: fetches packages (evidence: `src/host/data-processor.ts`)
- Catalog orchestration → Desktop presets: fetches presets (evidence: `src/host/data-processor.ts`)
- Catalog orchestration → Installed resource state: joins local state (evidence: `src/host/data-processor.ts`)
- Catalog orchestration → Curated resource metadata: enriches resources (evidence: `src/host/data-processor.ts`)
- Market source and cache → DSH Market: requests catalog (evidence: `src/host/market-fetcher.ts`)
- GitHub discovery → GitHub API: queries repositories (evidence: `src/host/github-fetcher.ts`)
- npm discovery → npm registry: searches registry
- Desktop presets → dshdesktop.com: fetches presets
- Host API and scheduler → Plugin lifecycle CLI: dispatches lifecycle actions (evidence: `src/index.ts`)
- Host API and scheduler → Preset maintenance: dispatches preset actions (evidence: `src/index.ts`)
- Host API and scheduler → Skill maintenance: dispatches skill actions (evidence: `src/index.ts`)
- Host API and scheduler → Changelog lookup: gets changelogs (evidence: `src/index.ts`)
- Plugin lifecycle CLI → DSH CLI and profile files: runs commands and edits profile (evidence: `src/host/plugin-cli.ts`)
- Preset maintenance → DSH CLI and profile files: maintains presets
- Skill maintenance → DSH CLI and profile files: maintains skills
- npm discovery → Resource classification: classifies resources (evidence: `src/host/npm-fetcher.ts`)
- Installed resource state → Resource classification: classifies local resources (evidence: `src/host/local-fetcher.ts`)
