# bugfrei/suportis-rap architecture

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

- Interactive diagram: https://gitdiagram.com/bugfrei/suportis-rap
- Repository: https://github.com/bugfrei/suportis-rap

## Overview

RAP CLI turns interactive field specifications into a ChatGPT prompt, or turns JSON supplied through the clipboard into ABAP code for inserting table data. The README also advertises metadata annotations, but the available source excerpts do not establish that workflow’s implementation or connections. The graph focuses on the evidenced data-generation paths; source coverage is limited to the provided excerpts and README.

Main entry points: [`bin/commands.js`](https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js) (Command workflows), [`bin/tools.js`](https://github.com/bugfrei/suportis-rap/blob/main/bin/tools.js) (Clipboard utilities), [`bin/rap`](https://github.com/bugfrei/suportis-rap/blob/main/bin/rap) (RAP entry point), [`bin/params.js`](https://github.com/bugfrei/suportis-rap/blob/main/bin/params.js) (Argument handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI commands"]
  node_entry["RAP entry point"]
  node_commands["Command workflows<br/>[commands.js]"]
  node_params["Argument handling<br/>[params.js]"]
end

subgraph group_interaction["User interaction"]
  node_prompts["Interactive prompts<br/>[inout.js]"]
end

subgraph group_generation["Data generation"]
  node_query["ChatGPT query<br/>[commands.js]"]
  node_json["JSON input<br/>[commands.js]"]
  node_abap["ABAP class generation<br/>[commands.js]"]
  node_clipboard["Clipboard utilities<br/>[tools.js]"]
end

node_user(("CLI user"))
node_chatgpt(("ChatGPT"))
node_eclipse(("Eclipse / ABAP"))
node_table[("ABAP table")]

node_user -->|"runs"| node_entry
node_entry -.->|"dispatches"| node_commands
node_commands -->|"checks arguments"| node_params
node_commands -->|"asks questions"| node_prompts
node_commands -->|"builds prompt"| node_query
node_commands -.->|"parses JSON"| node_json
node_commands -->|"generates code"| node_abap
node_query -.->|"copies query"| node_clipboard
node_clipboard -.->|"transfers prompt"| node_chatgpt
node_chatgpt -.->|"provides JSON"| node_clipboard
node_clipboard -.->|"reads JSON"| node_json
node_json -->|"supplies data"| node_abap
node_abap -->|"copies generated code"| node_clipboard
node_clipboard -.->|"transfers code"| node_eclipse
node_eclipse -->|"inserts rows"| node_table

click node_entry "https://github.com/bugfrei/suportis-rap/blob/main/bin/rap"
click node_commands "https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js"
click node_params "https://github.com/bugfrei/suportis-rap/blob/main/bin/params.js"
click node_prompts "https://github.com/bugfrei/suportis-rap/blob/main/bin/inout.js"
click node_query "https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js"
click node_json "https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js"
click node_abap "https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js"
click node_clipboard "https://github.com/bugfrei/suportis-rap/blob/main/bin/tools.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_entry,node_commands,node_params,node_user toneBlue
class node_prompts,node_table toneAmber
class node_query,node_json,node_abap,node_clipboard toneMint
class node_chatgpt,node_eclipse toneIndigo
```

## Components

### CLI commands

- [RAP entry point](https://github.com/bugfrei/suportis-rap/blob/main/bin/rap): `bin/rap`
- [Command workflows](https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js): `bin/commands.js`
- [Argument handling](https://github.com/bugfrei/suportis-rap/blob/main/bin/params.js): `bin/params.js`

### User interaction

- [Interactive prompts](https://github.com/bugfrei/suportis-rap/blob/main/bin/inout.js): `bin/inout.js`

### Data generation

- [ChatGPT query](https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js): `bin/commands.js`
- [JSON input](https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js): `bin/commands.js`
- [ABAP class generation](https://github.com/bugfrei/suportis-rap/blob/main/bin/commands.js): `bin/commands.js`
- [Clipboard utilities](https://github.com/bugfrei/suportis-rap/blob/main/bin/tools.js): `bin/tools.js`

### Other components

- **CLI user**
- **ChatGPT**
- **Eclipse / ABAP**
- **ABAP table**

## Connections

- CLI user → RAP entry point: runs (evidence: `readme.md`)
- RAP entry point → Command workflows: dispatches
- Command workflows → Argument handling: checks arguments (evidence: `bin/commands.js`)
- Command workflows → Interactive prompts: asks questions (evidence: `bin/commands.js`)
- Command workflows → ChatGPT query: builds prompt (evidence: `bin/commands.js`)
- Command workflows → JSON input: parses JSON (evidence: `bin/commands.js`)
- Command workflows → ABAP class generation: generates code (evidence: `bin/commands.js`)
- ChatGPT query → Clipboard utilities: copies query (evidence: `bin/commands.js`)
- Clipboard utilities → ChatGPT: transfers prompt (evidence: `readme.md`)
- ChatGPT → Clipboard utilities: provides JSON (evidence: `readme.md`)
- Clipboard utilities → JSON input: reads JSON (evidence: `bin/commands.js`)
- JSON input → ABAP class generation: supplies data (evidence: `bin/commands.js`)
- ABAP class generation → Clipboard utilities: copies generated code (evidence: `bin/commands.js`)
- Clipboard utilities → Eclipse / ABAP: transfers code (evidence: `readme.md`)
- Eclipse / ABAP → ABAP table: inserts rows (evidence: `readme.md`)
