# swofty-developments/hypixelrecreation architecture

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

- Interactive diagram: https://gitdiagram.com/swofty-developments/hypixelrecreation
- Repository: https://github.com/swofty-developments/hypixelrecreation

## Overview

Hypixel is a Minestom-based Minecraft network recreation organized around a proxy, shared services, and multiple game/server types. Players enter through a game server to play modes such as SkyWars, BedWars, and SkyBlock; supporting services provide APIs, social and economy features, replay, and orchestration. The repository also includes a client capture/export mod and a standalone anticheat runtime. The README documents the overall microservices architecture; links between unsampled subsystems are omitted unless supported by the excerpts or source index.

Main entry points: [`service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java`](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java) (Shared service runtime), [`service.replay/src/main/java/net/swofty/service/replay/ReplayService.java`](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.replay/src/main/java/net/swofty/service/replay/ReplayService.java) (Replay service), [`commons/src/main/java/net/swofty/commons/redis`](https://github.com/swofty-developments/hypixelrecreation/tree/master/commons/src/main/java/net/swofty/commons/redis) (Redis messaging), [`service.api/src/main/java/net/swofty/service/api/APIService.java`](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.api/src/main/java/net/swofty/service/api/APIService.java) (HTTP API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Network platform"]
  node_proxy["Proxy service<br/>[ProxyService.java]"]
  node_shared["Shared service runtime"]
  node_redis[("Redis messaging")]
  node_config["Shared configuration"]
  node_anticheat["Movement anticheat"]
  node_anticheatpos["Position math<br/>[Pos.java]"]
end

subgraph group_services["Backend services"]
  node_orchestrator["Service orchestration<br/>[orchestrator]"]
  node_api["HTTP API<br/>[APIService.java]"]
  node_commerce["Auction and bazaar<br/>[bazaar]"]
  node_social["Friends and parties<br/>[friend]"]
  node_store["Store fulfillment"]
  node_replay["Replay service<br/>[ReplayService.java]"]
end

subgraph group_games["Game servers"]
  node_server["Game server types<br/>[game]"]
  node_skywars["SkyWars match<br/>[SkywarsGame.java]"]
  node_bedwars["BedWars game and lobby<br/>[bedwarsgame]"]
  node_hub["Hub and lobby<br/>[hub]"]
end

subgraph group_skyblock["SkyBlock gameplay"]
  node_skyblock["SkyBlock server"]
  node_foraging["Foraging gameplay"]
  node_leaderboards[("Leaderboards")]
end

subgraph group_tools["Player tools"]
  node_clientmod["Capture client mod"]
  node_replayviewer["Replay viewer<br/>[replayviewer]"]
end

node_player(("Minecraft player"))
node_redisservice[("Redis and MongoDB")]
node_minestom["Minestom runtime"]
node_proxyclient["Proxy network"]

node_player -.->|"connects"| node_proxy
node_proxy -.->|"routes players"| node_server
node_server -.->|"hosts gameplay"| node_player
node_shared -->|"registers handlers"| node_redis
node_orchestrator -->|"initializes service"| node_shared
node_orchestrator -->|"uses messaging"| node_redis
node_api -->|"initializes service"| node_shared
node_api -->|"uses messaging"| node_redis
node_api -.->|"serves HTTP"| node_player
node_commerce -->|"initializes service"| node_shared
node_store -->|"requests proxy fulfillment"| node_redisservice
node_store -->|"sends purchase request"| node_proxyclient
node_store -->|"claims and updates purchases"| node_redisservice
node_replay -->|"initializes service"| node_shared
node_replay -->|"registers handlers"| node_redis
node_replay -->|"connects database"| node_redisservice
node_skywars -->|"spawns and controls entities"| node_minestom
node_hub -->|"runs NPC interaction"| node_minestom
node_foraging -->|"changes world blocks"| node_minestom
node_leaderboards -->|"reads and writes scores"| node_redisservice
node_anticheat -.->|"integrates with server"| node_minestom
node_anticheat -.->|"uses position math"| node_anticheatpos
node_clientmod -.->|"captures client state"| node_player
node_replayviewer -.->|"views replay data"| node_replay

click node_proxy "https://github.com/swofty-developments/hypixelrecreation/blob/master/proxy.api/src/main/java/net/swofty/proxyapi/ProxyService.java"
click node_shared "https://github.com/swofty-developments/hypixelrecreation/blob/master/service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java"
click node_redis "https://github.com/swofty-developments/hypixelrecreation/tree/master/commons/src/main/java/net/swofty/commons/redis"
click node_config "https://github.com/swofty-developments/hypixelrecreation/blob/master/commons/src/main/java/net/swofty/commons/config/ConfigProvider.java"
click node_orchestrator "https://github.com/swofty-developments/hypixelrecreation/tree/master/service.orchestrator/src/main/java/net/swofty/service/orchestrator"
click node_api "https://github.com/swofty-developments/hypixelrecreation/blob/master/service.api/src/main/java/net/swofty/service/api/APIService.java"
click node_commerce "https://github.com/swofty-developments/hypixelrecreation/tree/master/service.bazaar/src/main/java/net/swofty/service/bazaar"
click node_social "https://github.com/swofty-developments/hypixelrecreation/tree/master/service.friend/src/main/java/net/swofty/service/friend"
click node_store "https://github.com/swofty-developments/hypixelrecreation/blob/master/service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java"
click node_replay "https://github.com/swofty-developments/hypixelrecreation/blob/master/service.replay/src/main/java/net/swofty/service/replay/ReplayService.java"
click node_server "https://github.com/swofty-developments/hypixelrecreation/tree/master/type.game/src/main/java/net/swofty/type/game"
click node_skywars "https://github.com/swofty-developments/hypixelrecreation/blob/master/type.skywarsgame/src/main/java/net/swofty/type/skywarsgame/game/SkywarsGame.java"
click node_bedwars "https://github.com/swofty-developments/hypixelrecreation/tree/master/type.bedwarsgame/src/main/java/net/swofty/type/bedwarsgame"
click node_hub "https://github.com/swofty-developments/hypixelrecreation/tree/master/type.hub/src/main/java/net/swofty/type/hub"
click node_skyblock "https://github.com/swofty-developments/hypixelrecreation/blob/master/service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java"
click node_foraging "https://github.com/swofty-developments/hypixelrecreation/blob/master/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/foraging/ForagingTreeManager.java"
click node_leaderboards "https://github.com/swofty-developments/hypixelrecreation/blob/master/type.generic/src/main/java/net/swofty/type/generic/leaderboard/LeaderboardService.java"
click node_anticheat "https://github.com/swofty-developments/hypixelrecreation/tree/master/anticheat/src/main/java/net/swofty/anticheat"
click node_anticheatpos "https://github.com/swofty-developments/hypixelrecreation/blob/master/anticheat/src/main/java/net/swofty/anticheat/math/Pos.java"
click node_clientmod "https://github.com/swofty-developments/hypixelrecreation/tree/master/clientmod/src/main/java/gg/itzkatze/thehypixelrecreationmod"
click node_replayviewer "https://github.com/swofty-developments/hypixelrecreation/tree/master/type.replayviewer/src/main/java/net/swofty/type/replayviewer"

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_proxy,node_shared,node_redis,node_config,node_anticheat,node_anticheatpos toneBlue
class node_orchestrator,node_api,node_commerce,node_social,node_store,node_replay,node_redisservice toneAmber
class node_server,node_skywars,node_bedwars,node_hub toneMint
class node_skyblock,node_foraging,node_leaderboards toneRose
class node_clientmod,node_replayviewer,node_player,node_minestom,node_proxyclient toneIndigo
```

## Components

### Network platform

- [Proxy service](https://github.com/swofty-developments/hypixelrecreation/blob/master/proxy.api/src/main/java/net/swofty/proxyapi/ProxyService.java): `proxy.api/src/main/java/net/swofty/proxyapi/ProxyService.java`
- [Shared service runtime](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java): `service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java`
- [Redis messaging](https://github.com/swofty-developments/hypixelrecreation/tree/master/commons/src/main/java/net/swofty/commons/redis): `commons/src/main/java/net/swofty/commons/redis`
- [Shared configuration](https://github.com/swofty-developments/hypixelrecreation/blob/master/commons/src/main/java/net/swofty/commons/config/ConfigProvider.java): `commons/src/main/java/net/swofty/commons/config/ConfigProvider.java`
- [Movement anticheat](https://github.com/swofty-developments/hypixelrecreation/tree/master/anticheat/src/main/java/net/swofty/anticheat): `anticheat/src/main/java/net/swofty/anticheat`
- [Position math](https://github.com/swofty-developments/hypixelrecreation/blob/master/anticheat/src/main/java/net/swofty/anticheat/math/Pos.java): `anticheat/src/main/java/net/swofty/anticheat/math/Pos.java`

### Backend services

- [Service orchestration](https://github.com/swofty-developments/hypixelrecreation/tree/master/service.orchestrator/src/main/java/net/swofty/service/orchestrator): `service.orchestrator/src/main/java/net/swofty/service/orchestrator`
- [HTTP API](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.api/src/main/java/net/swofty/service/api/APIService.java): `service.api/src/main/java/net/swofty/service/api/APIService.java`
- [Auction and bazaar](https://github.com/swofty-developments/hypixelrecreation/tree/master/service.bazaar/src/main/java/net/swofty/service/bazaar): `service.bazaar/src/main/java/net/swofty/service/bazaar`
- [Friends and parties](https://github.com/swofty-developments/hypixelrecreation/tree/master/service.friend/src/main/java/net/swofty/service/friend): `service.friend/src/main/java/net/swofty/service/friend`
- [Store fulfillment](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java): `service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java`
- [Replay service](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.replay/src/main/java/net/swofty/service/replay/ReplayService.java): `service.replay/src/main/java/net/swofty/service/replay/ReplayService.java`

### Game servers

- [Game server types](https://github.com/swofty-developments/hypixelrecreation/tree/master/type.game/src/main/java/net/swofty/type/game): `type.game/src/main/java/net/swofty/type/game`
- [SkyWars match](https://github.com/swofty-developments/hypixelrecreation/blob/master/type.skywarsgame/src/main/java/net/swofty/type/skywarsgame/game/SkywarsGame.java): `type.skywarsgame/src/main/java/net/swofty/type/skywarsgame/game/SkywarsGame.java`
- [BedWars game and lobby](https://github.com/swofty-developments/hypixelrecreation/tree/master/type.bedwarsgame/src/main/java/net/swofty/type/bedwarsgame): `type.bedwarsgame/src/main/java/net/swofty/type/bedwarsgame`
- [Hub and lobby](https://github.com/swofty-developments/hypixelrecreation/tree/master/type.hub/src/main/java/net/swofty/type/hub): `type.hub/src/main/java/net/swofty/type/hub`

### SkyBlock gameplay

- [SkyBlock server](https://github.com/swofty-developments/hypixelrecreation/blob/master/service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java): `service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java`
- [Foraging gameplay](https://github.com/swofty-developments/hypixelrecreation/blob/master/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/foraging/ForagingTreeManager.java): `type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/foraging/ForagingTreeManager.java`
- [Leaderboards](https://github.com/swofty-developments/hypixelrecreation/blob/master/type.generic/src/main/java/net/swofty/type/generic/leaderboard/LeaderboardService.java): `type.generic/src/main/java/net/swofty/type/generic/leaderboard/LeaderboardService.java`

### Player tools

- [Capture client mod](https://github.com/swofty-developments/hypixelrecreation/tree/master/clientmod/src/main/java/gg/itzkatze/thehypixelrecreationmod): `clientmod/src/main/java/gg/itzkatze/thehypixelrecreationmod`
- [Replay viewer](https://github.com/swofty-developments/hypixelrecreation/tree/master/type.replayviewer/src/main/java/net/swofty/type/replayviewer): `type.replayviewer/src/main/java/net/swofty/type/replayviewer`

### Other components

- **Minecraft player**
- **Redis and MongoDB**
- **Minestom runtime**
- **Proxy network**

## Connections

- Minecraft player → Proxy service: connects (evidence: `README.md`)
- Proxy service → Game server types: routes players (evidence: `README.md`)
- Game server types → Minecraft player: hosts gameplay (evidence: `README.md`)
- Shared service runtime → Redis messaging: registers handlers (evidence: `service.generic/src/main/java/net/swofty/service/generic/SkyBlockService.java`)
- Service orchestration → Shared service runtime: initializes service (evidence: `service.orchestrator/src/main/java/net/swofty/service/orchestrator/OrchestratorService.java`)
- Service orchestration → Redis messaging: uses messaging (evidence: `service.orchestrator/src/main/java/net/swofty/service/orchestrator/OrchestratorService.java`)
- HTTP API → Shared service runtime: initializes service (evidence: `service.api/src/main/java/net/swofty/service/api/APIService.java`)
- HTTP API → Redis messaging: uses messaging (evidence: `service.api/src/main/java/net/swofty/service/api/APIService.java`)
- HTTP API → Minecraft player: serves HTTP (evidence: `README.md`)
- Auction and bazaar → Shared service runtime: initializes service (evidence: `service.bazaar/src/main/java/net/swofty/service/bazaar/BazaarService.java`)
- Store fulfillment → Redis and MongoDB: requests proxy fulfillment (evidence: `service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java`)
- Store fulfillment → Proxy network: sends purchase request (evidence: `service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java`)
- Store fulfillment → Redis and MongoDB: claims and updates purchases (evidence: `service.store/src/main/java/net/swofty/service/store/PurchaseFulfillmentWorker.java`)
- Replay service → Shared service runtime: initializes service (evidence: `service.replay/src/main/java/net/swofty/service/replay/ReplayService.java`)
- Replay service → Redis messaging: registers handlers (evidence: `service.replay/src/main/java/net/swofty/service/replay/ReplayService.java`)
- Replay service → Redis and MongoDB: connects database (evidence: `service.replay/src/main/java/net/swofty/service/replay/ReplayService.java`)
- SkyWars match → Minestom runtime: spawns and controls entities
- Hub and lobby → Minestom runtime: runs NPC interaction (evidence: `type.hub/src/main/java/net/swofty/type/hub/npcs/NPCMadRedstoneEngineer.java`)
- Foraging gameplay → Minestom runtime: changes world blocks (evidence: `type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/foraging/ForagingTreeManager.java`)
- Leaderboards → Redis and MongoDB: reads and writes scores (evidence: `type.generic/src/main/java/net/swofty/type/generic/leaderboard/LeaderboardService.java`)
- Movement anticheat → Minestom runtime: integrates with server (evidence: `README.md`)
- Movement anticheat → Position math: uses position math
- Capture client mod → Minecraft player: captures client state (evidence: `README.md`)
- Replay viewer → Replay service: views replay data (evidence: `README.md`)
