# alomnsh/aerobot architecture

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

- Interactive diagram: https://gitdiagram.com/alomnsh/aerobot
- Repository: https://github.com/alomnsh/aerobot

## Overview

AeroBot is a Slack slash-command bot. Slack users invoke commands through Bolt; each handler acknowledges the command and responds with a health check, help text, or a calculation. The ISS handler additionally fetches live satellite data from an external API. All runtime behavior is implemented in index.js, so the graph separates command stages for clarity while pointing to that shared source file. The README documents the command capabilities; no separate storage or domain modules appear in the tree.

Main entry points: [`index.js`](https://github.com/alomnsh/aerobot/blob/main/index.js) (Bolt app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_slack["Slack commands"]
  node_bolt["Bolt app<br/>[index.js]"]
end

subgraph group_features["Bot capabilities"]
  node_ping["Ping handler<br/>[index.js]"]
  node_help["Help handler<br/>[index.js]"]
  node_iss["ISS handler<br/>[index.js]"]
  node_resistor["Resistor calculator<br/>[index.js]"]
  node_weight["Planetary weights<br/>[index.js]"]
end

subgraph group_external["External services"]
  node_slackservice(("Slack platform"))
  node_issapi["ISS data API"]
end

node_user(("Slack user"))

node_user -->|"invokes command"| node_slackservice
node_slackservice -->|"dispatches commands"| node_bolt
node_bolt -->|"routes ping"| node_ping
node_bolt -->|"routes help"| node_help
node_bolt -->|"routes ISS"| node_iss
node_bolt -->|"routes resistor"| node_resistor
node_bolt -->|"routes weight"| node_weight
node_iss -->|"fetches live data"| node_issapi
node_ping -->|"responds to"| node_slackservice
node_help -->|"responds to"| node_slackservice
node_iss -->|"reports result"| node_slackservice
node_resistor -->|"reports result"| node_slackservice
node_weight -->|"reports result"| node_slackservice

click node_bolt "https://github.com/alomnsh/aerobot/blob/main/index.js"
click node_ping "https://github.com/alomnsh/aerobot/blob/main/index.js"
click node_help "https://github.com/alomnsh/aerobot/blob/main/index.js"
click node_iss "https://github.com/alomnsh/aerobot/blob/main/index.js"
click node_resistor "https://github.com/alomnsh/aerobot/blob/main/index.js"
click node_weight "https://github.com/alomnsh/aerobot/blob/main/index.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_bolt,node_user toneBlue
class node_ping,node_help,node_iss,node_resistor,node_weight toneAmber
class node_slackservice,node_issapi toneMint
```

## Components

### Slack commands

- [Bolt app](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`

### Bot capabilities

- [Ping handler](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`
- [Help handler](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`
- [ISS handler](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`
- [Resistor calculator](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`
- [Planetary weights](https://github.com/alomnsh/aerobot/blob/main/index.js): `index.js`

### External services

- **Slack platform**
- **ISS data API**

### Other components

- **Slack user**

## Connections

- Slack user → Slack platform: invokes command (evidence: `README.md`)
- Slack platform → Bolt app: dispatches commands (evidence: `index.js`)
- Bolt app → Ping handler: routes ping (evidence: `index.js`)
- Bolt app → Help handler: routes help (evidence: `index.js`)
- Bolt app → ISS handler: routes ISS (evidence: `index.js`)
- Bolt app → Resistor calculator: routes resistor (evidence: `index.js`)
- Bolt app → Planetary weights: routes weight (evidence: `index.js`)
- ISS handler → ISS data API: fetches live data (evidence: `index.js`)
- Ping handler → Slack platform: responds to (evidence: `index.js`)
- Help handler → Slack platform: responds to (evidence: `index.js`)
- ISS handler → Slack platform: reports result (evidence: `index.js`)
- Resistor calculator → Slack platform: reports result (evidence: `index.js`)
- Planetary weights → Slack platform: reports result (evidence: `index.js`)
