# eclipse-aaspe/package-explorer architecture

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

- Interactive diagram: https://gitdiagram.com/eclipse-aaspe/package-explorer
- Repository: https://github.com/eclipse-aaspe/package-explorer

## Overview

1. This repository is a mono-repo for **Eclipse AASX Package Explorer**, a C#/.NET toolset centered on **Asset Administration Shell (AAS) V3** packages. The main user-facing product is a desktop editor/viewer, but the repo also contains a web UI, server components, converters, plugins, shared UI abstractions, and test/tooling projects.

2. The core domain boundary is the **AAS metamodel and serialization layer**. `src/AasCore.Aas3_1` contains the primary V3.1 model and logic such as JSON/XML serialization, verification, reporting, visitation, and stringification. `src/AasxServer.DomainModelV3_0_RC02` is a parallel generated model for an older V3 RC branch, while `src/AasxCsharpLibrary` provides the broader AAS helper layer, compatibility models, validation, and extension methods.

3. The main persistence and package boundary is **`PackageCentral`** in `src/AasxPackageLogic`. It abstracts how AAS packages are accessed: local `.aasx` files, buffered environments, HTTP-backed repositories, network file access, and dynamic/on-demand fetch environments. This is the layer that turns a package into a navigable/editable environment for the UI and for server/export features.

4. The primary desktop application is **`src/AasxPackageExplorer`**, a **WPF** shell. Its `MainWindow` and related XAML files host the editor UI, command bindings, splash/about windows, flyouts, and demo/content assets. It depends on `AasxPackageLogic` for all package operations and on `AasxWpfControlLibrary` for reusable controls and dialogs.

5. There is a second UI stack in **`src/BlazorExplorer`** and a simpler **`src/BlazorUI`**, both built as **Blazor** applications. They mirror much of the explorer experience in a browser-based form, with pages for trees, rendering, flyouts, menus, and session state. The web UI talks to shared backend logic through `AASService`, session classes, and AnyUI-adapted components rather than duplicating domain rules.

6. A major architectural seam is **AnyUI / UI abstraction**. `src/AnyUi`, `src/AasxIntegrationBase`, `src/AasxIntegrationBaseWpf`, `src/AasxIntegrationBaseGdi`, `src/AasxWpfControlLibrary`, and `src/BlazorExplorer/AnyUI` provide a platform-neutral widget/dialog model with platform-specific renderers for WPF, GDI, and Blazor. This allows the same package logic and plugin workflows to be presented across UI technologies.

7. The repository has a **plugin architecture** centered on `AasxIntegrationBase` and per-plugin `.plugin`/options files. Plugins such as GenericForms, TechnicalData, DigitalNameplate, DocumentShelf, Plotting, MTP viewer, WebBrowser, BOM structure, AssetInterfaceDesc, ExportTable, and others contribute domain-specific editors, importers, exporters, and visualizations. The host app loads these plugins and surfaces them through menus, flyouts, and AnyUI controls.

8. Several subsystems integrate AAS with **external protocols and servers**. `src/AasxRestServerLibrary` and `src/AasxFileServerRestLibrary` provide REST endpoints for package/file-server scenarios, while `src/AasxUaNetServer`, `src/AasxOpcUa2Client`, and `src/AasxUaNetConsoleServer` cover OPC UA server/client integration. The README explicitly notes that the explorer can run an internal REST server and OPC UA server for the loaded `.AASX`; the server-oriented projects extend that into reusable hosting components.

9. The repo also contains many **format conversion and import/export modules**. Examples include AML import/export, BAMM RDF import, schema export, CST conversion, JSON schema export, signature handling, and package transforms for BOM, CSV, MTP, Thing Description, ECLASS/SAMM, and predefined concept mappings. `AasxPredefinedConcepts` is the shared concept/mapping repository that feeds these converters and template generators.

10. Validation and tooling are first-class. `src/AasxToolkit` is a CLI for extract/generate/validate tasks, `src/Check*` scripts enforce style, headers, todos, and commit rules, and there are dedicated test projects for core library behavior, GUI behavior, schema export, toolkit behavior, dictionary import, and package explorer integration. GitHub workflows and DocFX content under `docdev` support CI, packaging, and developer documentation.

