# eez-open/studio architecture

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

- Interactive diagram: https://gitdiagram.com/eez-open/studio
- Repository: https://github.com/eez-open/studio

## Overview

EEZ Studio is a desktop visual-development environment and SCPI instrument controller. Users open or create projects, edit embedded GUIs and EEZ Flow automation, then build output for embedded targets or use dashboard features. Separately, users configure instruments, connect over supported interfaces, issue commands, and inspect measurement data and activity history. The graph preserves those documented capabilities alongside the sampled Electron startup and Docker-build orchestration. Some feature nodes are directory-level because their source was not sampled; unsampled internal links are omitted.

Main entry points: [`packages/home/main.tsx`](https://github.com/eez-open/studio/blob/master/packages/home/main.tsx) (Home workspace), [`packages/instrument/instrument-object.ts`](https://github.com/eez-open/studio/blob/master/packages/instrument/instrument-object.ts) (Instrument workspace), [`packages/project-editor/features/page/page.tsx`](https://github.com/eez-open/studio/blob/master/packages/project-editor/features/page/page.tsx) (Project editor), [`packages/main/main.ts`](https://github.com/eez-open/studio/blob/master/packages/main/main.ts) (Electron startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop and projects"]
  node_electron["Electron startup<br/>[main.ts]"]
  node_home["Home workspace<br/>[main.tsx]"]
end

subgraph group_design["Project design and runtime"]
  node_project["Project editor<br/>[page.tsx]"]
  node_flow["Flow editor<br/>[editor.tsx]"]
  node_flowruntime["Flow runtime<br/>[runtime.ts]"]
  node_embeddedflow["Embedded Flow runtime<br/>[eez-flow.cpp]"]
  node_embeddedgui["Embedded GUI runtime<br/>[eez-gui-lite.c]"]
  node_lvglbuild["LVGL build manager<br/>[build-manager.ts]"]
  node_docker["Docker build operations"]
  node_dashboard["Dashboard editor"]
  node_idf["Instrument definition editor"]
end

subgraph group_instruments["Instrument control"]
  node_instrument["Instrument workspace"]
  node_connection["Device connections<br/>[interface.ts]"]
  node_scpi["SCPI commands<br/>[scpi.ts]"]
  node_history["Session history<br/>[history.ts]"]
  node_waveforms["Waveform analysis<br/>[generic.tsx]"]
  node_measurements["Measurement functions"]
end

subgraph group_shared["Shared services"]
  node_extensions[("Extension catalog<br/>[catalog.ts]")]
  node_sharedservices["Shared services<br/>[service.ts]"]
end

node_user(("Studio user"))
node_instrumentsystem{{"Serial, Ethernet, VISA"}}

node_user -->|"launches"| node_electron
node_electron -->|"opens workspace"| node_home
node_home -->|"opens projects"| node_project
node_home -->|"opens editor"| node_flow
node_flow -.->|"runs flows"| node_flowruntime
node_flowruntime -.->|"targets embedded"| node_embeddedflow
node_project -.->|"generates GUI"| node_embeddedgui
node_home -.->|"builds project"| node_lvglbuild
node_lvglbuild -->|"calls build operations"| node_docker
node_project -->|"designs dashboard"| node_dashboard
node_project -->|"defines commands"| node_idf
node_user -->|"configures instruments"| node_instrument
node_instrument -->|"connects devices"| node_connection
node_connection -->|"uses interfaces"| node_instrumentsystem
node_instrument -->|"issues commands"| node_scpi
node_instrument -->|"records sessions"| node_history
node_instrument -->|"views measurements"| node_waveforms
node_waveforms -->|"analyzes data"| node_measurements
node_home -->|"loads catalog"| node_extensions
node_electron -->|"loads service"| node_sharedservices

click node_electron "https://github.com/eez-open/studio/blob/master/packages/main/main.ts"
click node_home "https://github.com/eez-open/studio/blob/master/packages/home/main.tsx"
click node_project "https://github.com/eez-open/studio/blob/master/packages/project-editor/features/page/page.tsx"
click node_flow "https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/editor/editor.tsx"
click node_flowruntime "https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/runtime/runtime.ts"
click node_embeddedflow "https://github.com/eez-open/studio/blob/master/resources/eez-framework-amalgamation/eez-flow.cpp"
click node_embeddedgui "https://github.com/eez-open/studio/blob/master/resources/eez-gui-lite/eez-gui-lite.c"
click node_lvglbuild "https://github.com/eez-open/studio/blob/master/packages/project-editor/lvgl/docker-build/build-manager.ts"
click node_docker "https://github.com/eez-open/studio/blob/master/packages/project-editor/lvgl/docker-build/docker-build-lib.ts"
click node_dashboard "https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/components/widgets/dashboard/embedded-dashboard.tsx"
click node_idf "https://github.com/eez-open/studio/blob/master/packages/project-editor/features/instrument-commands/instrument-commands.tsx"
click node_instrument "https://github.com/eez-open/studio/blob/master/packages/instrument/instrument-object.ts"
click node_connection "https://github.com/eez-open/studio/blob/master/packages/instrument/connection/interface.ts"
click node_scpi "https://github.com/eez-open/studio/blob/master/packages/instrument/scpi.ts"
click node_history "https://github.com/eez-open/studio/blob/master/packages/instrument/window/history/history.ts"
click node_waveforms "https://github.com/eez-open/studio/blob/master/packages/instrument/window/waveform/generic.tsx"
click node_measurements "https://github.com/eez-open/studio/blob/master/packages/basic-measurements/basic-measurements-extension.ts"
click node_extensions "https://github.com/eez-open/studio/blob/master/packages/home/extensions-manager/catalog.ts"
click node_sharedservices "https://github.com/eez-open/studio/blob/master/packages/eez-studio-shared/service.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_electron,node_home,node_user toneBlue
class node_project,node_flow,node_flowruntime,node_embeddedflow,node_embeddedgui,node_lvglbuild,node_docker,node_dashboard,node_idf toneAmber
class node_instrument,node_connection,node_scpi,node_history,node_waveforms,node_measurements toneMint
class node_extensions,node_sharedservices toneRose
class node_instrumentsystem toneIndigo
```

## Components

### Desktop and projects

- [Electron startup](https://github.com/eez-open/studio/blob/master/packages/main/main.ts): `packages/main/main.ts`
- [Home workspace](https://github.com/eez-open/studio/blob/master/packages/home/main.tsx): `packages/home/main.tsx`

### Project design and runtime

- [Project editor](https://github.com/eez-open/studio/blob/master/packages/project-editor/features/page/page.tsx): `packages/project-editor/features/page/page.tsx`
- [Flow editor](https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/editor/editor.tsx): `packages/project-editor/flow/editor/editor.tsx`
- [Flow runtime](https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/runtime/runtime.ts): `packages/project-editor/flow/runtime/runtime.ts`
- [Embedded Flow runtime](https://github.com/eez-open/studio/blob/master/resources/eez-framework-amalgamation/eez-flow.cpp): `resources/eez-framework-amalgamation/eez-flow.cpp`
- [Embedded GUI runtime](https://github.com/eez-open/studio/blob/master/resources/eez-gui-lite/eez-gui-lite.c): `resources/eez-gui-lite/eez-gui-lite.c`
- [LVGL build manager](https://github.com/eez-open/studio/blob/master/packages/project-editor/lvgl/docker-build/build-manager.ts): `packages/project-editor/lvgl/docker-build/build-manager.ts`
- [Docker build operations](https://github.com/eez-open/studio/blob/master/packages/project-editor/lvgl/docker-build/docker-build-lib.ts): `packages/project-editor/lvgl/docker-build/docker-build-lib.ts`
- [Dashboard editor](https://github.com/eez-open/studio/blob/master/packages/project-editor/flow/components/widgets/dashboard/embedded-dashboard.tsx): `packages/project-editor/flow/components/widgets/dashboard/embedded-dashboard.tsx`
- [Instrument definition editor](https://github.com/eez-open/studio/blob/master/packages/project-editor/features/instrument-commands/instrument-commands.tsx): `packages/project-editor/features/instrument-commands/instrument-commands.tsx`

### Instrument control

- [Instrument workspace](https://github.com/eez-open/studio/blob/master/packages/instrument/instrument-object.ts): `packages/instrument/instrument-object.ts`
- [Device connections](https://github.com/eez-open/studio/blob/master/packages/instrument/connection/interface.ts): `packages/instrument/connection/interface.ts`
- [SCPI commands](https://github.com/eez-open/studio/blob/master/packages/instrument/scpi.ts): `packages/instrument/scpi.ts`
- [Session history](https://github.com/eez-open/studio/blob/master/packages/instrument/window/history/history.ts): `packages/instrument/window/history/history.ts`
- [Waveform analysis](https://github.com/eez-open/studio/blob/master/packages/instrument/window/waveform/generic.tsx): `packages/instrument/window/waveform/generic.tsx`
- [Measurement functions](https://github.com/eez-open/studio/blob/master/packages/basic-measurements/basic-measurements-extension.ts): `packages/basic-measurements/basic-measurements-extension.ts`

### Shared services

- [Extension catalog](https://github.com/eez-open/studio/blob/master/packages/home/extensions-manager/catalog.ts): `packages/home/extensions-manager/catalog.ts`
- [Shared services](https://github.com/eez-open/studio/blob/master/packages/eez-studio-shared/service.ts): `packages/eez-studio-shared/service.ts`

### Other components

- **Studio user**
- **Serial, Ethernet, VISA**

## Connections

- Studio user → Electron startup: launches
- Electron startup → Home workspace: opens workspace (evidence: `packages/main/main.ts`)
- Home workspace → Project editor: opens projects
- Home workspace → Flow editor: opens editor
- Flow editor → Flow runtime: runs flows
- Flow runtime → Embedded Flow runtime: targets embedded
- Project editor → Embedded GUI runtime: generates GUI
- Home workspace → LVGL build manager: builds project
- LVGL build manager → Docker build operations: calls build operations (evidence: `packages/project-editor/lvgl/docker-build/build-manager.ts`)
- Project editor → Dashboard editor: designs dashboard
- Project editor → Instrument definition editor: defines commands
- Studio user → Instrument workspace: configures instruments
- Instrument workspace → Device connections: connects devices
- Device connections → Serial, Ethernet, VISA: uses interfaces
- Instrument workspace → SCPI commands: issues commands
- Instrument workspace → Session history: records sessions
- Instrument workspace → Waveform analysis: views measurements
- Waveform analysis → Measurement functions: analyzes data
- Home workspace → Extension catalog: loads catalog (evidence: `packages/home/main.tsx`)
- Electron startup → Shared services: loads service (evidence: `packages/main/main.ts`)
