How jmberesford/retrom works
Retrom is a self-hosted game-library service with desktop and browser clients: users scan and manage a centralized collection, then install or download games and launch them across devices, including through emulators. The graph preserves the documented library, metadata, emulator-profile, save, and in-browser-emulation capabilities. Most runtime wiring was not sampled, so edges show only README-documented relationships or directly visible calls; the backend component boundaries are based on the repository tree.
Main entry points: lib.rs gRPC services · main.rs Service runtime · main.tsx Client application · routeTree.gen.ts Client routes
Components 23
Client experiences
- Client application
packages/client-web/src/main.tsx - Client routes
packages/client-web/src/routeTree.gen.ts - Controller mapping
packages/client-web/src/providers/gamepad/maps.tsx - Browser emulation
packages/client-web/src/routes/play/$gameId/_layout/frame.lazy.tsx - Client RPC access
packages/client-web/src/providers/retrom-client/client.tsx
Library management
- Library configuration
packages/client-web/src/components/modals/config/server/libraries-config/index.tsx - Metadata handlers
packages/grpc-service/src/library/metadata_handlers.rs - Background jobs
packages/grpc-service/src/jobs/job_manager.rs - Game operations
packages/grpc-service/src/games.rs
Server runtime
- gRPC services
packages/grpc-service/src/lib.rs - Service runtime
packages/service/src/main.rs - REST endpoints
packages/rest-service/src/lib.rs - Library database
packages/db/src/lib.rs - Artwork cache
packages/service-common/src/media_cache/mod.rs - Server directories
packages/service-common/src/retrom_dirs.rs
Platform integrations
- Cloud save services
packages/grpc-service/src/saves/v2/service.rs - Emulator profiles
packages/grpc-service/src/emulators/mod.rs - Desktop installer
plugins/retrom-plugin-installer/src/desktop.rs - Game launcher
plugins/retrom-plugin-launcher/src/commands.rs - Steam integration
plugins/retrom-plugin-steam/src/lib.rs - WebDAV client
plugins/retrom-plugin-webdav-client/src/desktop.rs
Shared contracts
- API definitions
packages/codegen/protos/retrom/services/game-service.proto
Other components
- Player / admin
Connections 22
- Player / admin → Client application: uses
README.md - Client application → Client routes: starts router
packages/client-web/src/main.tsx - Client routes → Browser emulation: routes to
packages/client-web/src/routeTree.gen.ts - Player / admin → Library configuration: configures library
README.md - Player / admin → Game operations: manages games
README.md - Player / admin → Metadata handlers: requests metadata
README.md - Metadata handlers → Background jobs: schedules jobs
packages/grpc-service/src/library/metadata_handlers.rs - Player / admin → Desktop installer: installs games
README.md - Player / admin → Game launcher: launches games
README.md - Player / admin → Emulator profiles: configures profiles
README.md - Player / admin → Cloud save services: syncs saves
README.md - Player / admin → Browser emulation: plays in browser
README.md - Player / admin → Controller mapping: uses controller
README.md - Client RPC access → gRPC services: calls remotely
- gRPC services → API definitions: implements API
- Service runtime → gRPC services: hosts services
- Service runtime → REST endpoints: hosts endpoints
- gRPC services → Library database: persists library
- Artwork cache → Server directories: uses paths
packages/service-common/src/media_cache/mod.rs - Cloud save services → Server directories: uses save paths
- Player / admin → Steam integration: unifies libraries
README.md - Player / admin → WebDAV client: uses remote files