11. From an architecture-diagram perspective, the key flow is: **AASX package or remote repository → PackageCentral/environment → domain model (`AasCore.Aas3_1` / helper libraries) → UI layer (WPF or Blazor via AnyUI) and/or server/export plugins → persistence, export, or protocol endpoints**. The important boundaries are the metamodel layer, package access layer, UI abstraction layer, plugin boundary, and server/protocol boundary.

Main entry points: [`src/AasxIntegrationBase`](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxIntegrationBase) (Integration base), [`src/AasxPackageLogic/PackageCentral/PackageCentral.cs`](https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasxPackageLogic/PackageCentral/PackageCentral.cs) (PackageCentral), [`src/AasxPredefinedConcepts`](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPredefinedConcepts) (Predefined concepts), [`src/AasCore.Aas3_1`](https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasCore.Aas3_1) (AAS V3.1)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Domain model"]
  node_aascore31[("AAS V3.1<br/>metamodel + serialization<br/>[AasCore.Aas3_1]")]
  node_aascore30rc02[("AAS RC02<br/>legacy metamodel")]
  node_csharplib["C# library<br/>helpers + compat"]
  node_predefined["Predefined concepts<br/>concept mappings"]
end

subgraph group_package["Package access"]
  node_packagecentral["PackageCentral<br/>package environment<br/>[PackageCentral.cs]"]
  node_pkgcontainers["Containers<br/>package backends"]
  node_mainlogic["Main logic<br/>app coordination"]
end

subgraph group_ui["User interfaces"]
  node_wpfapp["WPF explorer<br/>desktop shell"]
  node_wpfcontrols["WPF controls<br/>shared WPF ui"]
  node_anyui["AnyUI core<br/>ui abstraction"]
  node_integrationbase["Integration base<br/>plugin host API"]
  node_blazor["Blazor Explorer<br/>browser shell"]
  node_blazorui["Blazor UI<br/>web shell"]
end

subgraph group_plugins["Plugins"]
  node_genericforms["Generic Forms<br/>plugin"]
  node_techdata["Technical Data<br/>plugin"]
  node_digitalnameplate["Digital Nameplate<br/>plugin"]
  node_exporttable["Export Table<br/>plugin"]
  node_smdexporter["SMD exporter<br/>plugin"]
end

subgraph group_servers["Servers"]
  node_restserver["REST server<br/>server library"]
  node_uanetserver["OPC UA server<br/>server library"]
end

subgraph group_tools["Tooling"]
  node_toolkit["Toolkit CLI<br/>cli utility"]
  node_schemaexport["Schema export<br/>export module"]
  node_amlbamm["Format converters<br/>import/export"]
end

node_aascore31 -->|"model helpers"| node_csharplib
node_aascore30rc02 -->|"legacy helpers"| node_csharplib
node_predefined -->|"templates"| node_genericforms
node_predefined -->|"domain presets"| node_techdata
node_predefined -->|"nameplate defs"| node_digitalnameplate
node_packagecentral -->|"backends"| node_pkgcontainers
node_csharplib -->|"env base"| node_packagecentral
node_packagecentral -->|"package ops"| node_mainlogic
node_mainlogic -->|"desktop shell"| node_wpfapp
node_mainlogic -->|"web coordination"| node_blazor
node_wpfapp -->|"ui reuse"| node_wpfcontrols
node_wpfapp -->|"plugin host"| node_integrationbase
node_blazor -->|"rendering"| node_anyui
node_wpfcontrols -->|"rendering"| node_anyui
node_integrationbase -->|"abstraction"| node_anyui
node_integrationbase -->|"plugin api"| node_genericforms
node_integrationbase -->|"plugin api"| node_techdata
node_integrationbase -->|"plugin api"| node_digitalnameplate
node_integrationbase -->|"plugin api"| node_exporttable
node_integrationbase -->|"plugin api"| node_smdexporter
node_restserver -->|"remote access"| node_packagecentral
node_uanetserver -->|"ua exposure"| node_packagecentral
node_toolkit -->|"validate/emit"| node_aascore31
node_schemaexport -->|"schema model"| node_aascore31
node_amlbamm -->|"transform"| node_aascore31
node_amlbamm -->|"mappings"| node_predefined
node_blazorui -->|"rendering"| node_anyui

