# opengenesislink/opengenesislinkserver architecture

> Architecture diagram of the GitHub repository opengenesislink/opengenesislinkserver, 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/opengenesislink/opengenesislinkserver
- Repository: https://github.com/opengenesislink/opengenesislinkserver

## Overview

OpenGenesisLINK is a virtual-world server based on OpenSimulator, with NexVerse-specific platform services layered alongside the simulator. A typical user enters through login, participates in a running region, and uses grid services such as the World API and economy; the README also identifies Hypergrid, inventory/assets, and operational recovery as product capabilities. The source excerpts are limited, so subsystem links not documented in the README are shown as unverified rather than asserted as calls.

Main entry points: [`OpenSim/Region/Framework/Scenes/Scene.cs`](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/Framework/Scenes/Scene.cs) (Region simulation), [`OpenSim/Services/HypergridService/UserAgentService.cs`](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/HypergridService/UserAgentService.cs) (Login and Hypergrid), [`NexVerse/Server/Api/NexEconomyApi.cs`](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexEconomyApi.cs) (Economy API), [`NexVerse/RegionModules/Archives/OglIarOperationManager.cs`](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/RegionModules/Archives/OglIarOperationManager.cs) (Inventory and archives)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sim["Simulator runtime"]
  node_region["Region simulation<br/>[Scene.cs]"]
  node_events["Region events<br/>[EventManager.cs]"]
  node_clientapi["Viewer protocol<br/>[IClientAPI.cs]"]
  node_scriptengine["LSL scripting<br/>[XMREngine.cs]"]
  node_assets["Asset service<br/>[AssetService.cs]"]
end

subgraph group_grid["Grid services"]
  node_login["Login and Hypergrid"]
  node_accounts["User accounts"]
  node_groups["Groups<br/>[GroupsService.cs]"]
end

subgraph group_platform["NexVerse platform"]
  node_worldapi["World API"]
  node_economyapi["Economy API<br/>[NexEconomyApi.cs]"]
  node_economy["NV$ ledger"]
  node_inventory["Inventory and archives"]
  node_control["Grid and region control"]
  node_voice["Voice integration"]
end

subgraph group_ops["Operations"]
  node_jobs["Persistent jobs<br/>[OglJobWorkers.cs]"]
  node_telemetry["Monitoring<br/>[NexTelemetry.cs]"]
end

node_resident(("Resident"))
node_viewer(("Viewer"))

node_resident -.->|"uses"| node_viewer
node_viewer -.->|"logs in"| node_login
node_login -.->|"enters region"| node_region
node_viewer -.->|"interacts"| node_region
node_region -.->|"dispatches events"| node_events
node_region -.->|"serves viewer protocol"| node_clientapi
node_region -.->|"runs scripts"| node_scriptengine
node_region -.->|"uses assets"| node_assets
node_login -.->|"resolves accounts"| node_accounts
node_resident -.->|"uses"| node_worldapi
node_resident -.->|"uses"| node_economyapi
node_economyapi -.->|"accesses ledger"| node_economy
node_resident -.->|"manages inventory"| node_inventory
node_control -.->|"manages regions"| node_region
node_jobs -.->|"runs operations"| node_inventory
node_region -.->|"optional voice"| node_voice
node_resident -.->|"uses groups"| node_groups

