# go-admin-team/go-admin-ui architecture

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

- Interactive diagram: https://gitdiagram.com/go-admin-team/go-admin-ui
- Repository: https://github.com/go-admin-team/go-admin-ui

## Overview

go-admin is a Vue-based administrative UI for a separately deployed Go backend. The main user journey is sign-in, permission-aware navigation, and using administration screens that call REST endpoints; dashboard, profile, monitoring, scheduling, and developer tools provide parallel capabilities. The graph combines sampled runtime wiring with documented product features. Some screens and API modules were not sampled, so their internal calls are omitted rather than inferred.

Main entry points: [`src/router/index.js`](https://github.com/go-admin-team/go-admin-ui/blob/master/src/router/index.js) (Route map), [`src/layout/index.vue`](https://github.com/go-admin-team/go-admin-ui/blob/master/src/layout/index.vue) (Admin layout), [`src/views/login/index.vue`](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/login/index.vue) (Sign in), [`src/utils/request.ts`](https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.ts) (HTTP client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_bootstrap["App bootstrap<br/>[main.js]"]
  node_router["Route map<br/>[index.js]"]
  node_layout["Admin layout<br/>[index.vue]"]
  node_dashboard["Dashboard<br/>[index.vue]"]
end

subgraph group_identity["Identity and access"]
  node_profile["Profile<br/>[index.vue]"]
  node_login["Sign in<br/>[index.vue]"]
  node_access["Permission routing<br/>[permission.js]"]
  node_userstate["User state<br/>[user.ts]"]
end

subgraph group_admin["Administration"]
  node_adminviews["Admin screens"]
  node_adminapi["Admin APIs"]
  node_monitor["Service monitoring<br/>[monitor.vue]"]
  node_schedule["Job scheduling<br/>[index.vue]"]
end

subgraph group_tools["Developer tools"]
  node_devtools["Code generation<br/>[index.vue]"]
  node_formbuilder["Form builder<br/>[Parser.vue]"]
  node_formrender["Form renderer<br/>[render.js]"]
  node_generator["Generator utilities<br/>[index.js]"]
end

subgraph group_platform["Shared platform"]
  node_request["HTTP client<br/>[request.ts]"]
  node_i18n["Localization<br/>[index.ts]"]
  node_locale_data["Locale messages<br/>[locales.ts]"]
  node_appstate["App preferences<br/>[app.ts]"]
end

node_operator(("Operator"))
node_backend{{"Go API backend"}}

node_operator -->|"signs in"| node_login
node_bootstrap -->|"installs"| node_router
node_bootstrap -->|"sets up"| node_i18n
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_profile
node_router -->|"uses"| node_layout
node_operator -.->|"uses"| node_layout
node_layout -->|"reads state"| node_appstate
node_login -.->|"authenticates"| node_userstate
node_access -.->|"checks access"| node_userstate
node_adminviews -.->|"uses endpoints"| node_adminapi
node_monitor -.->|"fetches metrics"| node_request
node_adminapi -->|"issues requests"| node_request
node_request -->|"calls REST API"| node_backend
node_schedule -.->|"uses REST API"| node_backend
node_devtools -.->|"uses REST API"| node_backend
node_formbuilder -->|"renders with"| node_formrender
node_formbuilder -->|"uses"| node_generator
node_formrender -->|"uses"| node_generator
node_i18n -->|"selects locale"| node_locale_data

click node_bootstrap "https://github.com/go-admin-team/go-admin-ui/blob/master/src/main.js"
click node_router "https://github.com/go-admin-team/go-admin-ui/blob/master/src/router/index.js"
click node_layout "https://github.com/go-admin-team/go-admin-ui/blob/master/src/layout/index.vue"
click node_dashboard "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/dashboard/admin/index.vue"
click node_profile "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/profile/index.vue"
click node_login "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/login/index.vue"
click node_access "https://github.com/go-admin-team/go-admin-ui/blob/master/src/permission.js"
click node_userstate "https://github.com/go-admin-team/go-admin-ui/blob/master/src/stores/user.ts"
click node_adminviews "https://github.com/go-admin-team/go-admin-ui/tree/master/src/views/admin"
click node_adminapi "https://github.com/go-admin-team/go-admin-ui/tree/master/src/api/admin"
click node_monitor "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/sys-tools/monitor.vue"
click node_schedule "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/schedule/index.vue"
click node_devtools "https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/dev-tools/gen/index.vue"
click node_formbuilder "https://github.com/go-admin-team/go-admin-ui/blob/master/src/components/FormGenParser/Parser.vue"
click node_formrender "https://github.com/go-admin-team/go-admin-ui/blob/master/src/components/FormGenRender/render.js"
click node_generator "https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/generator/index.js"
click node_request "https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.ts"
click node_i18n "https://github.com/go-admin-team/go-admin-ui/blob/master/src/lang/index.ts"
click node_locale_data "https://github.com/go-admin-team/go-admin-ui/blob/master/src/lang/locales.ts"
click node_appstate "https://github.com/go-admin-team/go-admin-ui/blob/master/src/stores/app.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_bootstrap,node_router,node_layout,node_dashboard toneBlue
class node_profile,node_login,node_access,node_userstate toneAmber
class node_adminviews,node_adminapi,node_monitor,node_schedule,node_backend toneMint
class node_devtools,node_formbuilder,node_formrender,node_generator toneRose
class node_request,node_i18n,node_locale_data,node_appstate,node_operator toneIndigo
```

## Components

### App shell

- [App bootstrap](https://github.com/go-admin-team/go-admin-ui/blob/master/src/main.js): `src/main.js`
- [Route map](https://github.com/go-admin-team/go-admin-ui/blob/master/src/router/index.js): `src/router/index.js`
- [Admin layout](https://github.com/go-admin-team/go-admin-ui/blob/master/src/layout/index.vue): `src/layout/index.vue`
- [Dashboard](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/dashboard/admin/index.vue): `src/views/dashboard/admin/index.vue`

### Identity and access

- [Profile](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/profile/index.vue): `src/views/profile/index.vue`
- [Sign in](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/login/index.vue): `src/views/login/index.vue`
- [Permission routing](https://github.com/go-admin-team/go-admin-ui/blob/master/src/permission.js): `src/permission.js`
- [User state](https://github.com/go-admin-team/go-admin-ui/blob/master/src/stores/user.ts): `src/stores/user.ts`

### Administration

- [Admin screens](https://github.com/go-admin-team/go-admin-ui/tree/master/src/views/admin): `src/views/admin`
- [Admin APIs](https://github.com/go-admin-team/go-admin-ui/tree/master/src/api/admin): `src/api/admin`
- [Service monitoring](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/sys-tools/monitor.vue): `src/views/sys-tools/monitor.vue`
- [Job scheduling](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/schedule/index.vue): `src/views/schedule/index.vue`

### Developer tools

- [Code generation](https://github.com/go-admin-team/go-admin-ui/blob/master/src/views/dev-tools/gen/index.vue): `src/views/dev-tools/gen/index.vue`
- [Form builder](https://github.com/go-admin-team/go-admin-ui/blob/master/src/components/FormGenParser/Parser.vue): `src/components/FormGenParser/Parser.vue`
- [Form renderer](https://github.com/go-admin-team/go-admin-ui/blob/master/src/components/FormGenRender/render.js): `src/components/FormGenRender/render.js`
- [Generator utilities](https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/generator/index.js): `src/utils/generator/index.js`

### Shared platform

- [HTTP client](https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.ts): `src/utils/request.ts`
- [Localization](https://github.com/go-admin-team/go-admin-ui/blob/master/src/lang/index.ts): `src/lang/index.ts`
- [Locale messages](https://github.com/go-admin-team/go-admin-ui/blob/master/src/lang/locales.ts): `src/lang/locales.ts`
- [App preferences](https://github.com/go-admin-team/go-admin-ui/blob/master/src/stores/app.ts): `src/stores/app.ts`

### Other components

- **Operator**
- **Go API backend**

## Connections

- Operator → Sign in: signs in (evidence: `README.md`)
- App bootstrap → Route map: installs (evidence: `src/main.js`)
- App bootstrap → Localization: sets up (evidence: `src/main.js`)
- Route map → Sign in: routes to (evidence: `src/router/index.js`)
- Route map → Dashboard: routes to (evidence: `src/router/index.js`)
- Route map → Profile: routes to (evidence: `src/router/index.js`)
- Route map → Admin layout: uses (evidence: `src/router/index.js`)
- Operator → Admin layout: uses
- Admin layout → App preferences: reads state (evidence: `src/layout/index.vue`)
- Sign in → User state: authenticates
- Permission routing → User state: checks access
- Admin screens → Admin APIs: uses endpoints
- Service monitoring → HTTP client: fetches metrics
- Admin APIs → HTTP client: issues requests (evidence: `src/api/admin/dict/data.ts`)
- HTTP client → Go API backend: calls REST API (evidence: `README.md`)
- Job scheduling → Go API backend: uses REST API
- Code generation → Go API backend: uses REST API
- Form builder → Form renderer: renders with (evidence: `src/components/FormGenParser/Parser.vue`)
- Form builder → Generator utilities: uses (evidence: `src/components/FormGenParser/Parser.vue`)
- Form renderer → Generator utilities: uses (evidence: `src/components/FormGenRender/render.js`)
- Localization → Locale messages: selects locale (evidence: `src/lang/index.ts`)
