# ant-design/ant-design-pro architecture

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

- Interactive diagram: https://gitdiagram.com/ant-design/ant-design-pro
- Repository: https://github.com/ant-design/ant-design-pro

## Overview

Ant Design Pro is a React enterprise-application template. Users enter through the application shell and can use its documented dashboard, form, list, profile, account, chatbot, and other page templates; service modules provide request functions. A separate Cloudflare Worker exposes mock API routes, several backed by sample data. The excerpts show the shell’s current-user lookup and the Worker’s route registration, but do not establish that the frontend targets this Worker, so that integration is left unconnected. Unexcerpted template links are documented, not verified in source.

Main entry points: [`cloudflare-worker/src/index.ts`](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/index.ts) (Route dispatcher), [`src/app.tsx`](https://github.com/ant-design/ant-design-pro/blob/master/src/app.tsx) (Runtime shell), [`cloudflare-worker/src/routes/dashboard.ts`](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/dashboard.ts) (Dashboard routes), [`cloudflare-worker/src/routes/list.ts`](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/list.ts) (List routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Application shell"]
  node_shell["Runtime shell<br/>[app.tsx]"]
  node_shared["Shared components"]
  node_currentapi["User API client<br/>[api.ts]"]
end

subgraph group_templates["Page templates"]
  node_dashpages["Dashboard templates"]
  node_formpages["Form templates"]
  node_listpages["List templates"]
  node_profilepages["Profile templates"]
  node_accountpages["Account pages"]
  node_chatbot["AI assistant"]
  node_otherpages["Other templates"]
end

subgraph group_worker["Worker API"]
  node_workerapp["Route dispatcher<br/>[index.ts]"]
  node_dashroute["Dashboard routes<br/>[dashboard.ts]"]
  node_georoute["Geographic routes<br/>[geographic.ts]"]
  node_listroute["List routes<br/>[list.ts]"]
  node_monitorroute["Monitor routes<br/>[monitor.ts]"]
  node_noticeroute["Notice routes<br/>[notices.ts]"]
  node_profileroute["Profile routes<br/>[profile.ts]"]
  node_tableroute["Table routes<br/>[table.ts]"]
  node_userroute["User routes<br/>[user.ts]"]
  node_settingsroute["Settings routes<br/>[settings.ts]"]
  node_errorroute["Error routes<br/>[errors.ts]"]
end

subgraph group_workerdata["Sample API data"]
  node_dashdata["Dashboard samples<br/>[dashboard.ts]"]
  node_commondata["Common samples<br/>[common.ts]"]
  node_noticedata["Notice samples<br/>[notices.ts]"]
  node_tabledata["Table samples<br/>[table.ts]"]
  node_userdata["User samples<br/>[user.ts]"]
end

node_user(("Application user"))

node_user -->|"uses"| node_shell
node_shell -->|"queries user"| node_currentapi
node_shell -->|"renders layout"| node_shared
node_shell -.->|"offers templates"| node_dashpages
node_shell -.->|"offers templates"| node_formpages
node_shell -.->|"offers templates"| node_listpages
node_shell -.->|"offers templates"| node_profilepages
node_shell -.->|"offers templates"| node_accountpages
node_shell -.->|"offers template"| node_chatbot
node_shell -.->|"offers templates"| node_otherpages
node_workerapp -->|"mounts routes"| node_userroute
node_workerapp -->|"mounts routes"| node_dashroute
node_workerapp -->|"mounts routes"| node_tableroute
node_workerapp -->|"mounts routes"| node_noticeroute
node_workerapp -->|"mounts routes"| node_monitorroute
node_workerapp -->|"mounts routes"| node_errorroute
node_workerapp -->|"mounts routes"| node_georoute
node_workerapp -->|"mounts routes"| node_listroute
node_workerapp -->|"mounts routes"| node_profileroute
node_workerapp -->|"mounts routes"| node_settingsroute
node_dashroute -->|"reads samples"| node_dashdata
node_listroute -->|"reads samples"| node_commondata
node_noticeroute -->|"reads samples"| node_noticedata
node_tableroute -->|"reads samples"| node_tabledata
node_userroute -->|"uses samples"| node_userdata
node_settingsroute -->|"uses samples"| node_commondata

click node_shell "https://github.com/ant-design/ant-design-pro/blob/master/src/app.tsx"
click node_shared "https://github.com/ant-design/ant-design-pro/tree/master/src/components"
click node_currentapi "https://github.com/ant-design/ant-design-pro/blob/master/src/services/ant-design-pro/api.ts"
click node_dashpages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/dashboard"
click node_formpages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/form"
click node_listpages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/list"
click node_profilepages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/profile"
click node_accountpages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/account"
click node_chatbot "https://github.com/ant-design/ant-design-pro/tree/master/src/pages/chatbot"
click node_otherpages "https://github.com/ant-design/ant-design-pro/tree/master/src/pages"
click node_workerapp "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/index.ts"
click node_dashroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/dashboard.ts"
click node_georoute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/geographic.ts"
click node_listroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/list.ts"
click node_monitorroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/monitor.ts"
click node_noticeroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/notices.ts"
click node_profileroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/profile.ts"
click node_tableroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/table.ts"
click node_userroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/user.ts"
click node_settingsroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/settings.ts"
click node_errorroute "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/errors.ts"
click node_dashdata "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/dashboard.ts"
click node_commondata "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/common.ts"
click node_noticedata "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/notices.ts"
click node_tabledata "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/table.ts"
click node_userdata "https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/user.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_shell,node_shared,node_currentapi,node_user toneBlue
class node_dashpages,node_formpages,node_listpages,node_profilepages,node_accountpages,node_chatbot,node_otherpages toneAmber
class node_workerapp,node_dashroute,node_georoute,node_listroute,node_monitorroute,node_noticeroute,node_profileroute,node_tableroute,node_userroute,node_settingsroute,node_errorroute toneMint
class node_dashdata,node_commondata,node_noticedata,node_tabledata,node_userdata toneRose
```

## Components

### Application shell

- [Runtime shell](https://github.com/ant-design/ant-design-pro/blob/master/src/app.tsx): `src/app.tsx`
- [Shared components](https://github.com/ant-design/ant-design-pro/tree/master/src/components): `src/components`
- [User API client](https://github.com/ant-design/ant-design-pro/blob/master/src/services/ant-design-pro/api.ts): `src/services/ant-design-pro/api.ts`

### Page templates

- [Dashboard templates](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/dashboard): `src/pages/dashboard`
- [Form templates](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/form): `src/pages/form`
- [List templates](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/list): `src/pages/list`
- [Profile templates](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/profile): `src/pages/profile`
- [Account pages](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/account): `src/pages/account`
- [AI assistant](https://github.com/ant-design/ant-design-pro/tree/master/src/pages/chatbot): `src/pages/chatbot`
- [Other templates](https://github.com/ant-design/ant-design-pro/tree/master/src/pages): `src/pages`

### Worker API

- [Route dispatcher](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/index.ts): `cloudflare-worker/src/index.ts`
- [Dashboard routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/dashboard.ts): `cloudflare-worker/src/routes/dashboard.ts`
- [Geographic routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/geographic.ts): `cloudflare-worker/src/routes/geographic.ts`
- [List routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/list.ts): `cloudflare-worker/src/routes/list.ts`
- [Monitor routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/monitor.ts): `cloudflare-worker/src/routes/monitor.ts`
- [Notice routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/notices.ts): `cloudflare-worker/src/routes/notices.ts`
- [Profile routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/profile.ts): `cloudflare-worker/src/routes/profile.ts`
- [Table routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/table.ts): `cloudflare-worker/src/routes/table.ts`
- [User routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/user.ts): `cloudflare-worker/src/routes/user.ts`
- [Settings routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/settings.ts): `cloudflare-worker/src/routes/settings.ts`
- [Error routes](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/routes/errors.ts): `cloudflare-worker/src/routes/errors.ts`

### Sample API data

- [Dashboard samples](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/dashboard.ts): `cloudflare-worker/src/data/dashboard.ts`
- [Common samples](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/common.ts): `cloudflare-worker/src/data/common.ts`
- [Notice samples](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/notices.ts): `cloudflare-worker/src/data/notices.ts`
- [Table samples](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/table.ts): `cloudflare-worker/src/data/table.ts`
- [User samples](https://github.com/ant-design/ant-design-pro/blob/master/cloudflare-worker/src/data/user.ts): `cloudflare-worker/src/data/user.ts`

### Other components

- **Application user**

## Connections

- Application user → Runtime shell: uses (evidence: `README.md`)
- Runtime shell → User API client: queries user (evidence: `src/app.tsx`)
- Runtime shell → Shared components: renders layout (evidence: `src/app.tsx`)
- Runtime shell → Dashboard templates: offers templates (evidence: `README.md`)
- Runtime shell → Form templates: offers templates (evidence: `README.md`)
- Runtime shell → List templates: offers templates (evidence: `README.md`)
- Runtime shell → Profile templates: offers templates (evidence: `README.md`)
- Runtime shell → Account pages: offers templates (evidence: `README.md`)
- Runtime shell → AI assistant: offers template (evidence: `README.md`)
- Runtime shell → Other templates: offers templates (evidence: `README.md`)
- Route dispatcher → User routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Dashboard routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Table routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Notice routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Monitor routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Error routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Geographic routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → List routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Profile routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Route dispatcher → Settings routes: mounts routes (evidence: `cloudflare-worker/src/index.ts`)
- Dashboard routes → Dashboard samples: reads samples (evidence: `cloudflare-worker/src/routes/dashboard.ts`)
- List routes → Common samples: reads samples (evidence: `cloudflare-worker/src/routes/list.ts`)
- Notice routes → Notice samples: reads samples (evidence: `cloudflare-worker/src/routes/notices.ts`)
- Table routes → Table samples: reads samples (evidence: `cloudflare-worker/src/routes/table.ts`)
- User routes → User samples: uses samples (evidence: `cloudflare-worker/src/routes/user.ts`)
- Settings routes → Common samples: uses samples (evidence: `cloudflare-worker/src/routes/settings.ts`)