click node_login "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/HypergridService/UserAgentService.cs"
click node_region "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/Framework/Scenes/Scene.cs"
click node_events "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/Framework/Scenes/EventManager.cs"
click node_clientapi "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Framework/IClientAPI.cs"
click node_scriptengine "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs"
click node_assets "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/AssetService/AssetService.cs"
click node_accounts "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/UserAccountService/UserAccountService.cs"
click node_worldapi "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexVerseWorldApiHandlers.cs"
click node_economyapi "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexEconomyApi.cs"
click node_economy "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Economy/NexEconomyWorkflow.cs"
click node_inventory "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/RegionModules/Archives/OglIarOperationManager.cs"
click node_jobs "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Jobs/OglJobWorkers.cs"
click node_control "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexGridControlApi.cs"
click node_telemetry "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Observability/NexTelemetry.cs"
click node_voice "https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/RegionModules/Voice/OglVoiceFirestormCapsModule.cs"
click node_groups "https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Addons/Groups/Service/GroupsService.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_region,node_events,node_clientapi,node_scriptengine,node_assets,node_viewer toneBlue
class node_login,node_accounts,node_groups toneAmber
class node_worldapi,node_economyapi,node_economy,node_inventory,node_control,node_voice toneMint
class node_jobs,node_telemetry toneRose
class node_resident toneIndigo
```

## Components

### Simulator runtime

- [Region simulation](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/Framework/Scenes/Scene.cs): `OpenSim/Region/Framework/Scenes/Scene.cs`
- [Region events](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/Framework/Scenes/EventManager.cs): `OpenSim/Region/Framework/Scenes/EventManager.cs`
- [Viewer protocol](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Framework/IClientAPI.cs): `OpenSim/Framework/IClientAPI.cs`
- [LSL scripting](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs): `OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs`
- [Asset service](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/AssetService/AssetService.cs): `OpenSim/Services/AssetService/AssetService.cs`

### Grid services

- [Login and Hypergrid](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/HypergridService/UserAgentService.cs): `OpenSim/Services/HypergridService/UserAgentService.cs`
- [User accounts](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Services/UserAccountService/UserAccountService.cs): `OpenSim/Services/UserAccountService/UserAccountService.cs`
- [Groups](https://github.com/opengenesislink/opengenesislinkserver/blob/main/OpenSim/Addons/Groups/Service/GroupsService.cs): `OpenSim/Addons/Groups/Service/GroupsService.cs`

### NexVerse platform

- [World API](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexVerseWorldApiHandlers.cs): `NexVerse/Server/Api/NexVerseWorldApiHandlers.cs`
- [Economy API](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexEconomyApi.cs): `NexVerse/Server/Api/NexEconomyApi.cs`
- [NV$ ledger](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Economy/NexEconomyWorkflow.cs): `NexVerse/Core/Economy/NexEconomyWorkflow.cs`
- [Inventory and archives](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/RegionModules/Archives/OglIarOperationManager.cs): `NexVerse/RegionModules/Archives/OglIarOperationManager.cs`
- [Grid and region control](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Server/Api/NexGridControlApi.cs): `NexVerse/Server/Api/NexGridControlApi.cs`
- [Voice integration](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/RegionModules/Voice/OglVoiceFirestormCapsModule.cs): `NexVerse/RegionModules/Voice/OglVoiceFirestormCapsModule.cs`

### Operations

- [Persistent jobs](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Jobs/OglJobWorkers.cs): `NexVerse/Core/Jobs/OglJobWorkers.cs`
- [Monitoring](https://github.com/opengenesislink/opengenesislinkserver/blob/main/NexVerse/Core/Observability/NexTelemetry.cs): `NexVerse/Core/Observability/NexTelemetry.cs`

### Other components

- **Resident**
- **Viewer**

## Connections

- Resident → Viewer: uses
- Viewer → Login and Hypergrid: logs in
- Login and Hypergrid → Region simulation: enters region
- Viewer → Region simulation: interacts
- Region simulation → Region events: dispatches events (evidence: `OpenSim/Region/Framework/Scenes/EventManager.cs`)
- Region simulation → Viewer protocol: serves viewer protocol (evidence: `OpenSim/Framework/IClientAPI.cs`)
- Region simulation → LSL scripting: runs scripts (evidence: `OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs`)
- Region simulation → Asset service: uses assets (evidence: `OpenSim/Region/Framework/Scenes/Scene.cs`)
- Login and Hypergrid → User accounts: resolves accounts (evidence: `OpenSim/Services/HypergridService/UserAgentService.cs`)
- Resident → World API: uses
- Resident → Economy API: uses
- Economy API → NV$ ledger: accesses ledger
- Resident → Inventory and archives: manages inventory
- Grid and region control → Region simulation: manages regions
- Persistent jobs → Inventory and archives: runs operations
- Region simulation → Voice integration: optional voice
- Resident → Groups: uses groups
