# intellishore/agent-workshop-template architecture

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

- Interactive diagram: https://gitdiagram.com/intellishore/agent-workshop-template
- Repository: https://github.com/intellishore/agent-workshop-template

## Overview

This is a minimal FastAPI + React workshop template: the page checks API health on load or on button press, then displays the returned status or an error. The browser entry point mounts the page; its request reaches FastAPI through the documented Vite development proxy. The sampled code shows no persistence or other domain stages. The graph captures the working vertical slice and its reusable button; evidence is limited to the README and the sampled source files.

Main entry points: [`apps/web/src/app.tsx`](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/app.tsx) (Health page), [`apps/web/src/main.tsx`](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/main.tsx) (React entry), [`apps/web/vite.config.ts`](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/vite.config.ts) (API proxy), [`apps/api/src/api/main.py`](https://github.com/intellishore/agent-workshop-template/blob/main/apps/api/src/api/main.py) (Health endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web client"]
  node_web_entry["React entry<br/>[main.tsx]"]
  node_health_page["Health page<br/>[app.tsx]"]
  node_button["UI button<br/>[button.tsx]"]
  node_vite_proxy["API proxy<br/>[vite.config.ts]"]
end

subgraph group_api["API service"]
  node_health_api["Health endpoint<br/>[main.py]"]
end

node_browser(("Browser"))

node_browser -->|"opens page"| node_web_entry
node_web_entry -->|"renders"| node_health_page
node_health_page -->|"renders"| node_button
node_health_page -->|"fetches health"| node_vite_proxy
node_vite_proxy -->|"proxies request"| node_health_api
node_health_api -->|"returns status"| node_health_page

click node_web_entry "https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/main.tsx"
click node_health_page "https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/app.tsx"
click node_button "https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/components/ui/button.tsx"
click node_vite_proxy "https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/vite.config.ts"
click node_health_api "https://github.com/intellishore/agent-workshop-template/blob/main/apps/api/src/api/main.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_web_entry,node_health_page,node_button,node_vite_proxy,node_browser toneBlue
class node_health_api toneAmber
```

## Components

### Web client

- [React entry](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/main.tsx): `apps/web/src/main.tsx`
- [Health page](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/app.tsx): `apps/web/src/app.tsx`
- [UI button](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/src/components/ui/button.tsx): `apps/web/src/components/ui/button.tsx`
- [API proxy](https://github.com/intellishore/agent-workshop-template/blob/main/apps/web/vite.config.ts): `apps/web/vite.config.ts`

### API service

- [Health endpoint](https://github.com/intellishore/agent-workshop-template/blob/main/apps/api/src/api/main.py): `apps/api/src/api/main.py`

### Other components

- **Browser**

## Connections

- Browser → React entry: opens page (evidence: `README.md`)
- React entry → Health page: renders (evidence: `apps/web/src/main.tsx`)
- Health page → UI button: renders (evidence: `apps/web/src/app.tsx`)
- Health page → API proxy: fetches health (evidence: `apps/web/src/app.tsx`)
- API proxy → Health endpoint: proxies request (evidence: `README.md`)
- Health endpoint → Health page: returns status (evidence: `apps/api/src/api/main.py`)
