# buqiyuan/vite-vue3-lowcode architecture

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

- Interactive diagram: https://gitdiagram.com/buqiyuan/vite-vue3-lowcode
- Repository: https://github.com/buqiyuan/vite-vue3-lowcode

## Overview

This is an experimental Vue-based H5 low-code editor. Its documented workflow is to create pages, drag components onto them, configure properties and actions, then preview the saved page schema. The graph highlights the editor shell, schema/state, component catalog, and separate preview runtime. Relationships are limited to calls/imports visible in excerpts or the SOURCE INDEX; several unsampled subsystems are represented at their directory paths, so their internal wiring is omitted.

Main entry points: [`src/visual-editor/index.vue`](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/index.vue) (Editor shell), [`src/visual-editor/hooks/useVisualData.ts`](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/hooks/useVisualData.ts) (Editor state), [`src/visual.config.tsx`](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual.config.tsx) (Editor config), [`src/visual-editor/components/header/index.vue`](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/header/index.vue) (Editor toolbar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Visual editor"]
  node_editor["Editor shell<br/>[index.vue]"]
  node_toolbar["Editor toolbar<br/>[index.vue]"]
  node_palette["Component palette<br/>[index.vue]"]
  node_attributes["Attribute panel<br/>[index.tsx]"]
  node_simulator["Canvas simulator"]
  node_data_panels["Data source panels"]
  node_event_editor["Event actions<br/>[index.tsx]"]
  node_code_editor["Monaco editor<br/>[MonacoEditor.tsx]"]
end

subgraph group_model["Schema and state"]
  node_schema["Page schema"]
  node_state["Editor state<br/>[useVisualData.ts]"]
  node_config["Editor config<br/>[visual.config.tsx]"]
end

subgraph group_catalog["Component catalog"]
  node_widgets["Base widgets"]
  node_containers["Container widgets"]
end

subgraph group_runtime["Preview runtime"]
  node_preview_router["Preview routing<br/>[router.ts]"]
  node_preview["Preview page<br/>[preview.vue]"]
  node_renderer["Component renderer<br/>[slot-item.vue]"]
  node_http["Preview requests<br/>[request.ts]"]
  node_local_storage[("Browser storage")]
end

subgraph group_platform["App platform"]
  node_app["Editor app<br/>[App.vue]"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_router["Editor routing<br/>[index.ts]"]
end

node_user(("Builder"))

node_user -.->|"edits pages"| node_editor
node_bootstrap -->|"mounts"| node_app
node_bootstrap -->|"installs"| node_router
node_router -->|"routes to"| node_editor
node_app -->|"initializes"| node_state
node_editor -->|"renders"| node_toolbar
node_editor -->|"renders"| node_palette
node_editor -->|"renders"| node_attributes
node_editor -->|"renders"| node_simulator
node_state -->|"uses"| node_config
node_config -->|"uses"| node_schema
node_config -->|"registers"| node_widgets
node_config -->|"registers"| node_containers
node_toolbar -->|"uses"| node_state
node_toolbar -->|"opens"| node_code_editor
node_preview_router -->|"routes to"| node_preview
node_preview -->|"renders"| node_renderer
node_preview -->|"reads schema"| node_local_storage
node_renderer -->|"uses requests"| node_http
node_renderer -->|"uses types"| node_schema
node_data_panels -.->|"edits data"| node_state
node_event_editor -.->|"edits actions"| node_state

click node_app "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/App.vue"
click node_bootstrap "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/main.ts"
click node_router "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/router/index.ts"
click node_editor "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/index.vue"
click node_toolbar "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/header/index.vue"
click node_palette "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/left-aside/index.vue"
click node_attributes "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/right-attribute-panel/index.tsx"
click node_simulator "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/simulator-editor/simulator-editor.vue"
click node_data_panels "https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/visual-editor/components/left-aside/components/data-source"
click node_event_editor "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/right-attribute-panel/components/event-action/index.tsx"
click node_code_editor "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/common/monaco-editor/MonacoEditor.tsx"
click node_schema "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/visual-editor.utils.ts"
click node_state "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/hooks/useVisualData.ts"
click node_config "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual.config.tsx"
click node_widgets "https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/packages/base-widgets"
click node_containers "https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/packages/container-component"
click node_preview_router "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/router.ts"
click node_preview "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/views/preview.vue"
click node_renderer "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/views/slot-item.vue"
click node_http "https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/utils/http/request.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_editor,node_toolbar,node_palette,node_attributes,node_simulator,node_data_panels,node_event_editor,node_code_editor toneBlue
class node_schema,node_state,node_config toneAmber
class node_widgets,node_containers toneMint
class node_preview_router,node_preview,node_renderer,node_http,node_local_storage toneRose
class node_app,node_bootstrap,node_router,node_user toneIndigo
```

## Components

### Visual editor

- [Editor shell](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/index.vue): `src/visual-editor/index.vue`
- [Editor toolbar](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/header/index.vue): `src/visual-editor/components/header/index.vue`
- [Component palette](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/left-aside/index.vue): `src/visual-editor/components/left-aside/index.vue`
- [Attribute panel](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/right-attribute-panel/index.tsx): `src/visual-editor/components/right-attribute-panel/index.tsx`
- [Canvas simulator](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/simulator-editor/simulator-editor.vue): `src/visual-editor/components/simulator-editor/simulator-editor.vue`
- [Data source panels](https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/visual-editor/components/left-aside/components/data-source): `src/visual-editor/components/left-aside/components/data-source`
- [Event actions](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/right-attribute-panel/components/event-action/index.tsx): `src/visual-editor/components/right-attribute-panel/components/event-action/index.tsx`
- [Monaco editor](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/components/common/monaco-editor/MonacoEditor.tsx): `src/visual-editor/components/common/monaco-editor/MonacoEditor.tsx`

### Schema and state

- [Page schema](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/visual-editor.utils.ts): `src/visual-editor/visual-editor.utils.ts`
- [Editor state](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual-editor/hooks/useVisualData.ts): `src/visual-editor/hooks/useVisualData.ts`
- [Editor config](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/visual.config.tsx): `src/visual.config.tsx`

### Component catalog

- [Base widgets](https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/packages/base-widgets): `src/packages/base-widgets`
- [Container widgets](https://github.com/buqiyuan/vite-vue3-lowcode/tree/main/src/packages/container-component): `src/packages/container-component`

### Preview runtime

- [Preview routing](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/router.ts): `preview/router.ts`
- [Preview page](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/views/preview.vue): `preview/views/preview.vue`
- [Component renderer](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/views/slot-item.vue): `preview/views/slot-item.vue`
- [Preview requests](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/preview/utils/http/request.ts): `preview/utils/http/request.ts`
- **Browser storage**

### App platform

- [Editor app](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/App.vue): `src/App.vue`
- [App bootstrap](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/main.ts): `src/main.ts`
- [Editor routing](https://github.com/buqiyuan/vite-vue3-lowcode/blob/main/src/router/index.ts): `src/router/index.ts`

### Other components

- **Builder**

## Connections

- Builder → Editor shell: edits pages (evidence: `README.md`)
- App bootstrap → Editor app: mounts (evidence: `src/main.ts`)
- App bootstrap → Editor routing: installs (evidence: `src/main.ts`)
- Editor routing → Editor shell: routes to (evidence: `src/router/index.ts`)
- Editor app → Editor state: initializes (evidence: `src/App.vue`)
- Editor shell → Editor toolbar: renders (evidence: `src/visual-editor/index.vue`)
- Editor shell → Component palette: renders (evidence: `src/visual-editor/index.vue`)
- Editor shell → Attribute panel: renders (evidence: `src/visual-editor/index.vue`)
- Editor shell → Canvas simulator: renders (evidence: `src/visual-editor/index.vue`)
- Editor state → Editor config: uses (evidence: `src/visual-editor/hooks/useVisualData.ts`)
- Editor config → Page schema: uses (evidence: `src/visual.config.tsx`)
- Editor config → Base widgets: registers (evidence: `src/visual.config.tsx`)
- Editor config → Container widgets: registers (evidence: `src/visual.config.tsx`)
- Editor toolbar → Editor state: uses
- Editor toolbar → Monaco editor: opens
- Preview routing → Preview page: routes to (evidence: `preview/router.ts`)
- Preview page → Component renderer: renders (evidence: `preview/views/preview.vue`)
- Preview page → Browser storage: reads schema (evidence: `preview/views/preview.vue`)
- Component renderer → Preview requests: uses requests (evidence: `preview/views/slot-item.vue`)
- Component renderer → Page schema: uses types (evidence: `preview/views/slot-item.vue`)
- Data source panels → Editor state: edits data
- Event actions → Editor state: edits actions
