# gkrumbach07/openshell-dashboard architecture

> Architecture diagram of the GitHub repository gkrumbach07/openshell-dashboard, 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/gkrumbach07/openshell-dashboard
- Repository: https://github.com/gkrumbach07/openshell-dashboard

## Overview

OpenShell Dashboard is a React administration UI backed by a Go BFF that relays authenticated REST requests to the OpenShell gateway over its Go SDK. Users authenticate, enter workspace-scoped flows, and manage sandboxes, policies, templates, providers, and related operational details. The graph follows the documented routes and sampled wiring; many handlers, services, and page implementations were not excerpted, so their internal relationships are left out. The README also describes gateway compatibility management, an ancillary repository capability, rather than a runtime dashboard workflow.

Main entry points: [`backend/pkg/server/app.go`](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/server/app.go) (Go REST BFF), [`frontend/src/api/client.ts`](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/client.ts) (API transport), [`frontend/src/app/AppRoutes.tsx`](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/app/AppRoutes.tsx) (Auth and routes), [`deploy/ci/sweep/sweep.py`](https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/sweep.py) (Gateway compat sweep)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Dashboard UI"]
  node_routes["Auth and routes<br/>[AppRoutes.tsx]"]
  node_workspace_pages["Workspace pages"]
  node_sandbox_pages["Sandbox pages"]
  node_provider_pages["Provider pages"]
  node_gateway_page["Gateway overview"]
  node_api_client["API transport<br/>[client.ts]"]
  node_api_sandboxes["Sandbox API<br/>[sandboxes.ts]"]
  node_api_auth["Auth API<br/>[auth.ts]"]
  node_api_keys["Query keys<br/>[queryKeys.ts]"]
end

subgraph group_backend["BFF and gateway"]
  node_bff["Go REST BFF<br/>[app.go]"]
  node_auth_relay["Token relay<br/>[proxy.go]"]
  node_sdk_clients["Gateway SDK clients<br/>[gateway_setup.go]"]
end

subgraph group_domains["Admin domains"]
  node_workspace_service["Workspace operations<br/>[workspace.go]"]
  node_sandbox_service["Sandbox operations<br/>[sandbox.go]"]
  node_policy_service["Policy and drafts<br/>[policy.go]"]
  node_template_service["Template operations<br/>[template.go]"]
  node_provider_service["Provider operations<br/>[provider.go]"]
end

subgraph group_compatibility["Compatibility operations"]
  node_compat_sweep["Gateway compat sweep<br/>[sweep.py]"]
  node_pins["Gateway and SDK pins<br/>[pins.py]"]
  node_compat_reports["Compatibility reports<br/>[report.py]"]
end

node_user(("Dashboard user"))
node_gateway{{"OpenShell gateway"}}

node_user -->|"uses"| node_routes
node_routes -->|"routes to"| node_workspace_pages
node_routes -->|"routes to"| node_sandbox_pages
node_routes -->|"routes to"| node_provider_pages
node_routes -->|"routes to"| node_gateway_page
node_workspace_pages -.->|"requests via"| node_api_client
node_sandbox_pages -.->|"requests via"| node_api_sandboxes
node_provider_pages -.->|"requests via"| node_api_client
node_gateway_page -.->|"requests via"| node_api_client
node_api_sandboxes -->|"calls"| node_api_client
node_api_auth -->|"calls"| node_api_client
node_api_sandboxes -->|"uses keys"| node_api_keys
node_api_client -->|"HTTP requests"| node_bff
node_bff -->|"authenticates routes"| node_auth_relay
node_bff -->|"dispatches"| node_workspace_service
node_bff -->|"dispatches"| node_sandbox_service
node_bff -->|"dispatches"| node_policy_service
node_bff -->|"dispatches"| node_template_service
node_bff -->|"dispatches"| node_provider_service
node_bff -.->|"uses gateway client"| node_sdk_clients
node_sdk_clients -->|"gRPC calls"| node_gateway
node_compat_sweep -->|"validates and updates"| node_pins
node_compat_sweep -->|"renders"| node_compat_reports
node_compat_sweep -->|"tests gateway compatibility"| node_gateway

