# oisee/open-steamgate architecture

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

## Overview

open-steamgate is a local ABAP application-server runtime, not an ERP: it compiles ABAP and related artifacts, runs them against a local database, and exposes SAP-compatible services and developer interfaces. The graph emphasizes the documented request-to-runtime path and preserves major capabilities such as ADT, SEGW, CDS/AMDP, jobs, daemon support, and editor tooling. Some subsystems are represented by their exact enclosing source directories because their implementation files were not sampled; links based only on README descriptions are cited there.

Main entry points: [`tools/gogen/go/abap`](https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap) (ABAP runtime), [`tools/adt-session.mjs`](https://github.com/oisee/open-steamgate/blob/main/tools/adt-session.mjs) (ADT façade), [`tools/osd-main.mjs`](https://github.com/oisee/open-steamgate/blob/main/tools/osd-main.mjs) (OSD command dispatch), [`web/preview-backend.mjs`](https://github.com/oisee/open-steamgate/blob/main/web/preview-backend.mjs) (Browser ABAP backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["ABAP Runtime"]
  node_local_database[("Local database")]
  node_dialog["Dialog-step scheduler"]
  node_abap_runtime["ABAP runtime"]
  node_jobs_daemons["Jobs and daemons"]
  node_classic_screens["Classic screens"]
end

subgraph group_gateway["Services and Protocols"]
  node_icf["ICF service tree<br/>[osd-icf.mjs]"]
  node_odata_gateway["OData v2 Gateway<br/>[osd-routes.mjs]"]
  node_rfc_server["RFC-to-ADT bridge<br/>[rfc-server.mjs]"]
  node_protocol_host["DIAG and RFC host<br/>[server.mjs]"]
end

subgraph group_compiler["Compilation and Data"]
  node_abap_compiler["ABAP compiler"]
  node_amdp_extract["AMDP extraction<br/>[amdp-extract.mjs]"]
  node_sqlscript["SQLScript compiler"]
  node_sqlscript_lower["SQLScript lowering"]
  node_cds_amdp["CDS and AMDP<br/>[amdp-extract.mjs]"]
end

subgraph group_developer["Developer Interfaces"]
  node_adt["ADT façade<br/>[adt-session.mjs]"]
  node_vscode["VS Code extension<br/>[launcher.js]"]
  node_segw_builder["SEGW Service Builder<br/>[App.controller.js]"]
end

subgraph group_hosting["Hosting and Extensions"]
  node_osd_cli["OSD command line<br/>[osd.mjs]"]
  node_osd_main["OSD command dispatch<br/>[osd-main.mjs]"]
  node_identity["System identity<br/>[osd-identity.mjs]"]
  node_pack_manager["System packs<br/>[osd-packs.mjs]"]
  node_preview_worker["Browser request worker<br/>[preview-worker.mjs]"]
  node_preview_backend["Browser ABAP backend"]
end

node_developer(("ABAP developer"))
node_external_database[("HANA or SQL database")]

node_developer -->|"starts system"| node_osd_cli
node_osd_cli -.->|"dispatches commands"| node_osd_main
node_osd_main -.->|"uses identity"| node_identity
node_osd_main -.->|"manages packs"| node_pack_manager
node_developer -->|"compiles ABAP"| node_abap_compiler
node_amdp_extract -.->|"extracts bodies"| node_sqlscript
node_sqlscript -->|"lowers SQLScript"| node_sqlscript_lower
node_abap_compiler -->|"produces runtime code"| node_abap_runtime
node_abap_runtime -->|"executes SQL"| node_local_database
node_external_database -.->|"runs AMDP"| node_cds_amdp
node_abap_runtime -->|"serves requests"| node_icf
node_icf -->|"routes OData"| node_odata_gateway
node_preview_worker -->|"dispatches requests"| node_preview_backend
node_preview_backend -->|"runs ABAP"| node_abap_runtime
node_preview_backend -->|"schedules steps"| node_dialog
node_developer -->|"edits and activates"| node_adt
node_adt -.->|"activates ABAP"| node_abap_runtime
node_protocol_host -->|"starts bridge"| node_rfc_server
node_rfc_server -->|"forwards ADT calls"| node_adt
node_developer -->|"uses editor"| node_vscode
node_vscode -->|"connects to server"| node_adt
node_developer -->|"edits services"| node_segw_builder
node_segw_builder -.->|"builds Gateway services"| node_odata_gateway
node_abap_runtime -.->|"runs scheduled work"| node_jobs_daemons
node_abap_runtime -.->|"serves screens"| node_classic_screens

click node_osd_cli "https://github.com/oisee/open-steamgate/blob/main/bin/osd.mjs"
click node_osd_main "https://github.com/oisee/open-steamgate/blob/main/tools/osd-main.mjs"
click node_identity "https://github.com/oisee/open-steamgate/blob/main/tools/osd-identity.mjs"
click node_pack_manager "https://github.com/oisee/open-steamgate/blob/main/tools/osd-packs.mjs"
click node_abap_compiler "https://github.com/oisee/open-steamgate/tree/main/tools/gogen"
click node_amdp_extract "https://github.com/oisee/open-steamgate/blob/main/tools/amdp-extract.mjs"
click node_sqlscript "https://github.com/oisee/open-steamgate/tree/main/tools/sqlscript"
click node_sqlscript_lower "https://github.com/oisee/open-steamgate/blob/main/tools/sqlscript-lower.mjs"
click node_local_database "https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap"
click node_dialog "https://github.com/oisee/open-steamgate/blob/main/tools/osd-dialog-step.mjs"
click node_abap_runtime "https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap"
click node_icf "https://github.com/oisee/open-steamgate/blob/main/tools/osd-icf.mjs"
click node_odata_gateway "https://github.com/oisee/open-steamgate/blob/main/tools/osd-routes.mjs"
click node_preview_worker "https://github.com/oisee/open-steamgate/blob/main/web/preview-worker.mjs"
click node_preview_backend "https://github.com/oisee/open-steamgate/blob/main/web/preview-backend.mjs"
click node_adt "https://github.com/oisee/open-steamgate/blob/main/tools/adt-session.mjs"
click node_rfc_server "https://github.com/oisee/open-steamgate/blob/main/tools/protocols/rfc-server.mjs"
click node_protocol_host "https://github.com/oisee/open-steamgate/blob/main/tools/protocols/server.mjs"
click node_vscode "https://github.com/oisee/open-steamgate/blob/main/editors/vscode/launcher.js"
click node_segw_builder "https://github.com/oisee/open-steamgate/blob/main/webapp/segw/controller/App.controller.js"
click node_cds_amdp "https://github.com/oisee/open-steamgate/blob/main/tools/amdp-extract.mjs"
click node_jobs_daemons "https://github.com/oisee/open-steamgate/blob/main/tools/osd-dialog-step.mjs"
click node_classic_screens "https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap"

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_local_database,node_dialog,node_abap_runtime,node_jobs_daemons,node_classic_screens toneBlue
class node_icf,node_odata_gateway,node_rfc_server,node_protocol_host,node_external_database toneAmber
class node_abap_compiler,node_amdp_extract,node_sqlscript,node_sqlscript_lower,node_cds_amdp toneMint
class node_adt,node_vscode,node_segw_builder toneRose
class node_osd_cli,node_osd_main,node_identity,node_pack_manager,node_preview_worker,node_preview_backend,node_developer toneIndigo
```

## Components

### ABAP Runtime

- [Local database](https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap): `tools/gogen/go/abap`
- [Dialog-step scheduler](https://github.com/oisee/open-steamgate/blob/main/tools/osd-dialog-step.mjs): `tools/osd-dialog-step.mjs`
- [ABAP runtime](https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap): `tools/gogen/go/abap`
- [Jobs and daemons](https://github.com/oisee/open-steamgate/blob/main/tools/osd-dialog-step.mjs): `tools/osd-dialog-step.mjs`
- [Classic screens](https://github.com/oisee/open-steamgate/tree/main/tools/gogen/go/abap): `tools/gogen/go/abap`

### Services and Protocols

- [ICF service tree](https://github.com/oisee/open-steamgate/blob/main/tools/osd-icf.mjs): `tools/osd-icf.mjs`
- [OData v2 Gateway](https://github.com/oisee/open-steamgate/blob/main/tools/osd-routes.mjs): `tools/osd-routes.mjs`
- [RFC-to-ADT bridge](https://github.com/oisee/open-steamgate/blob/main/tools/protocols/rfc-server.mjs): `tools/protocols/rfc-server.mjs`
- [DIAG and RFC host](https://github.com/oisee/open-steamgate/blob/main/tools/protocols/server.mjs): `tools/protocols/server.mjs`

### Compilation and Data

- [ABAP compiler](https://github.com/oisee/open-steamgate/tree/main/tools/gogen): `tools/gogen`
- [AMDP extraction](https://github.com/oisee/open-steamgate/blob/main/tools/amdp-extract.mjs): `tools/amdp-extract.mjs`
- [SQLScript compiler](https://github.com/oisee/open-steamgate/tree/main/tools/sqlscript): `tools/sqlscript`
- [SQLScript lowering](https://github.com/oisee/open-steamgate/blob/main/tools/sqlscript-lower.mjs): `tools/sqlscript-lower.mjs`
- [CDS and AMDP](https://github.com/oisee/open-steamgate/blob/main/tools/amdp-extract.mjs): `tools/amdp-extract.mjs`

### Developer Interfaces

- [ADT façade](https://github.com/oisee/open-steamgate/blob/main/tools/adt-session.mjs): `tools/adt-session.mjs`
- [VS Code extension](https://github.com/oisee/open-steamgate/blob/main/editors/vscode/launcher.js): `editors/vscode/launcher.js`
- [SEGW Service Builder](https://github.com/oisee/open-steamgate/blob/main/webapp/segw/controller/App.controller.js): `webapp/segw/controller/App.controller.js`

### Hosting and Extensions

- [OSD command line](https://github.com/oisee/open-steamgate/blob/main/bin/osd.mjs): `bin/osd.mjs`
- [OSD command dispatch](https://github.com/oisee/open-steamgate/blob/main/tools/osd-main.mjs): `tools/osd-main.mjs`
- [System identity](https://github.com/oisee/open-steamgate/blob/main/tools/osd-identity.mjs): `tools/osd-identity.mjs`
- [System packs](https://github.com/oisee/open-steamgate/blob/main/tools/osd-packs.mjs): `tools/osd-packs.mjs`
- [Browser request worker](https://github.com/oisee/open-steamgate/blob/main/web/preview-worker.mjs): `web/preview-worker.mjs`
- [Browser ABAP backend](https://github.com/oisee/open-steamgate/blob/main/web/preview-backend.mjs): `web/preview-backend.mjs`

### Other components

- **ABAP developer**
- **HANA or SQL database**

## Connections

- ABAP developer → OSD command line: starts system (evidence: `README.md`)
- OSD command line → OSD command dispatch: dispatches commands
- OSD command dispatch → System identity: uses identity
- OSD command dispatch → System packs: manages packs
- ABAP developer → ABAP compiler: compiles ABAP (evidence: `README.md`)
- AMDP extraction → SQLScript compiler: extracts bodies (evidence: `tools/sqlscript/coverage.mjs`)
- SQLScript compiler → SQLScript lowering: lowers SQLScript (evidence: `tools/sqlscript/coverage.mjs`)
- ABAP compiler → ABAP runtime: produces runtime code (evidence: `README.md`)
- ABAP runtime → Local database: executes SQL (evidence: `README.md`)
- HANA or SQL database → CDS and AMDP: runs AMDP (evidence: `README.md`)
- ABAP runtime → ICF service tree: serves requests (evidence: `README.md`)
- ICF service tree → OData v2 Gateway: routes OData (evidence: `README.md`)
- Browser request worker → Browser ABAP backend: dispatches requests (evidence: `web/preview-worker.mjs`)
- Browser ABAP backend → ABAP runtime: runs ABAP (evidence: `web/preview-backend.mjs`)
- Browser ABAP backend → Dialog-step scheduler: schedules steps (evidence: `web/preview-backend.mjs`)
- ABAP developer → ADT façade: edits and activates (evidence: `README.md`)
- ADT façade → ABAP runtime: activates ABAP
- DIAG and RFC host → RFC-to-ADT bridge: starts bridge (evidence: `tools/protocols/server.mjs`)
- RFC-to-ADT bridge → ADT façade: forwards ADT calls (evidence: `README.md`)
- ABAP developer → VS Code extension: uses editor (evidence: `README.md`)
- VS Code extension → ADT façade: connects to server
- ABAP developer → SEGW Service Builder: edits services (evidence: `README.md`)
- SEGW Service Builder → OData v2 Gateway: builds Gateway services (evidence: `README.md`)
- ABAP runtime → Jobs and daemons: runs scheduled work (evidence: `README.md`)
- ABAP runtime → Classic screens: serves screens (evidence: `README.md`)