click node_aascore31 "https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasCore.Aas3_1"
click node_aascore30rc02 "https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasxServer.DomainModelV3_0_RC02"
click node_csharplib "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxCsharpLibrary"
click node_predefined "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPredefinedConcepts"
click node_packagecentral "https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasxPackageLogic/PackageCentral/PackageCentral.cs"
click node_pkgcontainers "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageLogic/PackageCentral"
click node_mainlogic "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageLogic"
click node_wpfapp "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageExplorer"
click node_wpfcontrols "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxWpfControlLibrary"
click node_anyui "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AnyUi"
click node_integrationbase "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxIntegrationBase"
click node_blazor "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/BlazorExplorer"
click node_blazorui "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/BlazorUI"
click node_genericforms "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginGenericForms"
click node_techdata "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginTechnicalData"
click node_digitalnameplate "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginDigitalNameplate"
click node_exporttable "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginExportTable"
click node_smdexporter "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginSmdExporter"
click node_restserver "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxRestServerLibrary"
click node_uanetserver "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxUaNetServer"
click node_toolkit "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxToolkit"
click node_schemaexport "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxSchemaExport"
click node_amlbamm "https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxAmlImExport"

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_aascore31,node_aascore30rc02,node_csharplib,node_predefined toneBlue
class node_packagecentral,node_pkgcontainers,node_mainlogic toneAmber
class node_wpfapp,node_wpfcontrols,node_anyui,node_integrationbase,node_blazor,node_blazorui toneMint
class node_genericforms,node_techdata,node_digitalnameplate,node_exporttable,node_smdexporter toneRose
class node_restserver,node_uanetserver toneIndigo
class node_toolkit,node_schemaexport,node_amlbamm toneTeal
```

## Components

### Domain model

AAS metamodels, validation, serialization, and shared compatibility helpers.

- [AAS V3.1](https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasCore.Aas3_1): metamodel + serialization · Primary Asset Administration Shell V3.1 model with JSON/XML, verification, visitation, reporting, and stringification. · `src/AasCore.Aas3_1`
- [AAS RC02](https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasxServer.DomainModelV3_0_RC02): legacy metamodel · Parallel generated model for the older V3 RC02 branch. · `src/AasxServer.DomainModelV3_0_RC02`
- [C# library](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxCsharpLibrary): helpers + compat · Compatibility models, extensions, validation helpers, package env base types, and secure access abstractions. · `src/AasxCsharpLibrary`
- [Predefined concepts](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPredefinedConcepts): concept mappings · Shared concept definitions, mappings, and conversion helpers used by plugins and generators. · `src/AasxPredefinedConcepts`

### Package access

Central package/environment abstraction and repository backends.

- [PackageCentral](https://github.com/eclipse-aaspe/package-explorer/blob/main/src/AasxPackageLogic/PackageCentral/PackageCentral.cs): package environment · Central abstraction for local files, buffered environments, HTTP repos, and on-demand fetch handling. · `src/AasxPackageLogic/PackageCentral/PackageCentral.cs`
- [Containers](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageLogic/PackageCentral): package backends · Concrete package containers and list factories for local, network, HTTP, repository, and file-server sources. · `src/AasxPackageLogic/PackageCentral`
- [Main logic](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageLogic): app coordination · Desktop/app orchestration, menus, scripting, tools, modify-repo actions, and AnyUI dialog glue. · `src/AasxPackageLogic`

### User interfaces

Desktop and web shells plus shared UI abstraction layers.

- [WPF explorer](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPackageExplorer): desktop shell · Main WPF explorer shell with windows, commands, themes, demo assets, and package explorer UI. · `src/AasxPackageExplorer`
- [WPF controls](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxWpfControlLibrary): shared WPF ui · Reusable controls, flyouts, and package container visualizations for the desktop app. · `src/AasxWpfControlLibrary`
- [AnyUI core](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AnyUi): ui abstraction · Platform-neutral widget/dialog model shared by WPF, GDI, and Blazor renderers. · `src/AnyUi`
- [Integration base](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxIntegrationBase): plugin host API · Plugin interfaces, menu abstractions, event stack, logging, and AnyUI bridge types. · `src/AasxIntegrationBase`
- [Blazor Explorer](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/BlazorExplorer): browser shell · Browser-based explorer with session state, AnyUI rendering pages, and AAS service integration. · `src/BlazorExplorer`
- [Blazor UI](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/BlazorUI): web shell · Simpler Blazor UI stack with shared AAS service, tree rendering, and session state. · `src/BlazorUI`

### Plugins

Plugin boundary and representative domain-specific extensions.

- [Generic Forms](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginGenericForms): plugin · Template-driven form plugin used for common AAS data-entry workflows. · `src/AasxPluginGenericForms`
- [Technical Data](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginTechnicalData): plugin · Technical-data plugin with AnyUI control and options for domain-specific entry and browsing. · `src/AasxPluginTechnicalData`
- [Digital Nameplate](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginDigitalNameplate): plugin · Digital nameplate plugin and associated options/data/control layer. · `src/AasxPluginDigitalNameplate`
- [Export Table](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginExportTable): plugin · Export/import plugin covering tables, SMT, UML, time series, and bulk semantic-id changes. · `src/AasxPluginExportTable`
- [SMD exporter](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxPluginSmdExporter): plugin · Simulation-model-description exporter and related physical/text UI. · `src/AasxPluginSmdExporter`

### Servers

REST and OPC UA hosting/integration components.

- [REST server](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxRestServerLibrary): server library · Reusable REST server/client layer for package and file-server scenarios. · `src/AasxRestServerLibrary`
- [OPC UA server](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxUaNetServer): server library · UA server wrapper and AAS node-manager implementation for exposing package data over OPC UA. · `src/AasxUaNetServer`

### Tooling

CLI, export/import, validation, and developer utilities.

- [Toolkit CLI](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxToolkit): cli utility · Command-line extract/generate/validate tool and sample validators. · `src/AasxToolkit`
- [Schema export](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxSchemaExport): export module · JSON schema exporter for submodel templates and schema-related tests. · `src/AasxSchemaExport`
- [Format converters](https://github.com/eclipse-aaspe/package-explorer/tree/main/src/AasxAmlImExport): import/export · Representative format conversion modules for AML, BAMM RDF, CST, and signature/package transforms. · `src/AasxAmlImExport`

## Connections

- AAS V3.1 → C# library: model helpers · Shared extension/validation layers build on the core metamodel.
- AAS RC02 → C# library: legacy helpers · Legacy RC02 model is supported through the shared compatibility library.
- Predefined concepts → Generic Forms: templates · Concept definitions feed form templates and presets.
- Predefined concepts → Technical Data: domain presets · Technical-data definitions back the plugin UI and mappings.
- Predefined concepts → Digital Nameplate: nameplate defs · Digital nameplate definitions are reused by the plugin.
- PackageCentral → Containers: backends · PackageCentral coordinates the concrete container implementations.
- C# library → PackageCentral: env base · Package environment base types and online connection abstractions are consumed by PackageCentral.
- PackageCentral → Main logic: package ops · Main app logic uses the central package/environment boundary.
- Main logic → WPF explorer: desktop shell · The WPF shell hosts command handling and user workflows.
- Main logic → Blazor Explorer: web coordination · Shared app logic is surfaced through the Blazor explorer session and service layer.
- WPF explorer → WPF controls: ui reuse · Desktop shell depends on reusable controls and flyouts.
- WPF explorer → Integration base: plugin host · The shell loads plugins via the integration base contracts.
- Blazor Explorer → AnyUI core: rendering · Blazor adapts the AnyUI abstraction to browser components.
- WPF controls → AnyUI core: rendering · WPF controls implement the AnyUI surface for desktop rendering.
- Integration base → AnyUI core: abstraction · Plugin infrastructure uses AnyUI for platform-neutral dialogs and widgets.
- Integration base → Generic Forms: plugin api · GenericForms implements the host plugin interface.
- Integration base → Technical Data: plugin api · Technical-data plugin implements the host plugin interface.
- Integration base → Digital Nameplate: plugin api · Digital-nameplate plugin implements the host plugin interface.
- Integration base → Export Table: plugin api · Export-table plugin implements the host plugin interface.
- Integration base → SMD exporter: plugin api · SMD exporter plugin implements the host plugin interface.
- REST server → PackageCentral: remote access · REST endpoints expose or consume package data through the package layer.
- OPC UA server → PackageCentral: ua exposure · OPC UA hosting projects surface package contents through the package layer.
- Toolkit CLI → AAS V3.1: validate/emit · CLI generation and validation operate on the core model.
- Schema export → AAS V3.1: schema model · Schema export derives from the AAS model and metamodel context.
- Format converters → AAS V3.1: transform · Format converters map package content to and from the core model.
- Format converters → Predefined concepts: mappings · Converters consume predefined concepts and mapping repositories.
- Blazor UI → AnyUI core: rendering · The simpler Blazor UI also uses the shared AnyUI abstraction.