click node_routes "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/app/AppRoutes.tsx"
click node_workspace_pages "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/WorkspaceDetailPage.tsx"
click node_sandbox_pages "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/SandboxDetailPage.tsx"
click node_provider_pages "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/ProviderDetailPage.tsx"
click node_gateway_page "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/GatewayOverviewPage.tsx"
click node_api_client "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/client.ts"
click node_api_sandboxes "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/sandboxes.ts"
click node_api_auth "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/auth.ts"
click node_api_keys "https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/queryKeys.ts"
click node_bff "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/server/app.go"
click node_auth_relay "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/auth/proxy.go"
click node_sdk_clients "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/cmd/server/gateway_setup.go"
click node_workspace_service "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/workspace.go"
click node_sandbox_service "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/sandbox.go"
click node_policy_service "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/policy.go"
click node_template_service "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/template.go"
click node_provider_service "https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/provider.go"
click node_compat_sweep "https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/sweep.py"
click node_pins "https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/pins.py"
click node_compat_reports "https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/report.py"

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_routes,node_workspace_pages,node_sandbox_pages,node_provider_pages,node_gateway_page,node_api_client,node_api_sandboxes,node_api_auth,node_api_keys,node_user toneBlue
class node_bff,node_auth_relay,node_sdk_clients toneAmber
class node_workspace_service,node_sandbox_service,node_policy_service,node_template_service,node_provider_service toneMint
class node_compat_sweep,node_pins,node_compat_reports toneRose
class node_gateway toneIndigo
```

## Components

### Dashboard UI

- [Auth and routes](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/app/AppRoutes.tsx): `frontend/src/app/AppRoutes.tsx`
- [Workspace pages](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/WorkspaceDetailPage.tsx): `frontend/src/pages/WorkspaceDetailPage.tsx`
- [Sandbox pages](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/SandboxDetailPage.tsx): `frontend/src/pages/SandboxDetailPage.tsx`
- [Provider pages](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/ProviderDetailPage.tsx): `frontend/src/pages/ProviderDetailPage.tsx`
- [Gateway overview](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/pages/GatewayOverviewPage.tsx): `frontend/src/pages/GatewayOverviewPage.tsx`
- [API transport](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/client.ts): `frontend/src/api/client.ts`
- [Sandbox API](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/sandboxes.ts): `frontend/src/api/sandboxes.ts`
- [Auth API](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/auth.ts): `frontend/src/api/auth.ts`
- [Query keys](https://github.com/gkrumbach07/openshell-dashboard/blob/main/frontend/src/api/queryKeys.ts): `frontend/src/api/queryKeys.ts`

### BFF and gateway

- [Go REST BFF](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/server/app.go): `backend/pkg/server/app.go`
- [Token relay](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/auth/proxy.go): `backend/pkg/auth/proxy.go`
- [Gateway SDK clients](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/cmd/server/gateway_setup.go): `backend/cmd/server/gateway_setup.go`

### Admin domains

- [Workspace operations](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/workspace.go): `backend/pkg/services/workspace.go`
- [Sandbox operations](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/sandbox.go): `backend/pkg/services/sandbox.go`
- [Policy and drafts](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/policy.go): `backend/pkg/services/policy.go`
- [Template operations](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/template.go): `backend/pkg/services/template.go`
- [Provider operations](https://github.com/gkrumbach07/openshell-dashboard/blob/main/backend/pkg/services/provider.go): `backend/pkg/services/provider.go`

### Compatibility operations

- [Gateway compat sweep](https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/sweep.py): `deploy/ci/sweep/sweep.py`
- [Gateway and SDK pins](https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/pins.py): `deploy/ci/sweep/pins.py`
- [Compatibility reports](https://github.com/gkrumbach07/openshell-dashboard/blob/main/deploy/ci/sweep/report.py): `deploy/ci/sweep/report.py`

### Other components

- **Dashboard user**
- **OpenShell gateway**

## Connections

- Dashboard user → Auth and routes: uses (evidence: `README.md`)
- Auth and routes → Workspace pages: routes to
- Auth and routes → Sandbox pages: routes to
- Auth and routes → Provider pages: routes to
- Auth and routes → Gateway overview: routes to
- Workspace pages → API transport: requests via
- Sandbox pages → Sandbox API: requests via
- Provider pages → API transport: requests via
- Gateway overview → API transport: requests via
- Sandbox API → API transport: calls (evidence: `frontend/src/api/sandboxes.ts`)
- Auth API → API transport: calls (evidence: `frontend/src/api/auth.ts`)
- Sandbox API → Query keys: uses keys (evidence: `frontend/src/api/sandboxes.ts`)
- API transport → Go REST BFF: HTTP requests (evidence: `frontend/src/api/client.ts`)
- Go REST BFF → Token relay: authenticates routes (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Workspace operations: dispatches (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Sandbox operations: dispatches (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Policy and drafts: dispatches (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Template operations: dispatches (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Provider operations: dispatches (evidence: `backend/pkg/server/app.go`)
- Go REST BFF → Gateway SDK clients: uses gateway client
- Gateway SDK clients → OpenShell gateway: gRPC calls (evidence: `README.md`)
- Gateway compat sweep → Gateway and SDK pins: validates and updates (evidence: `deploy/ci/sweep/sweep.py`)
- Gateway compat sweep → Compatibility reports: renders (evidence: `deploy/ci/sweep/sweep.py`)
- Gateway compat sweep → OpenShell gateway: tests gateway compatibility (evidence: `README.md`)
