# technoload-techflow/technoload-webapp architecture

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

- Interactive diagram: https://gitdiagram.com/technoload-techflow/technoload-webapp
- Repository: https://github.com/technoload-techflow/technoload-webapp

## Overview

TechnoLoad is a fleet, maintenance, and dispatch management demo. The README describes the primary user flow: users review operational indicators, manage assets, schedule maintenance, and create dispatches that reserve available units. The tree also contains an Angular implementation and a hosting-oriented JavaScript variant with API-backed customer and admin features; these appear to be parallel app surfaces, not one demonstrated runtime pipeline. Source excerpts are partial, so connections between unsampled features are omitted.

Main entry points: [`hosting/app.js`](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js) (Hosted workflows), [`app.js`](https://github.com/technoload-techflow/technoload-webapp/blob/main/app.js) (Demo workflows), [`src/app/app.component.ts`](https://github.com/technoload-techflow/technoload-webapp/blob/main/src/app/app.component.ts) (Fleet app), [`src/main.ts`](https://github.com/technoload-techflow/technoload-webapp/blob/main/src/main.ts) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_static["Static demo"]
  node_static_ui["Demo workflows<br/>[app.js]"]
  node_demo_state["Demo state<br/>[app.js]"]
  node_translations["Translations<br/>[i18n.js]"]
end

subgraph group_angular["Angular app"]
  node_angular_entry["App bootstrap<br/>[main.ts]"]
  node_angular_app["Fleet app<br/>[app.component.ts]"]
  node_domain_models["Domain models<br/>[models.ts]"]
end

subgraph group_hosted["Hosted app"]
  node_host_app["Hosted workflows<br/>[app.js]"]
  node_host_auth["Authentication<br/>[app.js]"]
  node_host_customer["Customer services<br/>[app.js]"]
  node_host_admin["Admin approvals<br/>[app.js]"]
  node_host_config["API configuration<br/>[config.js]"]
  node_host_i18n["Hosted translations<br/>[i18n.js]"]
end

node_operator(("Fleet user"))
node_browser_store[("Browser storage")]
node_api{{"Platform API"}}

node_operator -->|"uses"| node_static_ui
node_static_ui -->|"updates"| node_demo_state
node_demo_state -->|"persists"| node_browser_store
node_static_ui -->|"translates via"| node_translations
node_operator -.->|"uses"| node_angular_entry
node_angular_entry -->|"bootstraps"| node_angular_app
node_angular_app -->|"imports"| node_domain_models
node_angular_app -->|"reads and writes"| node_browser_store
node_operator -.->|"uses"| node_host_app
node_host_app -->|"renders and handles"| node_host_auth
node_host_app -->|"routes customer views"| node_host_customer
node_host_app -->|"routes admin view"| node_host_admin
node_host_auth -->|"sends auth requests"| node_api
node_host_customer -->|"requests services"| node_api
node_host_admin -->|"loads requests"| node_api
node_host_app -.->|"reads endpoint"| node_host_config
node_host_app -->|"translates via"| node_host_i18n

click node_static_ui "https://github.com/technoload-techflow/technoload-webapp/blob/main/app.js"
click node_demo_state "https://github.com/technoload-techflow/technoload-webapp/blob/main/app.js"
click node_translations "https://github.com/technoload-techflow/technoload-webapp/blob/main/i18n.js"
click node_angular_entry "https://github.com/technoload-techflow/technoload-webapp/blob/main/src/main.ts"
click node_angular_app "https://github.com/technoload-techflow/technoload-webapp/blob/main/src/app/app.component.ts"
click node_domain_models "https://github.com/technoload-techflow/technoload-webapp/blob/main/src/app/models.ts"
click node_host_app "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js"
click node_host_auth "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js"
click node_host_customer "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js"
click node_host_admin "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js"
click node_host_config "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/config.js"
click node_host_i18n "https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/i18n.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_static_ui,node_demo_state,node_translations,node_operator toneBlue
class node_angular_entry,node_angular_app,node_domain_models,node_browser_store toneAmber
class node_host_app,node_host_auth,node_host_customer,node_host_admin,node_host_config,node_host_i18n,node_api toneMint
```

## Components

### Static demo

- [Demo workflows](https://github.com/technoload-techflow/technoload-webapp/blob/main/app.js): `app.js`
- [Demo state](https://github.com/technoload-techflow/technoload-webapp/blob/main/app.js): `app.js`
- [Translations](https://github.com/technoload-techflow/technoload-webapp/blob/main/i18n.js): `i18n.js`

### Angular app

- [App bootstrap](https://github.com/technoload-techflow/technoload-webapp/blob/main/src/main.ts): `src/main.ts`
- [Fleet app](https://github.com/technoload-techflow/technoload-webapp/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [Domain models](https://github.com/technoload-techflow/technoload-webapp/blob/main/src/app/models.ts): `src/app/models.ts`

### Hosted app

- [Hosted workflows](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js): `hosting/app.js`
- [Authentication](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js): `hosting/app.js`
- [Customer services](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js): `hosting/app.js`
- [Admin approvals](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/app.js): `hosting/app.js`
- [API configuration](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/config.js): `hosting/config.js`
- [Hosted translations](https://github.com/technoload-techflow/technoload-webapp/blob/main/hosting/i18n.js): `hosting/i18n.js`

### Other components

- **Fleet user**
- **Browser storage**
- **Platform API**

## Connections

- Fleet user → Demo workflows: uses (evidence: `README.md`)
- Demo workflows → Demo state: updates (evidence: `app.js`)
- Demo state → Browser storage: persists (evidence: `app.js`)
- Demo workflows → Translations: translates via (evidence: `app.js`)
- Fleet user → App bootstrap: uses
- App bootstrap → Fleet app: bootstraps (evidence: `src/main.ts`)
- Fleet app → Domain models: imports (evidence: `src/app/app.component.ts`)
- Fleet app → Browser storage: reads and writes (evidence: `src/app/app.component.ts`)
- Fleet user → Hosted workflows: uses
- Hosted workflows → Authentication: renders and handles (evidence: `hosting/app.js`)
- Hosted workflows → Customer services: routes customer views (evidence: `hosting/app.js`)
- Hosted workflows → Admin approvals: routes admin view (evidence: `hosting/app.js`)
- Authentication → Platform API: sends auth requests (evidence: `hosting/app.js`)
- Customer services → Platform API: requests services (evidence: `hosting/app.js`)
- Admin approvals → Platform API: loads requests (evidence: `hosting/app.js`)
- Hosted workflows → API configuration: reads endpoint
- Hosted workflows → Hosted translations: translates via (evidence: `hosting/app.js`)
