# vuejs/devtools-v6 architecture

> Architecture diagram of the GitHub repository vuejs/devtools-v6, 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/vuejs/devtools-v6
- Repository: https://github.com/vuejs/devtools-v6

## Overview

This is the Vue Devtools monorepo: a public plugin API and framework-specific backends inspect running Vue applications, while a bridge delivers app, component, and timeline data to the browser-based Devtools UI. The UI exposes component/state inspection, custom inspectors, timeline, plugin management, and settings; browser-extension and Electron shells provide host environments. The principal registration and UI connection paths are visible in excerpts. Some feature internals and shell wiring are unsampled, so their relationships are omitted or marked unverified rather than inferred.

Main entry points: [`packages/app-frontend/src/app.ts`](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/app.ts) (Frontend connection), [`packages/app-backend-core/src/app.ts`](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-core/src/app.ts) (App registration), [`packages/app-backend-vue2/src/index.ts`](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/index.ts) (Vue 2 backend), [`packages/app-backend-vue3/src/index.ts`](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/index.ts) (Vue 3 backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Plugin API"]
  node_plugin_api["Public plugin API<br/>[index.ts]"]
end

subgraph group_backend["Inspection Backend"]
  node_backend_api["Backend API<br/>[backend-context.ts]"]
  node_app_registry["App registration<br/>[app.ts]"]
  node_vue2_backend["Vue 2 backend<br/>[index.ts]"]
  node_vue2_data["Vue 2 state<br/>[data.ts]"]
  node_vue2_tree["Vue 2 component tree<br/>[tree.ts]"]
  node_vue2_plugin["Vue 2 plugins<br/>[plugin.ts]"]
  node_vue3_backend["Vue 3 backend<br/>[index.ts]"]
  node_vue3_data["Vue 3 state<br/>[data.ts]"]
  node_vue3_tree["Vue 3 component tree<br/>[tree.ts]"]
  node_timeline_backend["Timeline capture<br/>[timeline.ts]"]
  node_bridge["Shared bridge<br/>[bridge.ts]"]
end

subgraph group_frontend["Devtools UI"]
  node_frontend_app["Frontend connection<br/>[app.ts]"]
  node_ui_shell["Devtools workspace<br/>[App.vue]"]
  node_component_ui["Component inspector"]
  node_timeline_ui["Timeline view<br/>[Timeline.vue]"]
  node_custom_ui["Custom inspectors"]
  node_plugin_ui["Plugin management<br/>[Plugins.vue]"]
  node_settings_ui["Global settings<br/>[GlobalSettings.vue]"]
  node_storage[("Persistent storage<br/>[storage.ts]")]
end

subgraph group_hosts["Host Environments"]
  node_extension["Browser extension shell<br/>[devtools.js]"]
  node_electron["Electron shell<br/>[server.js]"]
end

node_vue(("Vue application"))

node_vue -->|"registers plugins"| node_plugin_api
node_plugin_api -.->|"extends backend API"| node_backend_api
node_backend_api -->|"provides context"| node_app_registry
node_app_registry -->|"selects by version"| node_vue2_backend
node_app_registry -->|"selects by version"| node_vue3_backend
node_vue2_backend -->|"registers handlers"| node_backend_api
node_vue3_backend -.->|"registers handlers"| node_backend_api
node_vue2_backend -->|"reads and edits"| node_vue2_data
node_vue2_backend -->|"walks components"| node_vue2_tree
node_vue2_backend -->|"sets up plugins"| node_vue2_plugin
node_vue3_backend -.->|"handles state"| node_vue3_data
node_vue3_backend -->|"walks components"| node_vue3_tree
node_app_registry -->|"adds builtin layers"| node_timeline_backend
node_app_registry -->|"sends app events"| node_bridge
node_frontend_app -->|"connects frontend"| node_bridge
node_frontend_app -->|"mounts workspace"| node_ui_shell
node_frontend_app -->|"sets up event handling"| node_component_ui
node_frontend_app -->|"sets up event handling"| node_timeline_ui
node_frontend_app -->|"sets up event handling"| node_custom_ui
node_frontend_app -->|"sets up event handling"| node_plugin_ui
node_ui_shell -->|"persists theme"| node_storage
node_component_ui -.->|"displays inspected data"| node_vue2_tree
node_extension -.->|"hosts interface"| node_frontend_app
node_electron -.->|"hosts interface"| node_frontend_app

click node_plugin_api "https://github.com/vuejs/devtools-v6/blob/main/packages/api/src/index.ts"
click node_backend_api "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-api/src/backend-context.ts"
click node_app_registry "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-core/src/app.ts"
click node_vue2_backend "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/index.ts"
click node_vue2_data "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/components/data.ts"
click node_vue2_tree "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/components/tree.ts"
click node_vue2_plugin "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/plugin.ts"
click node_vue3_backend "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/index.ts"
click node_vue3_data "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/components/data.ts"
click node_vue3_tree "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/components/tree.ts"
click node_timeline_backend "https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-core/src/timeline.ts"
click node_bridge "https://github.com/vuejs/devtools-v6/blob/main/packages/shared-utils/src/bridge.ts"
click node_frontend_app "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/app.ts"
click node_ui_shell "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/App.vue"
click node_component_ui "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/components/ComponentsInspector.vue"
click node_timeline_ui "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/timeline/Timeline.vue"
click node_custom_ui "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/inspector/custom/CustomInspector.vue"
click node_plugin_ui "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/plugin/Plugins.vue"
click node_settings_ui "https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/settings/GlobalSettings.vue"
click node_storage "https://github.com/vuejs/devtools-v6/blob/main/packages/shared-utils/src/storage.ts"
click node_extension "https://github.com/vuejs/devtools-v6/blob/main/packages/shell-chrome/src/devtools.js"
click node_electron "https://github.com/vuejs/devtools-v6/blob/main/packages/shell-electron/server.js"

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_plugin_api toneBlue
class node_backend_api,node_app_registry,node_vue2_backend,node_vue2_data,node_vue2_tree,node_vue2_plugin,node_vue3_backend,node_vue3_data,node_vue3_tree,node_timeline_backend,node_bridge toneAmber
class node_frontend_app,node_ui_shell,node_component_ui,node_timeline_ui,node_custom_ui,node_plugin_ui,node_settings_ui,node_storage toneMint
class node_extension,node_electron toneRose
class node_vue toneIndigo
```

## Components

### Plugin API

- [Public plugin API](https://github.com/vuejs/devtools-v6/blob/main/packages/api/src/index.ts): `packages/api/src/index.ts`

### Inspection Backend

- [Backend API](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-api/src/backend-context.ts): `packages/app-backend-api/src/backend-context.ts`
- [App registration](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-core/src/app.ts): `packages/app-backend-core/src/app.ts`
- [Vue 2 backend](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/index.ts): `packages/app-backend-vue2/src/index.ts`
- [Vue 2 state](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/components/data.ts): `packages/app-backend-vue2/src/components/data.ts`
- [Vue 2 component tree](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/components/tree.ts): `packages/app-backend-vue2/src/components/tree.ts`
- [Vue 2 plugins](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue2/src/plugin.ts): `packages/app-backend-vue2/src/plugin.ts`
- [Vue 3 backend](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/index.ts): `packages/app-backend-vue3/src/index.ts`
- [Vue 3 state](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/components/data.ts): `packages/app-backend-vue3/src/components/data.ts`
- [Vue 3 component tree](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-vue3/src/components/tree.ts): `packages/app-backend-vue3/src/components/tree.ts`
- [Timeline capture](https://github.com/vuejs/devtools-v6/blob/main/packages/app-backend-core/src/timeline.ts): `packages/app-backend-core/src/timeline.ts`
- [Shared bridge](https://github.com/vuejs/devtools-v6/blob/main/packages/shared-utils/src/bridge.ts): `packages/shared-utils/src/bridge.ts`

### Devtools UI

- [Frontend connection](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/app.ts): `packages/app-frontend/src/app.ts`
- [Devtools workspace](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/App.vue): `packages/app-frontend/src/features/App.vue`
- [Component inspector](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/components/ComponentsInspector.vue): `packages/app-frontend/src/features/components/ComponentsInspector.vue`
- [Timeline view](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/timeline/Timeline.vue): `packages/app-frontend/src/features/timeline/Timeline.vue`
- [Custom inspectors](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/inspector/custom/CustomInspector.vue): `packages/app-frontend/src/features/inspector/custom/CustomInspector.vue`
- [Plugin management](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/plugin/Plugins.vue): `packages/app-frontend/src/features/plugin/Plugins.vue`
- [Global settings](https://github.com/vuejs/devtools-v6/blob/main/packages/app-frontend/src/features/settings/GlobalSettings.vue): `packages/app-frontend/src/features/settings/GlobalSettings.vue`
- [Persistent storage](https://github.com/vuejs/devtools-v6/blob/main/packages/shared-utils/src/storage.ts): `packages/shared-utils/src/storage.ts`

### Host Environments

- [Browser extension shell](https://github.com/vuejs/devtools-v6/blob/main/packages/shell-chrome/src/devtools.js): `packages/shell-chrome/src/devtools.js`
- [Electron shell](https://github.com/vuejs/devtools-v6/blob/main/packages/shell-electron/server.js): `packages/shell-electron/server.js`

### Other components

- **Vue application**

## Connections

- Vue application → Public plugin API: registers plugins (evidence: `packages/api/src/index.ts`)
- Public plugin API → Backend API: extends backend API (evidence: `README.md`)
- Backend API → App registration: provides context (evidence: `packages/app-backend-core/src/app.ts`)
- App registration → Vue 2 backend: selects by version (evidence: `packages/app-backend-core/src/app.ts`)
- App registration → Vue 3 backend: selects by version (evidence: `packages/app-backend-core/src/app.ts`)
- Vue 2 backend → Backend API: registers handlers (evidence: `packages/app-backend-vue2/src/index.ts`)
- Vue 3 backend → Backend API: registers handlers (evidence: `packages/app-backend-vue3/src/index.ts`)
- Vue 2 backend → Vue 2 state: reads and edits (evidence: `packages/app-backend-vue2/src/index.ts`)
- Vue 2 backend → Vue 2 component tree: walks components (evidence: `packages/app-backend-vue2/src/index.ts`)
- Vue 2 backend → Vue 2 plugins: sets up plugins (evidence: `packages/app-backend-vue2/src/index.ts`)
- Vue 3 backend → Vue 3 state: handles state (evidence: `packages/app-backend-vue3/src/index.ts`)
- Vue 3 backend → Vue 3 component tree: walks components (evidence: `packages/app-backend-vue3/src/index.ts`)
- App registration → Timeline capture: adds builtin layers (evidence: `packages/app-backend-core/src/app.ts`)
- App registration → Shared bridge: sends app events (evidence: `packages/app-backend-core/src/app.ts`)
- Frontend connection → Shared bridge: connects frontend (evidence: `packages/app-frontend/src/app.ts`)
- Frontend connection → Devtools workspace: mounts workspace (evidence: `packages/app-frontend/src/app.ts`)
- Frontend connection → Component inspector: sets up event handling (evidence: `packages/app-frontend/src/app.ts`)
- Frontend connection → Timeline view: sets up event handling (evidence: `packages/app-frontend/src/app.ts`)
- Frontend connection → Custom inspectors: sets up event handling (evidence: `packages/app-frontend/src/app.ts`)
- Frontend connection → Plugin management: sets up event handling (evidence: `packages/app-frontend/src/app.ts`)
- Devtools workspace → Persistent storage: persists theme (evidence: `packages/app-frontend/src/features/App.vue`)
- Component inspector → Vue 2 component tree: displays inspected data
- Browser extension shell → Frontend connection: hosts interface (evidence: `README.md`)
- Electron shell → Frontend connection: hosts interface (evidence: `README.md`)
