# oisee/osg-demo architecture

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

- Interactive diagram: https://gitdiagram.com/oisee/osg-demo
- Repository: https://github.com/oisee/osg-demo

## Overview

The repository is an open-steamgate ABAP demo pack: it layers a fleet application onto a local ABAP system and uses a book to demonstrate application and runtime capabilities. The main user journey is opening the pack in VS Code, running the system, and executing an ABAP class; the broader demo proceeds through OData and Fiori into fleet data, then showcases jobs, logs, code generation, rules, orchestration, a native CLI, and WebAssembly. Relationships among unsampled ABAP components are based on README descriptions, not inspected implementation.

Main entry points: [`src/ddic/zosd_fleet_ship.tabl.xml`](https://github.com/oisee/osg-demo/blob/main/src/ddic/zosd_fleet_ship.tabl.xml) (Fleet data), [`src/zcl_zosd_fleet_dpc_ext.clas.abap`](https://github.com/oisee/osg-demo/blob/main/src/zcl_zosd_fleet_dpc_ext.clas.abap) (OData service), [`src/zcl_osd_fleet_job.clas.abap`](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_job.clas.abap) (Background jobs), [`webapp/Component.js`](https://github.com/oisee/osg-demo/blob/main/webapp/Component.js) (Fiori app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fleet["Fleet application"]
  node_hello["Hello class"]
  node_fleetdata[("Fleet data")]
  node_report["Fleet report"]
  node_amdp["Fuel summary"]
  node_businesslog["Business log"]
end

subgraph group_service["Service and clients"]
  node_cds["Voyage cube"]
  node_odata["OData service"]
  node_fiori["Fiori app<br/>[Component.js]"]
  node_annotations["UI annotations"]
end

subgraph group_automation["Rules and automation"]
  node_jobs["Background jobs"]
  node_chain["Job chain"]
  node_doctor["Job doctor"]
  node_template["Code templates"]
  node_lift["Legacy lift"]
  node_l2rules["L2 fleet rules"]
  node_night["Night orchestration"]
  node_watch["Alert governor"]
end

subgraph group_runtime["Runtime extensions"]
  node_cli["Fleet CLI"]
  node_csv["CSV import"]
  node_wasm["WASM Mandelbrot"]
  node_cdraw["Mandelbrot renderer<br/>[draw.c]"]
  node_mandel["Mandelbrot function<br/>[mandel.c]"]
end

subgraph group_workspace["Workspace experience"]
  node_vscode["VS Code"]
  node_steamgate["open-steamgate"]
end

node_developer(("Developer"))
node_httpclient(("HTTP client"))

node_developer -->|"opens pack"| node_vscode
node_vscode -->|"starts system"| node_steamgate
node_steamgate -->|"runs class"| node_hello
node_report -.->|"reports fleet"| node_fleetdata
node_odata -->|"serves data"| node_fleetdata
node_httpclient -->|"requests service"| node_odata
node_fiori -->|"uses service"| node_odata
node_fiori -->|"reads annotations"| node_annotations
node_cds -->|"aggregates voyages"| node_fleetdata
node_amdp -.->|"queries fuel"| node_fleetdata
node_businesslog -.->|"logs runs"| node_fleetdata
node_chain -->|"chains jobs"| node_jobs
node_doctor -->|"checks jobs"| node_jobs
node_template -->|"generates report"| node_report
node_lift -->|"renders recipe"| node_template
node_l2rules -.->|"checks rules"| node_fleetdata
node_night -->|"submits piles"| node_jobs
node_watch -.->|"governs runs"| node_night
node_cli -->|"loads CSV"| node_csv
node_wasm -->|"calls function"| node_mandel
node_cdraw -->|"calls function"| node_mandel

click node_hello "https://github.com/oisee/osg-demo/blob/main/src/zosd_demo_hello.clas.abap"
click node_fleetdata "https://github.com/oisee/osg-demo/blob/main/src/ddic/zosd_fleet_ship.tabl.xml"
click node_report "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_report.clas.abap"
click node_cds "https://github.com/oisee/osg-demo/blob/main/src/cds/zc_osd_fleetcube.ddls.asddls"
click node_amdp "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_fuel.clas.abap"
click node_odata "https://github.com/oisee/osg-demo/blob/main/src/zcl_zosd_fleet_dpc_ext.clas.abap"
click node_fiori "https://github.com/oisee/osg-demo/blob/main/webapp/Component.js"
click node_annotations "https://github.com/oisee/osg-demo/blob/main/src/zosd_fleet.stg.yaml"
click node_businesslog "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_bal.clas.abap"
click node_jobs "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_job.clas.abap"
click node_chain "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_chain.clas.abap"
click node_doctor "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_doctor.clas.abap"
click node_template "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_tpl.clas.abap"
click node_lift "https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_lift.clas.abap"
click node_l2rules "https://github.com/oisee/osg-demo/blob/main/src/l2/zcl_osd_fleet_l2_maint.clas.abap"
click node_night "https://github.com/oisee/osg-demo/blob/main/src/l3/zcl_osd_fleet_night.clas.abap"
click node_watch "https://github.com/oisee/osg-demo/blob/main/src/l3/zcl_osd_fleet_watch.clas.abap"
click node_cli "https://github.com/oisee/osg-demo/blob/main/cli/fleet/zosd_fleet_cli.prog.abap"
click node_csv "https://github.com/oisee/osg-demo/blob/main/cli/csv/zosd_fleet_csv.prog.abap"
click node_wasm "https://github.com/oisee/osg-demo/blob/main/src/iti/zcl_wasm_mandel.clas.abap"
click node_cdraw "https://github.com/oisee/osg-demo/blob/main/iti/draw.c"
click node_mandel "https://github.com/oisee/osg-demo/blob/main/iti/mandel.c"

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_hello,node_fleetdata,node_report,node_amdp,node_businesslog,node_httpclient toneBlue
class node_cds,node_odata,node_fiori,node_annotations toneAmber
class node_jobs,node_chain,node_doctor,node_template,node_lift,node_l2rules,node_night,node_watch toneMint
class node_cli,node_csv,node_wasm,node_cdraw,node_mandel toneRose
class node_vscode,node_steamgate,node_developer toneIndigo
```

## Components

### Fleet application

- [Hello class](https://github.com/oisee/osg-demo/blob/main/src/zosd_demo_hello.clas.abap): `src/zosd_demo_hello.clas.abap`
- [Fleet data](https://github.com/oisee/osg-demo/blob/main/src/ddic/zosd_fleet_ship.tabl.xml): `src/ddic/zosd_fleet_ship.tabl.xml`
- [Fleet report](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_report.clas.abap): `src/zcl_osd_fleet_report.clas.abap`
- [Fuel summary](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_fuel.clas.abap): `src/zcl_osd_fleet_fuel.clas.abap`
- [Business log](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_bal.clas.abap): `src/zcl_osd_fleet_bal.clas.abap`

### Service and clients

- [Voyage cube](https://github.com/oisee/osg-demo/blob/main/src/cds/zc_osd_fleetcube.ddls.asddls): `src/cds/zc_osd_fleetcube.ddls.asddls`
- [OData service](https://github.com/oisee/osg-demo/blob/main/src/zcl_zosd_fleet_dpc_ext.clas.abap): `src/zcl_zosd_fleet_dpc_ext.clas.abap`
- [Fiori app](https://github.com/oisee/osg-demo/blob/main/webapp/Component.js): `webapp/Component.js`
- [UI annotations](https://github.com/oisee/osg-demo/blob/main/src/zosd_fleet.stg.yaml): `src/zosd_fleet.stg.yaml`

### Rules and automation

- [Background jobs](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_job.clas.abap): `src/zcl_osd_fleet_job.clas.abap`
- [Job chain](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_chain.clas.abap): `src/zcl_osd_fleet_chain.clas.abap`
- [Job doctor](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_doctor.clas.abap): `src/zcl_osd_fleet_doctor.clas.abap`
- [Code templates](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_tpl.clas.abap): `src/zcl_osd_fleet_tpl.clas.abap`
- [Legacy lift](https://github.com/oisee/osg-demo/blob/main/src/zcl_osd_fleet_lift.clas.abap): `src/zcl_osd_fleet_lift.clas.abap`
- [L2 fleet rules](https://github.com/oisee/osg-demo/blob/main/src/l2/zcl_osd_fleet_l2_maint.clas.abap): `src/l2/zcl_osd_fleet_l2_maint.clas.abap`
- [Night orchestration](https://github.com/oisee/osg-demo/blob/main/src/l3/zcl_osd_fleet_night.clas.abap): `src/l3/zcl_osd_fleet_night.clas.abap`
- [Alert governor](https://github.com/oisee/osg-demo/blob/main/src/l3/zcl_osd_fleet_watch.clas.abap): `src/l3/zcl_osd_fleet_watch.clas.abap`

### Runtime extensions

- [Fleet CLI](https://github.com/oisee/osg-demo/blob/main/cli/fleet/zosd_fleet_cli.prog.abap): `cli/fleet/zosd_fleet_cli.prog.abap`
- [CSV import](https://github.com/oisee/osg-demo/blob/main/cli/csv/zosd_fleet_csv.prog.abap): `cli/csv/zosd_fleet_csv.prog.abap`
- [WASM Mandelbrot](https://github.com/oisee/osg-demo/blob/main/src/iti/zcl_wasm_mandel.clas.abap): `src/iti/zcl_wasm_mandel.clas.abap`
- [Mandelbrot renderer](https://github.com/oisee/osg-demo/blob/main/iti/draw.c): `iti/draw.c`
- [Mandelbrot function](https://github.com/oisee/osg-demo/blob/main/iti/mandel.c): `iti/mandel.c`

### Workspace experience

- **VS Code**
- **open-steamgate**

### Other components

- **Developer**
- **HTTP client**

## Connections

- Developer → VS Code: opens pack (evidence: `README.md`)
- VS Code → open-steamgate: starts system (evidence: `README.md`)
- open-steamgate → Hello class: runs class (evidence: `README.md`)
- Fleet report → Fleet data: reports fleet
- OData service → Fleet data: serves data (evidence: `README.md`)
- HTTP client → OData service: requests service (evidence: `README.md`)
- Fiori app → OData service: uses service (evidence: `webapp/Component.js`)
- Fiori app → UI annotations: reads annotations (evidence: `webapp/Component.js`)
- Voyage cube → Fleet data: aggregates voyages (evidence: `README.md`)
- Fuel summary → Fleet data: queries fuel
- Business log → Fleet data: logs runs
- Job chain → Background jobs: chains jobs (evidence: `README.md`)
- Job doctor → Background jobs: checks jobs (evidence: `README.md`)
- Code templates → Fleet report: generates report (evidence: `README.md`)
- Legacy lift → Code templates: renders recipe (evidence: `README.md`)
- L2 fleet rules → Fleet data: checks rules
- Night orchestration → Background jobs: submits piles (evidence: `README.md`)
- Alert governor → Night orchestration: governs runs
- Fleet CLI → CSV import: loads CSV (evidence: `README.md`)
- WASM Mandelbrot → Mandelbrot function: calls function (evidence: `README.md`)
- Mandelbrot renderer → Mandelbrot function: calls function (evidence: `iti/draw.c`)
