# jahrock/airdcpp-webui architecture

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

- Interactive diagram: https://gitdiagram.com/jahrock/airdcpp-webui
- Repository: https://github.com/jahrock/airdcpp-webui

## Overview

AirDC++ Web UI is a browser client for AirDC++ Core, communicating through its Web API. A user enters through the app shell, then uses routed areas for login, search, chat, file browsing, transfers, sharing, and configuration. Shared application and session stores hold client state, while socket and HTTP services provide API access. The README documents the Core/API relationship; the sampled source verifies selected boot, session, table, and RSS interactions, not every route’s runtime wiring.

Main entry points: [`src/routes/Routes.tsx`](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Routes.tsx) (Route registry), [`src/App.tsx`](https://github.com/jahrock/airdcpp-webui/blob/master/src/App.tsx) (App entry), [`src/context/SocketContext.ts`](https://github.com/jahrock/airdcpp-webui/blob/master/src/context/SocketContext.ts) (Socket context), [`src/services/SocketService.ts`](https://github.com/jahrock/airdcpp-webui/blob/master/src/services/SocketService.ts) (WebSocket service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["App entry<br/>[App.tsx]"]
  node_auth["Authenticated app"]
  node_routes["Route registry<br/>[Routes.tsx]"]
end

subgraph group_features["User features"]
  node_login["Login<br/>[Login.tsx]"]
  node_search["Search<br/>[Search.tsx]"]
  node_sessions["Session manager"]
  node_chat["Chat and messages<br/>[ChatLayout.tsx]"]
  node_filelists["File lists<br/>[FilelistFooter.tsx]"]
  node_queue["Download queue<br/>[Queue.tsx]"]
  node_transfers["Transfers<br/>[index.ts]"]
  node_home["Home widgets<br/>[Home.tsx]"]
end

subgraph group_sharing["Sharing and settings"]
  node_share["Share management<br/>[Share.tsx]"]
  node_settings["Settings<br/>[Settings.tsx]"]
  node_extensions["Extensions"]
  node_form["Form components<br/>[Form.tsx]"]
end

subgraph group_state["Client state"]
  node_appstore[("Application store")]
  node_sessionstore[("Session store")]
  node_tablemanager["Table data manager"]
  node_tableactions["Table actions<br/>[TableActions.js]"]
  node_messageutils["Message utilities<br/>[MessageUtils.ts]"]
  node_formatter["Formatter<br/>[Formatter.ts]"]
  node_browserutils["Browser utilities<br/>[BrowserUtils.ts]"]
  node_translations["Translation utilities"]
  node_uitypes["UI types<br/>[messages.ts]"]
  node_sessiontypes["Session types<br/>[sessions.ts]"]
  node_urgencytypes["Urgency types<br/>[urgencies.ts]"]
  node_iconconstants["Icon constants<br/>[IconConstants.ts]"]
  node_notificationactions["Notification actions"]
end

subgraph group_services["API services"]
  node_socketcontext["Socket context<br/>[SocketContext.ts]"]
  node_socket["WebSocket service<br/>[SocketService.ts]"]
  node_http["HTTP service<br/>[HttpService.ts]"]
  node_httputils["HTTP utilities<br/>[HttpUtils.ts]"]
end

node_browser(("Browser user"))
node_core{{"AirDC++ Core API"}}

node_browser -->|"opens"| node_app
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_login
node_app -->|"provides"| node_socket
node_app -->|"provides"| node_appstore
node_app -->|"creates"| node_formatter
node_auth -.->|"dispatches"| node_routes
node_routes -->|"routes to"| node_search
node_routes -->|"routes to"| node_queue
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_settings
node_routes -->|"routes to"| node_share
node_routes -->|"routes to"| node_sessions
node_sessions -->|"loads and saves"| node_browserutils
node_sessions -->|"uses"| node_socketcontext
node_tablemanager -->|"calls"| node_tableactions
node_tablemanager -->|"uses"| node_socketcontext
node_socketcontext -->|"provides"| node_socket
node_socket -->|"connects to"| node_core
node_http -->|"uses"| node_httputils
node_extensions -.->|"fetches status"| node_http
node_settings -.->|"uses"| node_form
node_chat -.->|"uses"| node_messageutils
node_notificationactions -->|"uses"| node_uitypes
node_sessionstore -->|"initializes with"| node_socket
node_sessionstore -->|"uses"| node_sessiontypes
node_socketcontext -->|"types"| node_sessiontypes
node_appstore -.->|"exposes session"| node_formatter

click node_app "https://github.com/jahrock/airdcpp-webui/blob/master/src/App.tsx"
click node_auth "https://github.com/jahrock/airdcpp-webui/blob/master/src/components/main/AuthenticatedApp.tsx"
click node_routes "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Routes.tsx"
click node_login "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Login/components/Login.tsx"
click node_search "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Search/components/Search.tsx"
click node_sessions "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/components/effects/useSessionManager.ts"
click node_chat "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/components/chat/ChatLayout.tsx"
click node_filelists "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/routes/Filelists/components/FilelistFooter.tsx"
click node_queue "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Queue/components/Queue.tsx"
click node_transfers "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Transfers/index.ts"
click node_home "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Home/components/Home.tsx"
click node_share "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Share/components/Share.tsx"
click node_settings "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Settings/components/Settings.tsx"
click node_extensions "https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Settings/routes/Extensions/components/ExtensionsManagePage.tsx"
click node_appstore "https://github.com/jahrock/airdcpp-webui/blob/master/src/context/AppStoreContext.tsx"
click node_sessionstore "https://github.com/jahrock/airdcpp-webui/blob/master/src/context/SessionStoreContext.tsx"
click node_tablemanager "https://github.com/jahrock/airdcpp-webui/blob/master/src/components/table/effects/useTableDataManager.ts"
click node_tableactions "https://github.com/jahrock/airdcpp-webui/blob/master/src/actions/TableActions.js"
click node_socketcontext "https://github.com/jahrock/airdcpp-webui/blob/master/src/context/SocketContext.ts"
click node_socket "https://github.com/jahrock/airdcpp-webui/blob/master/src/services/SocketService.ts"
click node_http "https://github.com/jahrock/airdcpp-webui/blob/master/src/services/HttpService.ts"
click node_form "https://github.com/jahrock/airdcpp-webui/blob/master/src/components/form/Form.tsx"
click node_messageutils "https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/MessageUtils.ts"
click node_formatter "https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/Formatter.ts"
click node_browserutils "https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/BrowserUtils.ts"
click node_httputils "https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/HttpUtils.ts"
click node_translations "https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/TranslationUtils.ts"
click node_uitypes "https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/messages.ts"
click node_sessiontypes "https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/sessions.ts"
click node_urgencytypes "https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/urgencies.ts"
click node_iconconstants "https://github.com/jahrock/airdcpp-webui/blob/master/src/constants/IconConstants.ts"
click node_notificationactions "https://github.com/jahrock/airdcpp-webui/blob/master/src/actions/NotificationActions.ts"

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_app,node_auth,node_routes,node_browser toneBlue
class node_login,node_search,node_sessions,node_chat,node_filelists,node_queue,node_transfers,node_home toneAmber
class node_share,node_settings,node_extensions,node_form,node_core toneMint
class node_appstore,node_sessionstore,node_tablemanager,node_tableactions,node_messageutils,node_formatter,node_browserutils,node_translations,node_uitypes,node_sessiontypes,node_urgencytypes,node_iconconstants,node_notificationactions toneRose
class node_socketcontext,node_socket,node_http,node_httputils toneIndigo
```

## Components

### Application shell

- [App entry](https://github.com/jahrock/airdcpp-webui/blob/master/src/App.tsx): `src/App.tsx`
- [Authenticated app](https://github.com/jahrock/airdcpp-webui/blob/master/src/components/main/AuthenticatedApp.tsx): `src/components/main/AuthenticatedApp.tsx`
- [Route registry](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Routes.tsx): `src/routes/Routes.tsx`

### User features

- [Login](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Login/components/Login.tsx): `src/routes/Login/components/Login.tsx`
- [Search](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Search/components/Search.tsx): `src/routes/Search/components/Search.tsx`
- [Session manager](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/components/effects/useSessionManager.ts): `src/routes/Sidebar/components/effects/useSessionManager.ts`
- [Chat and messages](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/components/chat/ChatLayout.tsx): `src/routes/Sidebar/components/chat/ChatLayout.tsx`
- [File lists](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Sidebar/routes/Filelists/components/FilelistFooter.tsx): `src/routes/Sidebar/routes/Filelists/components/FilelistFooter.tsx`
- [Download queue](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Queue/components/Queue.tsx): `src/routes/Queue/components/Queue.tsx`
- [Transfers](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Transfers/index.ts): `src/routes/Transfers/index.ts`
- [Home widgets](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Home/components/Home.tsx): `src/routes/Home/components/Home.tsx`

### Sharing and settings

- [Share management](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Share/components/Share.tsx): `src/routes/Share/components/Share.tsx`
- [Settings](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Settings/components/Settings.tsx): `src/routes/Settings/components/Settings.tsx`
- [Extensions](https://github.com/jahrock/airdcpp-webui/blob/master/src/routes/Settings/routes/Extensions/components/ExtensionsManagePage.tsx): `src/routes/Settings/routes/Extensions/components/ExtensionsManagePage.tsx`
- [Form components](https://github.com/jahrock/airdcpp-webui/blob/master/src/components/form/Form.tsx): `src/components/form/Form.tsx`

### Client state

- [Application store](https://github.com/jahrock/airdcpp-webui/blob/master/src/context/AppStoreContext.tsx): `src/context/AppStoreContext.tsx`
- [Session store](https://github.com/jahrock/airdcpp-webui/blob/master/src/context/SessionStoreContext.tsx): `src/context/SessionStoreContext.tsx`
- [Table data manager](https://github.com/jahrock/airdcpp-webui/blob/master/src/components/table/effects/useTableDataManager.ts): `src/components/table/effects/useTableDataManager.ts`
- [Table actions](https://github.com/jahrock/airdcpp-webui/blob/master/src/actions/TableActions.js): `src/actions/TableActions.js`
- [Message utilities](https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/MessageUtils.ts): `src/utils/MessageUtils.ts`
- [Formatter](https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/Formatter.ts): `src/utils/Formatter.ts`
- [Browser utilities](https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/BrowserUtils.ts): `src/utils/BrowserUtils.ts`
- [Translation utilities](https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/TranslationUtils.ts): `src/utils/TranslationUtils.ts`
- [UI types](https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/messages.ts): `src/types/ui/messages.ts`
- [Session types](https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/sessions.ts): `src/types/ui/sessions.ts`
- [Urgency types](https://github.com/jahrock/airdcpp-webui/blob/master/src/types/ui/urgencies.ts): `src/types/ui/urgencies.ts`
- [Icon constants](https://github.com/jahrock/airdcpp-webui/blob/master/src/constants/IconConstants.ts): `src/constants/IconConstants.ts`
- [Notification actions](https://github.com/jahrock/airdcpp-webui/blob/master/src/actions/NotificationActions.ts): `src/actions/NotificationActions.ts`

### API services

- [Socket context](https://github.com/jahrock/airdcpp-webui/blob/master/src/context/SocketContext.ts): `src/context/SocketContext.ts`
- [WebSocket service](https://github.com/jahrock/airdcpp-webui/blob/master/src/services/SocketService.ts): `src/services/SocketService.ts`
- [HTTP service](https://github.com/jahrock/airdcpp-webui/blob/master/src/services/HttpService.ts): `src/services/HttpService.ts`
- [HTTP utilities](https://github.com/jahrock/airdcpp-webui/blob/master/src/utils/HttpUtils.ts): `src/utils/HttpUtils.ts`

### Other components

- **Browser user**
- **AirDC++ Core API**

## Connections

- Browser user → App entry: opens
- App entry → Authenticated app: routes to (evidence: `src/App.tsx`)
- App entry → Login: routes to (evidence: `src/App.tsx`)
- App entry → WebSocket service: provides (evidence: `src/App.tsx`)
- App entry → Application store: provides (evidence: `src/App.tsx`)
- App entry → Formatter: creates (evidence: `src/App.tsx`)
- Authenticated app → Route registry: dispatches
- Route registry → Search: routes to (evidence: `src/routes/Routes.tsx`)
- Route registry → Download queue: routes to (evidence: `src/routes/Routes.tsx`)
- Route registry → Home widgets: routes to (evidence: `src/routes/Routes.tsx`)
- Route registry → Settings: routes to (evidence: `src/routes/Routes.tsx`)
- Route registry → Share management: routes to (evidence: `src/routes/Routes.tsx`)
- Route registry → Session manager: routes to (evidence: `src/routes/Routes.tsx`)
- Session manager → Browser utilities: loads and saves (evidence: `src/routes/Sidebar/components/effects/useSessionManager.ts`)
- Session manager → Socket context: uses (evidence: `src/routes/Sidebar/components/effects/useSessionManager.ts`)
- Table data manager → Table actions: calls (evidence: `src/components/table/effects/useTableDataManager.ts`)
- Table data manager → Socket context: uses (evidence: `src/components/table/effects/useTableDataManager.ts`)
- Socket context → WebSocket service: provides (evidence: `src/context/SocketContext.ts`)
- WebSocket service → AirDC++ Core API: connects to (evidence: `README.md`)
- HTTP service → HTTP utilities: uses (evidence: `src/services/HttpService.ts`)
- Extensions → HTTP service: fetches status
- Settings → Form components: uses
- Chat and messages → Message utilities: uses
- Notification actions → UI types: uses (evidence: `src/actions/NotificationActions.ts`)
- Session store → WebSocket service: initializes with (evidence: `src/context/SessionStoreContext.tsx`)
- Session store → Session types: uses (evidence: `src/context/SessionStoreContext.tsx`)
- Socket context → Session types: types (evidence: `src/context/SocketContext.ts`)
- Application store → Formatter: exposes session
