# aliceo2group/webui architecture

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

## Overview

This repository is a suite of ALICE O² web UIs and shared frontend/backend libraries, rather than one end-to-end application. Its principal user paths are domain-specific: configuration editing, control-room operations, log querying, and QC layout/object access; Tokenization provides a separate token-management service. The tree and excerpts support several internal request and service relationships, but many product integrations are unsampled, so those connections are omitted rather than inferred.

Main entry points: [`Framework/Backend/log/LogManager.js`](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/LogManager.js) (Logging manager), [`QualityControl/lib/api.js`](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/api.js) (QC API setup), [`Tokenization/backend/central-system/src/controllers/TokensController.ts`](https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/controllers/TokensController.ts) (Token controller), [`Configuration/webapp/app/routes/configuration.tsx`](https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/routes/configuration.tsx) (Configuration routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Configuration UI"]
  node_config_routes["Configuration routes<br/>[configuration.tsx]"]
  node_config_editor["Configuration editor<br/>[Form.tsx]"]
  node_config_queries["Configuration queries"]
  node_config_client["Configuration API client<br/>[axiosInstance.ts]"]
end

subgraph group_control["AliECS Control"]
  node_control_ui["Control UI"]
  node_control_api["Control API<br/>[api.js]"]
  node_control_env["Environment operations"]
  node_control_consul["Hardware configuration"]
  node_control_config["Public configuration"]
end

subgraph group_infologger["InfoLogger"]
  node_logger_ui["Log viewer"]
  node_logger_api["Query endpoint<br/>[QueryController.js]"]
  node_logger_query["Log query service<br/>[QueryService.js]"]
  node_logger_cancel["Query cancellation"]
end

subgraph group_quality["Quality Control"]
  node_qc_ui["QC interface<br/>[index.js]"]
  node_qc_api["QC API setup<br/>[api.js]"]
  node_qc_layout["Layout controller"]
  node_qc_layout_repo["Layout repository"]
  node_qc_objects["QC object access"]
  node_qc_download["QCDB download"]
end

subgraph group_platform["Shared Platform"]
  node_token_controller["Token controller"]
  node_token_get["Token retrieval"]
  node_token_wrapper["Central-system wrapper"]
  node_framework_http["HTTP server<br/>[server.js]"]
  node_framework_logs["Logging manager<br/>[LogManager.js]"]
  node_framework_winston["Winston adapter<br/>[WinstonWrapper.js]"]
  node_framework_info_sender["InfoLogger sender"]
  node_framework_logger["Logger instances<br/>[Logger.js]"]
end

node_config_user(("Configuration user"))
node_control_user(("Control operator"))
node_logger_user(("Log analyst"))
node_qc_user(("QC user"))

node_config_user -.->|"opens"| node_config_routes
node_config_routes -.->|"renders"| node_config_editor
node_config_editor -.->|"requests data"| node_config_queries
node_config_queries -->|"sends request"| node_config_client
node_control_user -.->|"uses"| node_control_ui
node_control_ui -.->|"calls API"| node_control_api
node_control_api -.->|"routes to"| node_control_env
node_control_consul -->|"reads settings"| node_control_config
node_logger_user -.->|"uses"| node_logger_ui
node_logger_ui -.->|"submits query"| node_logger_api
node_logger_api -->|"queries logs"| node_logger_query
node_logger_query -->|"checks cancellation"| node_logger_cancel
node_qc_user -.->|"uses"| node_qc_ui
node_qc_ui -->|"starts services"| node_qc_api
node_qc_api -.->|"configures routes"| node_qc_layout
node_qc_api -.->|"configures routes"| node_qc_objects
node_qc_layout -->|"uses repository"| node_qc_layout_repo
node_qc_objects -->|"retrieves objects"| node_qc_download
node_token_controller -->|"retrieves tokens"| node_token_get
node_token_controller -->|"dispatches event"| node_token_wrapper
node_framework_http -->|"uses logger"| node_framework_logs
node_framework_logs -->|"creates adapter"| node_framework_winston
node_framework_logs -->|"creates sender"| node_framework_info_sender
node_framework_logs -->|"creates instances"| node_framework_logger

click node_config_routes "https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/routes/configuration.tsx"
click node_config_editor "https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/components/form/Form.tsx"
click node_config_queries "https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/api/query/useConfigurationKeysQuery.ts"
click node_config_client "https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/api/axiosInstance.ts"
click node_control_ui "https://github.com/aliceo2group/webui/blob/dev/Control/public/pages/Environment/Environment.page.js"
click node_control_api "https://github.com/aliceo2group/webui/blob/dev/Control/lib/api.js"
click node_control_env "https://github.com/aliceo2group/webui/blob/dev/Control/lib/controllers/Environment.controller.js"
click node_control_consul "https://github.com/aliceo2group/webui/blob/dev/Control/lib/controllers/Consul.controller.js"
click node_control_config "https://github.com/aliceo2group/webui/blob/dev/Control/lib/config/publicConfigProvider.js"
click node_logger_ui "https://github.com/aliceo2group/webui/blob/dev/InfoLogger/public/log/tableLogsContent.js"
click node_logger_api "https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/controller/QueryController.js"
click node_logger_query "https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/services/QueryService.js"
click node_logger_cancel "https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/utils/queryCancellation.js"
click node_qc_ui "https://github.com/aliceo2group/webui/blob/dev/QualityControl/public/index.js"
click node_qc_api "https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/api.js"
click node_qc_layout "https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/controllers/LayoutController.js"
click node_qc_layout_repo "https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/repositories/LayoutRepository.js"
click node_qc_objects "https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/controllers/ObjectController.js"
click node_qc_download "https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/services/QcdbDownload.service.js"
click node_token_controller "https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/controllers/TokensController.ts"
click node_token_get "https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/services/TokensGetService.ts"
click node_token_wrapper "https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/wrapper/CentralSystemWrapper.ts"
click node_framework_http "https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/http/server.js"
click node_framework_logs "https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/LogManager.js"
click node_framework_winston "https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/WinstonWrapper.js"
click node_framework_info_sender "https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/InfoLoggerSender.js"
click node_framework_logger "https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/Logger.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_config_routes,node_config_editor,node_config_queries,node_config_client,node_config_user,node_qc_user toneBlue
class node_control_ui,node_control_api,node_control_env,node_control_consul,node_control_config toneAmber
class node_logger_ui,node_logger_api,node_logger_query,node_logger_cancel toneMint
class node_qc_ui,node_qc_api,node_qc_layout,node_qc_layout_repo,node_qc_objects,node_qc_download toneRose
class node_token_controller,node_token_get,node_token_wrapper,node_framework_http,node_framework_logs,node_framework_winston,node_framework_info_sender,node_framework_logger,node_control_user,node_logger_user toneIndigo
```

## Components

### Configuration UI

- [Configuration routes](https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/routes/configuration.tsx): `Configuration/webapp/app/routes/configuration.tsx`
- [Configuration editor](https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/components/form/Form.tsx): `Configuration/webapp/app/components/form/Form.tsx`
- [Configuration queries](https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/api/query/useConfigurationKeysQuery.ts): `Configuration/webapp/app/api/query/useConfigurationKeysQuery.ts`
- [Configuration API client](https://github.com/aliceo2group/webui/blob/dev/Configuration/webapp/app/api/axiosInstance.ts): `Configuration/webapp/app/api/axiosInstance.ts`

### AliECS Control

- [Control UI](https://github.com/aliceo2group/webui/blob/dev/Control/public/pages/Environment/Environment.page.js): `Control/public/pages/Environment/Environment.page.js`
- [Control API](https://github.com/aliceo2group/webui/blob/dev/Control/lib/api.js): `Control/lib/api.js`
- [Environment operations](https://github.com/aliceo2group/webui/blob/dev/Control/lib/controllers/Environment.controller.js): `Control/lib/controllers/Environment.controller.js`
- [Hardware configuration](https://github.com/aliceo2group/webui/blob/dev/Control/lib/controllers/Consul.controller.js): `Control/lib/controllers/Consul.controller.js`
- [Public configuration](https://github.com/aliceo2group/webui/blob/dev/Control/lib/config/publicConfigProvider.js): `Control/lib/config/publicConfigProvider.js`

### InfoLogger

- [Log viewer](https://github.com/aliceo2group/webui/blob/dev/InfoLogger/public/log/tableLogsContent.js): `InfoLogger/public/log/tableLogsContent.js`
- [Query endpoint](https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/controller/QueryController.js): `InfoLogger/lib/controller/QueryController.js`
- [Log query service](https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/services/QueryService.js): `InfoLogger/lib/services/QueryService.js`
- [Query cancellation](https://github.com/aliceo2group/webui/blob/dev/InfoLogger/lib/utils/queryCancellation.js): `InfoLogger/lib/utils/queryCancellation.js`

### Quality Control

- [QC interface](https://github.com/aliceo2group/webui/blob/dev/QualityControl/public/index.js): `QualityControl/public/index.js`
- [QC API setup](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/api.js): `QualityControl/lib/api.js`
- [Layout controller](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/controllers/LayoutController.js): `QualityControl/lib/controllers/LayoutController.js`
- [Layout repository](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/repositories/LayoutRepository.js): `QualityControl/lib/repositories/LayoutRepository.js`
- [QC object access](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/controllers/ObjectController.js): `QualityControl/lib/controllers/ObjectController.js`
- [QCDB download](https://github.com/aliceo2group/webui/blob/dev/QualityControl/lib/services/QcdbDownload.service.js): `QualityControl/lib/services/QcdbDownload.service.js`

### Shared Platform

- [Token controller](https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/controllers/TokensController.ts): `Tokenization/backend/central-system/src/controllers/TokensController.ts`
- [Token retrieval](https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/services/TokensGetService.ts): `Tokenization/backend/central-system/src/services/TokensGetService.ts`
- [Central-system wrapper](https://github.com/aliceo2group/webui/blob/dev/Tokenization/backend/central-system/src/wrapper/CentralSystemWrapper.ts): `Tokenization/backend/central-system/src/wrapper/CentralSystemWrapper.ts`
- [HTTP server](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/http/server.js): `Framework/Backend/http/server.js`
- [Logging manager](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/LogManager.js): `Framework/Backend/log/LogManager.js`
- [Winston adapter](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/WinstonWrapper.js): `Framework/Backend/log/WinstonWrapper.js`
- [InfoLogger sender](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/InfoLoggerSender.js): `Framework/Backend/log/InfoLoggerSender.js`
- [Logger instances](https://github.com/aliceo2group/webui/blob/dev/Framework/Backend/log/Logger.js): `Framework/Backend/log/Logger.js`

### Other components

- **Configuration user**
- **Control operator**
- **Log analyst**
- **QC user**

## Connections

- Configuration user → Configuration routes: opens
- Configuration routes → Configuration editor: renders
- Configuration editor → Configuration queries: requests data
- Configuration queries → Configuration API client: sends request (evidence: `Configuration/webapp/app/api/query/useConfigurationKeysQuery.ts`)
- Control operator → Control UI: uses
- Control UI → Control API: calls API
- Control API → Environment operations: routes to
- Hardware configuration → Public configuration: reads settings (evidence: `Control/lib/controllers/Consul.controller.js`)
- Log analyst → Log viewer: uses
- Log viewer → Query endpoint: submits query
- Query endpoint → Log query service: queries logs (evidence: `InfoLogger/lib/controller/QueryController.js`)
- Log query service → Query cancellation: checks cancellation (evidence: `InfoLogger/lib/services/QueryService.js`)
- QC user → QC interface: uses
- QC interface → QC API setup: starts services
- QC API setup → Layout controller: configures routes
- QC API setup → QC object access: configures routes
- Layout controller → Layout repository: uses repository (evidence: `QualityControl/lib/controllers/LayoutController.js`)
- QC object access → QCDB download: retrieves objects (evidence: `QualityControl/lib/controllers/ObjectController.js`)
- Token controller → Token retrieval: retrieves tokens (evidence: `Tokenization/backend/central-system/src/controllers/TokensController.ts`)
- Token controller → Central-system wrapper: dispatches event (evidence: `Tokenization/backend/central-system/src/controllers/TokensController.ts`)
- HTTP server → Logging manager: uses logger (evidence: `Framework/Backend/http/server.js`)
- Logging manager → Winston adapter: creates adapter (evidence: `Framework/Backend/log/LogManager.js`)
- Logging manager → InfoLogger sender: creates sender (evidence: `Framework/Backend/log/LogManager.js`)
- Logging manager → Logger instances: creates instances (evidence: `Framework/Backend/log/LogManager.js`)
