# hackforces/juniors26-finals architecture

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

- Interactive diagram: https://gitdiagram.com/hackforces/juniors26-finals
- Repository: https://github.com/hackforces/juniors26-finals

## Overview

InnoCTF Junior 2026 is an attack-defense CTF suite of six independently operated services, each paired with a ForcAD/gornilo checker. The primary workflow is a checker connecting to a service over its documented HTTP or TCP/UDP interface to verify availability and store or retrieve flags. Bazaar’s app wiring and persistence, and Northreach’s host-to-simulation wiring, are visible in sampled source; other service internals are represented only at supported paths. The README documents the checker/service pairings, but most checker-to-service call details and several server implementations were not sampled.

Main entry points: [`services/wow/server/src/Wow.Host/Program.cs`](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Host/Program.cs) (Northreach host), [`services/bazaar/src/main.py`](https://github.com/hackforces/juniors26-finals/blob/main/services/bazaar/src/main.py) (Bazaar API), [`services/bazaar/src/routers`](https://github.com/hackforces/juniors26-finals/tree/main/services/bazaar/src/routers) (Bazaar routes), [`services/wow/server/src/Wow.Sim/WorldSim.cs`](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Sim/WorldSim.cs) (World simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web services"]
  node_auto["Autodvor"]
  node_bazaar_app["Bazaar API<br/>[main.py]"]
  node_bazaar_routes["Bazaar routes"]
  node_bazaar_db[("Bazaar database<br/>[db.py]")]
  node_invoice["Invoice service<br/>[index.php]"]
end

subgraph group_protocol["Protocol services"]
  node_vault["Vault server<br/>[vaultd.c]"]
  node_minerfarm["Minerfarm server<br/>[main.go]"]
  node_wow_host["Northreach host<br/>[Program.cs]"]
  node_wow_gate["Gate server<br/>[GateServer.cs]"]
  node_wow_world["World server<br/>[WorldServer.cs]"]
  node_wow_sim["World simulation<br/>[WorldSim.cs]"]
  node_wow_store[("World store<br/>[WorldStore.cs]")]
end

subgraph group_checks["Checkers"]
  node_auto_checker["Autodvor checker<br/>[checker.py]"]
  node_bazaar_checker["Bazaar checker<br/>[checker.py]"]
  node_invoice_checker["Invoice checker<br/>[checker.py]"]
  node_vault_checker["Vault checker<br/>[checker.py]"]
  node_miner_checker["Minerfarm checker<br/>[checker.py]"]
  node_wow_checker["Northreach checker<br/>[checker.py]"]
end

node_operator(("CTF operator"))

node_operator -->|"runs checks"| node_auto_checker
node_auto_checker -->|"checks service"| node_auto
node_operator -->|"runs checks"| node_bazaar_checker
node_bazaar_checker -->|"checks service"| node_bazaar_app
node_bazaar_app -->|"registers routes"| node_bazaar_routes
node_bazaar_app -->|"initializes database"| node_bazaar_db
node_bazaar_routes -->|"reads and writes"| node_bazaar_db
node_operator -->|"runs checks"| node_invoice_checker
node_invoice_checker -->|"checks service"| node_invoice
node_operator -->|"runs checks"| node_vault_checker
node_vault_checker -->|"checks service"| node_vault
node_operator -->|"runs checks"| node_miner_checker
node_miner_checker -->|"checks service"| node_minerfarm
node_operator -->|"runs checks"| node_wow_checker
node_wow_checker -->|"checks service"| node_wow_host
node_wow_host -->|"uses gate"| node_wow_gate
node_wow_host -->|"creates server"| node_wow_world
node_wow_host -->|"configures simulation"| node_wow_sim
node_wow_sim -->|"uses persistence"| node_wow_store

click node_auto "https://github.com/hackforces/juniors26-finals/tree/main/services/auto/src"
click node_auto_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/auto/checker.py"
click node_bazaar_app "https://github.com/hackforces/juniors26-finals/blob/main/services/bazaar/src/main.py"
click node_bazaar_routes "https://github.com/hackforces/juniors26-finals/tree/main/services/bazaar/src/routers"
click node_bazaar_db "https://github.com/hackforces/juniors26-finals/blob/main/services/bazaar/src/db.py"
click node_bazaar_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/bazaar/checker.py"
click node_invoice "https://github.com/hackforces/juniors26-finals/blob/main/services/invoice/src/public/index.php"
click node_invoice_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/invoice/checker.py"
click node_vault "https://github.com/hackforces/juniors26-finals/blob/main/services/vault/src/vaultd.c"
click node_vault_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/vault/checker.py"
click node_minerfarm "https://github.com/hackforces/juniors26-finals/blob/main/services/minerfarm/src/main.go"
click node_miner_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/minerfarm/checker.py"
click node_wow_host "https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Host/Program.cs"
click node_wow_gate "https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Gate/GateServer.cs"
click node_wow_world "https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.World/WorldServer.cs"
click node_wow_sim "https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Sim/WorldSim.cs"
click node_wow_store "https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Sim/WorldStore.cs"
click node_wow_checker "https://github.com/hackforces/juniors26-finals/blob/main/checkers/wow/checker.py"

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_auto,node_bazaar_app,node_bazaar_routes,node_bazaar_db,node_invoice toneBlue
class node_vault,node_minerfarm,node_wow_host,node_wow_gate,node_wow_world,node_wow_sim,node_wow_store toneAmber
class node_auto_checker,node_bazaar_checker,node_invoice_checker,node_vault_checker,node_miner_checker,node_wow_checker toneMint
class node_operator toneIndigo
```

## Components

### Web services

- [Autodvor](https://github.com/hackforces/juniors26-finals/tree/main/services/auto/src): `services/auto/src`
- [Bazaar API](https://github.com/hackforces/juniors26-finals/blob/main/services/bazaar/src/main.py): `services/bazaar/src/main.py`
- [Bazaar routes](https://github.com/hackforces/juniors26-finals/tree/main/services/bazaar/src/routers): `services/bazaar/src/routers`
- [Bazaar database](https://github.com/hackforces/juniors26-finals/blob/main/services/bazaar/src/db.py): `services/bazaar/src/db.py`
- [Invoice service](https://github.com/hackforces/juniors26-finals/blob/main/services/invoice/src/public/index.php): `services/invoice/src/public/index.php`

### Protocol services

- [Vault server](https://github.com/hackforces/juniors26-finals/blob/main/services/vault/src/vaultd.c): `services/vault/src/vaultd.c`
- [Minerfarm server](https://github.com/hackforces/juniors26-finals/blob/main/services/minerfarm/src/main.go): `services/minerfarm/src/main.go`
- [Northreach host](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Host/Program.cs): `services/wow/server/src/Wow.Host/Program.cs`
- [Gate server](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Gate/GateServer.cs): `services/wow/server/src/Wow.Gate/GateServer.cs`
- [World server](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.World/WorldServer.cs): `services/wow/server/src/Wow.World/WorldServer.cs`
- [World simulation](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Sim/WorldSim.cs): `services/wow/server/src/Wow.Sim/WorldSim.cs`
- [World store](https://github.com/hackforces/juniors26-finals/blob/main/services/wow/server/src/Wow.Sim/WorldStore.cs): `services/wow/server/src/Wow.Sim/WorldStore.cs`

### Checkers

- [Autodvor checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/auto/checker.py): `checkers/auto/checker.py`
- [Bazaar checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/bazaar/checker.py): `checkers/bazaar/checker.py`
- [Invoice checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/invoice/checker.py): `checkers/invoice/checker.py`
- [Vault checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/vault/checker.py): `checkers/vault/checker.py`
- [Minerfarm checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/minerfarm/checker.py): `checkers/minerfarm/checker.py`
- [Northreach checker](https://github.com/hackforces/juniors26-finals/blob/main/checkers/wow/checker.py): `checkers/wow/checker.py`

### Other components

- **CTF operator**

## Connections

- CTF operator → Autodvor checker: runs checks (evidence: `README.md`)
- Autodvor checker → Autodvor: checks service (evidence: `README.md`)
- CTF operator → Bazaar checker: runs checks (evidence: `README.md`)
- Bazaar checker → Bazaar API: checks service (evidence: `README.md`)
- Bazaar API → Bazaar routes: registers routes (evidence: `services/bazaar/src/main.py`)
- Bazaar API → Bazaar database: initializes database (evidence: `services/bazaar/src/main.py`)
- Bazaar routes → Bazaar database: reads and writes (evidence: `services/bazaar/src/routers/auth.py`)
- CTF operator → Invoice checker: runs checks (evidence: `README.md`)
- Invoice checker → Invoice service: checks service (evidence: `README.md`)
- CTF operator → Vault checker: runs checks (evidence: `README.md`)
- Vault checker → Vault server: checks service (evidence: `README.md`)
- CTF operator → Minerfarm checker: runs checks (evidence: `README.md`)
- Minerfarm checker → Minerfarm server: checks service (evidence: `README.md`)
- CTF operator → Northreach checker: runs checks (evidence: `README.md`)
- Northreach checker → Northreach host: checks service (evidence: `README.md`)
- Northreach host → Gate server: uses gate (evidence: `services/wow/server/src/Wow.Host/Program.cs`)
- Northreach host → World server: creates server (evidence: `services/wow/server/src/Wow.Host/Program.cs`)
- Northreach host → World simulation: configures simulation (evidence: `services/wow/server/src/Wow.Host/Program.cs`)
- World simulation → World store: uses persistence (evidence: `services/wow/server/src/Wow.Sim/WorldSim.cs`)
