# turbo-devv/openomsi architecture

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

## Overview

openOMSI recreates OMSI 2 as a cross-platform bus simulator that uses the player’s existing OMSI installation and content. The documented user workflow is to configure that installation, choose a map, bus, and duty in the launcher, then start driving. The graph highlights that entry path and major documented runtime capabilities. Relationships are limited to README statements and the supplied source index or excerpts; several runtime subsystems are represented by their exact tree paths but their internal connections were not sampled.

Main entry points: [`crates/omsi-app/src/app.rs`](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/app.rs) (Game application), [`launcher/ui/js/app.js`](https://github.com/turbo-devv/openomsi/blob/main/launcher/ui/js/app.js) (Launcher UI), [`crates/omsi-app/src/world_load.rs`](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/world_load.rs) (World loading), [`crates/omsi-app/src/launcher/service.rs`](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/launcher/service.rs) (Launcher service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher"]
  node_launcher_ui["Launcher UI<br/>[app.js]"]
  node_launcher_service["Launcher service<br/>[service.rs]"]
end

subgraph group_game["Game runtime"]
  node_game_app["Game application<br/>[app.rs]"]
  node_frame_loop["Frame stages<br/>[frame_stages.rs]"]
  node_journey["Driving journey<br/>[journey.rs]"]
  node_controls["Controller input<br/>[controllers.rs]"]
  node_settings["Game settings<br/>[settings.rs]"]
end

subgraph group_content["Content and simulation"]
  node_world["World loading<br/>[world_load.rs]"]
  node_map_content["Map content<br/>[package.rs]"]
  node_vehicle_content["Vehicle simulation<br/>[vehicle.rs]"]
  node_timetable["Timetable service<br/>[bus_service.rs]"]
  node_scene["Scene engine<br/>[world.rs]"]
  node_renderer["Graphics renderer<br/>[render.rs]"]
  node_audio["Audio engine<br/>[mixer.rs]"]
end

subgraph group_platform["Platform services"]
  node_lan["LAN multiplayer<br/>[game.rs]"]
  node_dedicated_server["Dedicated server<br/>[server.rs]"]
  node_plugins["Plugin runtime<br/>[runtime.rs]"]
  node_mods["Mods<br/>[mods.rs]"]
end

node_player(("Player"))
node_installed_content["OMSI installation"]

node_player -->|"chooses setup"| node_launcher_ui
node_launcher_ui -->|"requests actions"| node_launcher_service
node_launcher_service -.->|"starts game"| node_game_app
node_player -->|"starts duty"| node_game_app
node_game_app -->|"runs frames"| node_frame_loop
node_game_app -->|"loads world"| node_world
node_game_app -->|"configures journey"| node_journey
node_game_app -->|"uses settings"| node_settings
node_player -->|"drives with"| node_controls
node_world -.->|"loads map"| node_map_content
node_world -->|"reads content"| node_installed_content
node_installed_content -->|"provides buses"| node_vehicle_content
node_timetable -->|"animates service bus"| node_vehicle_content
node_scene -.->|"supplies scene"| node_renderer
node_game_app -->|"supports multiplayer"| node_lan
node_game_app -->|"offers server mode"| node_dedicated_server
node_game_app -->|"supports plugins"| node_plugins
node_launcher_ui -->|"installs mods"| node_mods
node_game_app -.->|"plays audio"| node_audio

click node_launcher_ui "https://github.com/turbo-devv/openomsi/blob/main/launcher/ui/js/app.js"
click node_launcher_service "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/launcher/service.rs"
click node_game_app "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/app.rs"
click node_frame_loop "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/frame_stages.rs"
click node_journey "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/journey.rs"
click node_controls "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-input/src/controllers.rs"
click node_settings "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/settings.rs"
click node_world "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/world_load.rs"
click node_map_content "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-map/src/package.rs"
click node_vehicle_content "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-vehicle/src/vehicle.rs"
click node_timetable "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-sim/src/ai_traffic/bus_service.rs"
click node_scene "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-scene/src/world.rs"
click node_renderer "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-render/src/render.rs"
click node_audio "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-audio/src/mixer.rs"
click node_lan "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-lan/src/game.rs"
click node_dedicated_server "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/server.rs"
click node_plugins "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-plugin/src/api/runtime.rs"
click node_mods "https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-launcher-core/src/mods.rs"

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_launcher_ui,node_launcher_service toneBlue
class node_game_app,node_frame_loop,node_journey,node_controls,node_settings toneAmber
class node_world,node_map_content,node_vehicle_content,node_timetable,node_scene,node_renderer,node_audio toneMint
class node_lan,node_dedicated_server,node_plugins,node_mods toneRose
class node_player,node_installed_content toneIndigo
```

## Components

### Launcher

- [Launcher UI](https://github.com/turbo-devv/openomsi/blob/main/launcher/ui/js/app.js): `launcher/ui/js/app.js`
- [Launcher service](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/launcher/service.rs): `crates/omsi-app/src/launcher/service.rs`

### Game runtime

- [Game application](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/app.rs): `crates/omsi-app/src/app.rs`
- [Frame stages](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/frame_stages.rs): `crates/omsi-app/src/frame_stages.rs`
- [Driving journey](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/journey.rs): `crates/omsi-app/src/journey.rs`
- [Controller input](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-input/src/controllers.rs): `crates/omsi-input/src/controllers.rs`
- [Game settings](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/settings.rs): `crates/omsi-app/src/settings.rs`

### Content and simulation

- [World loading](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/world_load.rs): `crates/omsi-app/src/world_load.rs`
- [Map content](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-map/src/package.rs): `crates/omsi-map/src/package.rs`
- [Vehicle simulation](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-vehicle/src/vehicle.rs): `crates/omsi-vehicle/src/vehicle.rs`
- [Timetable service](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-sim/src/ai_traffic/bus_service.rs): `crates/omsi-sim/src/ai_traffic/bus_service.rs`
- [Scene engine](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-scene/src/world.rs): `crates/omsi-scene/src/world.rs`
- [Graphics renderer](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-render/src/render.rs): `crates/omsi-render/src/render.rs`
- [Audio engine](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-audio/src/mixer.rs): `crates/omsi-audio/src/mixer.rs`

### Platform services

- [LAN multiplayer](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-lan/src/game.rs): `crates/omsi-lan/src/game.rs`
- [Dedicated server](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-app/src/server.rs): `crates/omsi-app/src/server.rs`
- [Plugin runtime](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-plugin/src/api/runtime.rs): `crates/omsi-plugin/src/api/runtime.rs`
- [Mods](https://github.com/turbo-devv/openomsi/blob/main/crates/omsi-launcher-core/src/mods.rs): `crates/omsi-launcher-core/src/mods.rs`

### Other components

- **Player**
- **OMSI installation**

## Connections

- Player → Launcher UI: chooses setup (evidence: `README.md`)
- Launcher UI → Launcher service: requests actions (evidence: `launcher/ui/js/app.js`)
- Launcher service → Game application: starts game
- Player → Game application: starts duty (evidence: `README.md`)
- Game application → Frame stages: runs frames (evidence: `crates/omsi-app/src/app.rs`)
- Game application → World loading: loads world (evidence: `crates/omsi-app/src/app.rs`)
- Game application → Driving journey: configures journey (evidence: `crates/omsi-app/src/app/parts.rs`)
- Game application → Game settings: uses settings (evidence: `crates/omsi-app/src/app.rs`)
- Player → Controller input: drives with (evidence: `README.md`)
- World loading → Map content: loads map
- World loading → OMSI installation: reads content (evidence: `README.md`)
- OMSI installation → Vehicle simulation: provides buses (evidence: `README.md`)
- Timetable service → Vehicle simulation: animates service bus (evidence: `crates/omsi-sim/src/ai_traffic/bus_service.rs`)
- Scene engine → Graphics renderer: supplies scene
- Game application → LAN multiplayer: supports multiplayer (evidence: `README.md`)
- Game application → Dedicated server: offers server mode (evidence: `README.md`)
- Game application → Plugin runtime: supports plugins (evidence: `README.md`)
- Launcher UI → Mods: installs mods (evidence: `README.md`)
- Game application → Audio engine: plays audio
