# githubprouser67/pshome-multiserver architecture

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

- Interactive diagram: https://gitdiagram.com/githubprouser67/pshome-multiserver
- Repository: https://github.com/githubprouser67/pshome-multiserver

## Overview

PSHome MultiServer is a multi-service emulation stack for restoring PlayStation Home and other legacy game services. A client is configured to reach the hosted services; ApacheNet provides web endpoints, MitmDNS redirects legacy domains, and Horizon reimplements Medius services for lobby and game-session functionality. SSFW and SVO are also identified as required Home services. The README documents ApacheNet plugins, redirects, PHP, and image upscaling, plus archived-asset CDN use. Source excerpts are sparse, so most cross-service wiring is not asserted.

Main entry points: [`Servers/ApacheNet/Program.cs`](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/Program.cs) (ApacheNet), [`Servers/Horizon/Program.cs`](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/Program.cs) (Horizon server), [`Servers/Horizon/MUM/MumManager.cs`](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/MUM/MumManager.cs) (MUM lobby manager), [`Servers/MitmDNS/Program.cs`](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/MitmDNS/Program.cs) (MitmDNS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Network entry"]
  node_mitmdns["MitmDNS<br/>[Program.cs]"]
end

subgraph group_web["Web delivery"]
  node_apache["ApacheNet<br/>[Program.cs]"]
  node_web_routes["Web routes<br/>[Main.cs]"]
  node_webapi["Game Web APIs<br/>[Storage.cs]"]
  node_plugins["C&#35; plugins<br/>[Main.cs]"]
  node_cdn_assets["Archived Home assets"]
end

subgraph group_medius["Medius services"]
  node_horizon["Horizon server<br/>[Program.cs]"]
  node_mum["MUM lobby manager<br/>[MumManager.cs]"]
  node_medius_protocol["Medius protocol"]
  node_pipeline["SCERT transport"]
end

subgraph group_home["Home services"]
  node_ssfw["SSFW service<br/>[Program.cs]"]
  node_ssfw_sessions["SSFW sessions"]
  node_svo["SVO service<br/>[Program.cs]"]
  node_svo_manager["SVO manager<br/>[SVOManager.cs]"]
end

subgraph group_persistence["Service data"]
  node_database[("Horizon database<br/>[DbController.cs]")]
end

node_game_client(("Game clients"))
node_dns_client(("DNS clients"))

node_game_client -->|"requests web"| node_apache
node_apache -.->|"handles routes"| node_web_routes
node_apache -->|"loads plugins"| node_plugins
node_apache -.->|"serves assets"| node_cdn_assets
node_apache -.->|"serves APIs"| node_webapi
node_dns_client -->|"queries DNS"| node_mitmdns
node_mitmdns -->|"redirects domains"| node_game_client
node_game_client -->|"uses Medius"| node_horizon
node_horizon -.->|"manages lobbies"| node_mum
node_horizon -.->|"handles transport"| node_pipeline
node_mum -.->|"handles game requests"| node_medius_protocol
node_mum -.->|"uses account data"| node_database
node_game_client -->|"uses service"| node_ssfw
node_ssfw -.->|"tracks sessions"| node_ssfw_sessions
node_game_client -->|"uses service"| node_svo
node_svo -.->|"dispatches requests"| node_svo_manager

click node_apache "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/Program.cs"
click node_web_routes "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs"
click node_webapi "https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/WebAPIService/GameServices/PSHOME/VEEMEE/accorn/Storage.cs"
click node_plugins "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs"
click node_mitmdns "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/MitmDNS/Program.cs"
click node_horizon "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/Program.cs"
click node_mum "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/MUM/MumManager.cs"
click node_medius_protocol "https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/RT.Models/Lobby/MediusCreateGameRequest.cs"
click node_pipeline "https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/LIBRARY.Pipeline/Tcp/ScertServerHandler.cs"
click node_database "https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/LIBRARY.Database/DbController.cs"
click node_ssfw "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SSFWServer/Program.cs"
click node_ssfw_sessions "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SSFWServer/SSFWUserSessionManager.cs"
click node_svo "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SVO/Program.cs"
click node_svo_manager "https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SVO/SVOManager.cs"

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_mitmdns,node_game_client,node_dns_client toneBlue
class node_apache,node_web_routes,node_webapi,node_plugins,node_cdn_assets toneAmber
class node_horizon,node_mum,node_medius_protocol,node_pipeline toneMint
class node_ssfw,node_ssfw_sessions,node_svo,node_svo_manager toneRose
class node_database toneIndigo
```

## Components

### Network entry

- [MitmDNS](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/MitmDNS/Program.cs): `Servers/MitmDNS/Program.cs`

### Web delivery

- [ApacheNet](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/Program.cs): `Servers/ApacheNet/Program.cs`
- [Web routes](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs): `Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs`
- [Game Web APIs](https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/WebAPIService/GameServices/PSHOME/VEEMEE/accorn/Storage.cs): `AuxiliaryServices/WebAPIService/GameServices/PSHOME/VEEMEE/accorn/Storage.cs`
- [C# plugins](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs): `Servers/ApacheNet/BuildIn/RouteHandlers/Main.cs`
- **Archived Home assets**

### Medius services

- [Horizon server](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/Program.cs): `Servers/Horizon/Program.cs`
- [MUM lobby manager](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/Horizon/MUM/MumManager.cs): `Servers/Horizon/MUM/MumManager.cs`
- [Medius protocol](https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/RT.Models/Lobby/MediusCreateGameRequest.cs): `AuxiliaryServices/HorizonService/RT.Models/Lobby/MediusCreateGameRequest.cs`
- [SCERT transport](https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/LIBRARY.Pipeline/Tcp/ScertServerHandler.cs): `AuxiliaryServices/HorizonService/LIBRARY.Pipeline/Tcp/ScertServerHandler.cs`

### Home services

- [SSFW service](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SSFWServer/Program.cs): `Servers/SSFWServer/Program.cs`
- [SSFW sessions](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SSFWServer/SSFWUserSessionManager.cs): `Servers/SSFWServer/SSFWUserSessionManager.cs`
- [SVO service](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SVO/Program.cs): `Servers/SVO/Program.cs`
- [SVO manager](https://github.com/githubprouser67/pshome-multiserver/blob/main/Servers/SVO/SVOManager.cs): `Servers/SVO/SVOManager.cs`

### Service data

- [Horizon database](https://github.com/githubprouser67/pshome-multiserver/blob/main/AuxiliaryServices/HorizonService/LIBRARY.Database/DbController.cs): `AuxiliaryServices/HorizonService/LIBRARY.Database/DbController.cs`

### Other components

- **Game clients**
- **DNS clients**

## Connections

- Game clients → ApacheNet: requests web
- ApacheNet → Web routes: handles routes
- ApacheNet → C# plugins: loads plugins
- ApacheNet → Archived Home assets: serves assets
- ApacheNet → Game Web APIs: serves APIs
- DNS clients → MitmDNS: queries DNS
- MitmDNS → Game clients: redirects domains
- Game clients → Horizon server: uses Medius
- Horizon server → MUM lobby manager: manages lobbies
- Horizon server → SCERT transport: handles transport
- MUM lobby manager → Medius protocol: handles game requests (evidence: `Servers/Horizon/MUM/MumManager.cs`)
- MUM lobby manager → Horizon database: uses account data
- Game clients → SSFW service: uses service
- SSFW service → SSFW sessions: tracks sessions
- Game clients → SVO service: uses service
- SVO service → SVO manager: dispatches requests
