# esportbrande/api-intranet architecture

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

- Interactive diagram: https://gitdiagram.com/esportbrande/api-intranet
- Repository: https://github.com/esportbrande/api-intranet

## Overview

This is an Azure Functions API for the eSport Brande intranet. Its visible function set covers Counter-Strike and Minecraft information, events, command sending, and ping; the repository also contains CS, Minecraft, Discord, and Pterodactyl PowerShell modules. The README documents the intranet/API/Azure Functions relationship and Pterodactyl API-key setup. No source excerpts were provided, so relationships between individual handlers and modules are not asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API functions"]
  node_csinfo["CS info<br/>[run.ps1]"]
  node_cstv["CS TV info<br/>[run.ps1]"]
  node_events["Events<br/>[run.ps1]"]
  node_eventsv2["Events v2<br/>[run.ps1]"]
  node_mcinfo["Minecraft info<br/>[run.ps1]"]
  node_sendcommand["Send command<br/>[run.ps1]"]
  node_ping["Ping<br/>[run.ps1]"]
end

subgraph group_modules["PowerShell modules"]
  node_csmodule["CS module<br/>[CSModule.psm1]"]
  node_discord["Discord module<br/>[Discord.psm1]"]
  node_mcmodule["Minecraft module<br/>[MCModule.psm1]"]
  node_pterodactyl["Pterodactyl module"]
end

node_intranet(("Intranet page"))
node_azure["Azure Functions"]

node_intranet -->|"uses API"| node_azure

click node_csinfo "https://github.com/esportbrande/api-intranet/blob/main/GetCSInfo/run.ps1"
click node_cstv "https://github.com/esportbrande/api-intranet/blob/main/GetCSTVInfo/run.ps1"
click node_events "https://github.com/esportbrande/api-intranet/blob/main/GetEvents/run.ps1"
click node_eventsv2 "https://github.com/esportbrande/api-intranet/blob/main/GetEventsV2/run.ps1"
click node_mcinfo "https://github.com/esportbrande/api-intranet/blob/main/GetMCInfo/run.ps1"
click node_sendcommand "https://github.com/esportbrande/api-intranet/blob/main/SendCommand/run.ps1"
click node_ping "https://github.com/esportbrande/api-intranet/blob/main/ping/run.ps1"
click node_csmodule "https://github.com/esportbrande/api-intranet/blob/main/Modules/CSModule/CSModule.psm1"
click node_discord "https://github.com/esportbrande/api-intranet/blob/main/Modules/Discord/Discord.psm1"
click node_mcmodule "https://github.com/esportbrande/api-intranet/blob/main/Modules/MCModule/MCModule.psm1"
click node_pterodactyl "https://github.com/esportbrande/api-intranet/blob/main/Modules/PterodactylModule/PterodactylModule.psm1"

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_csinfo,node_cstv,node_events,node_eventsv2,node_mcinfo,node_sendcommand,node_ping toneBlue
class node_csmodule,node_discord,node_mcmodule,node_pterodactyl toneAmber
class node_intranet,node_azure toneIndigo
```

## Components

### API functions

- [CS info](https://github.com/esportbrande/api-intranet/blob/main/GetCSInfo/run.ps1): `GetCSInfo/run.ps1`
- [CS TV info](https://github.com/esportbrande/api-intranet/blob/main/GetCSTVInfo/run.ps1): `GetCSTVInfo/run.ps1`
- [Events](https://github.com/esportbrande/api-intranet/blob/main/GetEvents/run.ps1): `GetEvents/run.ps1`
- [Events v2](https://github.com/esportbrande/api-intranet/blob/main/GetEventsV2/run.ps1): `GetEventsV2/run.ps1`
- [Minecraft info](https://github.com/esportbrande/api-intranet/blob/main/GetMCInfo/run.ps1): `GetMCInfo/run.ps1`
- [Send command](https://github.com/esportbrande/api-intranet/blob/main/SendCommand/run.ps1): `SendCommand/run.ps1`
- [Ping](https://github.com/esportbrande/api-intranet/blob/main/ping/run.ps1): `ping/run.ps1`

### PowerShell modules

- [CS module](https://github.com/esportbrande/api-intranet/blob/main/Modules/CSModule/CSModule.psm1): `Modules/CSModule/CSModule.psm1`
- [Discord module](https://github.com/esportbrande/api-intranet/blob/main/Modules/Discord/Discord.psm1): `Modules/Discord/Discord.psm1`
- [Minecraft module](https://github.com/esportbrande/api-intranet/blob/main/Modules/MCModule/MCModule.psm1): `Modules/MCModule/MCModule.psm1`
- [Pterodactyl module](https://github.com/esportbrande/api-intranet/blob/main/Modules/PterodactylModule/PterodactylModule.psm1): `Modules/PterodactylModule/PterodactylModule.psm1`

### Other components

- **Intranet page**
- **Azure Functions**

## Connections

- Intranet page → Azure Functions: uses API (evidence: `README.md`)
