# fengheng1111/fantnel architecture

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

- Interactive diagram: https://gitdiagram.com/fengheng1111/fantnel
- Repository: https://github.com/fengheng1111/fantnel

## Overview

Fantnel is a cross-platform Minecraft launcher and proxy-mode client, with a web UI served through an ASP.NET Core API. Users manage accounts, servers, skins, rentals, plugins, and launch settings in the UI; the API exposes these operations while shared services handle account state, game launch, proxy interception, plugins, and chat. The README also documents caching, plugin updates, and cross-version chat. Several subsystem links are documented capabilities rather than inspected call sites, so those edges are dashed; unsampled implementation details are not asserted.

Main entry points: [`web/src/views/game`](https://github.com/fengheng1111/fantnel/tree/master/web/src/views/game) (Game views), [`web/src/App.vue`](https://github.com/fengheng1111/fantnel/blob/master/web/src/App.vue) (Web application), [`Fantnel/Servlet/GameController/GameAccountController.cs`](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameAccountController.cs) (Account API), [`Fantnel/Servlet/GameController/GameLaunchController.cs`](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameLaunchController.cs) (Launch API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_webapp["Web application<br/>[App.vue]"]
  node_webtools["UI tools<br/>[Tools.js]"]
  node_gameviews["Game views"]
  node_pluginviews["Plugin views"]
end

subgraph group_api["Web API"]
  node_accountapi["Account API"]
  node_launchapi["Launch API"]
  node_proxyapi["Proxy API"]
  node_rentalapi["Rental API"]
  node_serverapi["Server API"]
  node_skinapi["Skin API"]
  node_pluginapi["Plugin API"]
end

subgraph group_account["Accounts and services"]
  node_accountmsg["Account operations<br/>[AccountMessage.cs]"]
  node_accountstate["Account state<br/>[InfoManager.cs]"]
  node_nirvanaaccount["Nirvana login"]
  node_cache[("Content cache<br/>[CacheManager.cs]")]
end

subgraph group_game["Game runtime"]
  node_launcher["Game launcher<br/>[CommandService.cs]"]
  node_bedrock["Bedrock launcher<br/>[LauncherService.cs]"]
end

subgraph group_proxy["Proxy extensions"]
  node_pluginmgr["Plugin manager<br/>[PluginManager.cs]"]
  node_packets["Packet dispatch<br/>[PacketManager.cs]"]
  node_chat["Chat manager<br/>[ChatManager.cs]"]
end

node_user(("User"))

node_user -->|"uses"| node_webapp
node_webapp -->|"uses"| node_webtools
node_webapp -.->|"presents"| node_gameviews
node_webapp -.->|"presents"| node_pluginviews
node_gameviews -.->|"requests"| node_accountapi
node_gameviews -.->|"requests"| node_launchapi
node_gameviews -.->|"requests"| node_proxyapi
node_gameviews -.->|"requests"| node_rentalapi
node_gameviews -.->|"requests"| node_serverapi
node_gameviews -.->|"requests"| node_skinapi
node_pluginviews -.->|"requests"| node_pluginapi
node_accountapi -->|"delegates"| node_accountmsg
node_accountmsg -.->|"updates"| node_accountstate
node_accountapi -.->|"authenticates"| node_nirvanaaccount
node_launchapi -.->|"launches"| node_launcher
node_launchapi -.->|"launches"| node_bedrock
node_pluginapi -->|"queries"| node_pluginmgr
node_pluginmgr -->|"registers"| node_packets
node_proxyapi -.->|"enables"| node_chat
node_serverapi -.->|"reads"| node_cache
node_rentalapi -.->|"reads"| node_cache
node_skinapi -.->|"reads"| node_cache

click node_webapp "https://github.com/fengheng1111/fantnel/blob/master/web/src/App.vue"
click node_webtools "https://github.com/fengheng1111/fantnel/blob/master/web/src/utils/Tools.js"
click node_gameviews "https://github.com/fengheng1111/fantnel/tree/master/web/src/views/game"
click node_pluginviews "https://github.com/fengheng1111/fantnel/tree/master/web/src/views/plugin"
click node_accountapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameAccountController.cs"
click node_launchapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameLaunchController.cs"
click node_proxyapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameProxiesController.cs"
click node_rentalapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameRentalController.cs"
click node_serverapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameServerController.cs"
click node_skinapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameSkinController.cs"
click node_pluginapi "https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/PluginsController/PluginsListController.cs"
click node_accountmsg "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Message/AccountMessage.cs"
click node_accountstate "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Common/Manager/InfoManager.cs"
click node_nirvanaaccount "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Manager/NirvanaAccountManager.cs"
click node_cache "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Manager/CacheManager.cs"
click node_launcher "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Game.Launcher/Services/Java/CommandService.cs"
click node_bedrock "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs"
click node_pluginmgr "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Development/Manager/PluginManager.cs"
click node_packets "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Development/Manager/PacketManager.cs"
click node_chat "https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Chat/Manager/ChatManager.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_webapp,node_webtools,node_gameviews,node_pluginviews,node_user toneBlue
class node_accountapi,node_launchapi,node_proxyapi,node_rentalapi,node_serverapi,node_skinapi,node_pluginapi toneAmber
class node_accountmsg,node_accountstate,node_nirvanaaccount,node_cache toneMint
class node_launcher,node_bedrock toneRose
class node_pluginmgr,node_packets,node_chat toneIndigo
```

## Components

### User interface

- [Web application](https://github.com/fengheng1111/fantnel/blob/master/web/src/App.vue): `web/src/App.vue`
- [UI tools](https://github.com/fengheng1111/fantnel/blob/master/web/src/utils/Tools.js): `web/src/utils/Tools.js`
- [Game views](https://github.com/fengheng1111/fantnel/tree/master/web/src/views/game): `web/src/views/game`
- [Plugin views](https://github.com/fengheng1111/fantnel/tree/master/web/src/views/plugin): `web/src/views/plugin`

### Web API

- [Account API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameAccountController.cs): `Fantnel/Servlet/GameController/GameAccountController.cs`
- [Launch API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameLaunchController.cs): `Fantnel/Servlet/GameController/GameLaunchController.cs`
- [Proxy API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameProxiesController.cs): `Fantnel/Servlet/GameController/GameProxiesController.cs`
- [Rental API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameRentalController.cs): `Fantnel/Servlet/GameController/GameRentalController.cs`
- [Server API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameServerController.cs): `Fantnel/Servlet/GameController/GameServerController.cs`
- [Skin API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/GameController/GameSkinController.cs): `Fantnel/Servlet/GameController/GameSkinController.cs`
- [Plugin API](https://github.com/fengheng1111/fantnel/blob/master/Fantnel/Servlet/PluginsController/PluginsListController.cs): `Fantnel/Servlet/PluginsController/PluginsListController.cs`

### Accounts and services

- [Account operations](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Message/AccountMessage.cs): `Nirvana.Public/Message/AccountMessage.cs`
- [Account state](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Common/Manager/InfoManager.cs): `Nirvana.Common/Manager/InfoManager.cs`
- [Nirvana login](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Manager/NirvanaAccountManager.cs): `Nirvana.Public/Manager/NirvanaAccountManager.cs`
- [Content cache](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Public/Manager/CacheManager.cs): `Nirvana.Public/Manager/CacheManager.cs`

### Game runtime

- [Game launcher](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Game.Launcher/Services/Java/CommandService.cs): `Nirvana.Game.Launcher/Services/Java/CommandService.cs`
- [Bedrock launcher](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs): `Nirvana.Game.Launcher/Services/Bedrock/LauncherService.cs`

### Proxy extensions

- [Plugin manager](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Development/Manager/PluginManager.cs): `Nirvana.Development/Manager/PluginManager.cs`
- [Packet dispatch](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Development/Manager/PacketManager.cs): `Nirvana.Development/Manager/PacketManager.cs`
- [Chat manager](https://github.com/fengheng1111/fantnel/blob/master/Nirvana.Chat/Manager/ChatManager.cs): `Nirvana.Chat/Manager/ChatManager.cs`

### Other components

- **User**

## Connections

- User → Web application: uses (evidence: `README.md`)
- Web application → UI tools: uses (evidence: `web/src/App.vue`)
- Web application → Game views: presents
- Web application → Plugin views: presents
- Game views → Account API: requests
- Game views → Launch API: requests
- Game views → Proxy API: requests
- Game views → Rental API: requests
- Game views → Server API: requests
- Game views → Skin API: requests
- Plugin views → Plugin API: requests
- Account API → Account operations: delegates (evidence: `Fantnel/Servlet/GameController/GameAccountController.cs`)
- Account operations → Account state: updates (evidence: `Nirvana.Public/Message/AccountMessage.cs`)
- Account API → Nirvana login: authenticates
- Launch API → Game launcher: launches
- Launch API → Bedrock launcher: launches
- Plugin API → Plugin manager: queries (evidence: `Fantnel/Servlet/PluginsController/PluginsListController.cs`)
- Plugin manager → Packet dispatch: registers (evidence: `Nirvana.Development/Manager/PacketManager.cs`)
- Proxy API → Chat manager: enables
- Server API → Content cache: reads
- Rental API → Content cache: reads
- Skin API → Content cache: reads
