Knowledge Base updated: 2026-11-22
RomM knowledge base
RomM is a self-hosted game-library manager: a FastAPI backend maintains catalog, identity, task, and play-service state while a Vue application provides browsing and administration workflows.
Critical durable state is stored in the backend database and configured library filesystem. Redis/RQ coordinates background work; streaming, sync, and metadata integrations connect that state to external clients and providers.
The repository’s main parts are backend/ for APIs, models, handlers, and tasks; frontend/ for the web client; and deployment configuration at the repository root.
flowchart LR
Browser[Vue web application] --> API[FastAPI backend]
API --> Catalog[Catalog models and APIs]
API --> Identity[Authentication and permissions]
API --> Jobs[RQ tasks and schedulers]
API --> Play[Play, sync, netplay, streaming]
Catalog --> DB[(Database)]
Catalog --> Files[Library filesystem]
Jobs --> DB
Jobs --> Files
Play --> DB
Play --> Clients[Remote clients and emulators]
API --> Redis[(Redis)]
Jobs --> Redis
API --> Providers[Metadata providers]
Browser --> Socket[Realtime sockets]
Socket --> API
Glossary
- RomM — the backend and web application that manages a game library.
- ROM — a cataloged game file associated with a platform and filesystem resource.
- Resource — a managed filesystem artifact associated with ROMs, firmware, or assets.
- Sync session — a tracked comparison and transfer operation between RomM and a remote client.
- Save snapshot — a versioned, content-addressed representation of save or state data.
Codebase-wide invariants
- Backend behavior is composed through the FastAPI entrypoint; application-wide runtime wiring belongs under backend/main.py and its imported configuration.
- Persistent catalog changes must keep model relationships and library filesystem state coherent; evidence: backend/…/rom.py, backend/…/collection.py, and
backend/handler/filesystem/**. - Long-running operations are executed through task infrastructure rather than request-only workflows; evidence:
backend/tasks/**and task-facing API patterns. - Frontend server access is centralized through API services and client stores; evidence:
frontend/src/services/api/**andfrontend/src/stores/**. - Permission-sensitive server operations must pass backend authentication and authorization enforcement; evidence: backend auth dependencies, middleware, and endpoint permission maps.
Routing table
| Path or trigger | Documentation |
|---|---|
backend/…/platform.py, backend/…/collection.py, backend/…/rom.py, backend/…/firmware.py, backend/api/**/platform*, backend/api/**/collection* | Game library catalog |
backend/…/rom.py, backend/…/collection.py, backend/…/firmware.py, backend/…/asset.py, backend/api/**/rom*, backend/api/**/collection* | Catalog data and API operations |
backend/handler/filesystem/**, backend/tasks/**/scan*, backend/tasks/**/filesystem* | Library scanning and filesystem handling |
backend/handler/metadata/**, backend/tasks/**/metadata*, backend/api/**/metadata* | Metadata enrichment |
backend/handler/**/recommend*, backend/tasks/**/recommend*, frontend/src/components/**/Recommend* | Recommendation delivery |
backend/…/user.py, backend/…/token.py, backend/dependencies/**/auth*, backend/middleware/** | Identity and access control |
backend/dependencies/**/auth*, backend/middleware/**, backend/api/**/auth*, backend/core/**/permission* | Authentication and authorization |
backend/api/**/user*, backend/api/**/device*, frontend/src/views/**/User*, frontend/src/views/**/Device* | User and device administration |
backend/handler/sync/**, backend/handler/streaming/**, backend/models/**/save*, backend/models/**/session* | Play and client services |
backend/models/**/session*, backend/models/**/save*, backend/api/**/save*, backend/api/**/session* | Play sessions and saves |
backend/handler/sync/**, backend/tasks/**/sync*, backend/api/**/sync* | Remote library sync |
backend/handler/streaming/**, backend/api/**/stream*, backend/api/**/netplay*, frontend/…/Stream.vue | Netplay and streaming |
backend/handler/**/snapshot*, backend/models/**/snapshot*, backend/api/**/channel*, frontend/src/components/**/Save* | Save snapshots and channels |
frontend/src/main.*, frontend/…/App.vue, frontend/…/AppLayout.vue, frontend/src/router/** | Web application experience |
frontend/src/router/**, frontend/src/layouts/**, frontend/src/components/AppShell/**, frontend/src/composables/**, frontend/src/services/**, frontend/src/stores/** | Frontend application architecture |
frontend/src/components/Gallery/**, frontend/src/components/GameDetails/**, frontend/src/views/Player/**, frontend/…/galleryRoms.ts | Library browsing experience |
frontend/src/views/**/Admin*, frontend/src/views/**/Settings*, frontend/src/components/Dialogs/ManualUploadTargetDialog.*, frontend/src/stores/** | Administration workflows |
backend/main.py, backend/config/**, docker-compose*.yml, Dockerfile*, backend/handler/**/notification* | Backend runtime and operations |
backend/main.py, backend/config/**, backend/database/**, backend/socket/**, backend/middleware/** | Backend runtime composition |
backend/tasks/**, backend/worker/**, backend/api/**/task*, backend/…/convert_library.py | Background jobs and scheduling |
backend/handler/**/notification*, backend/models/**/audit*, backend/api/**/notification*, backend/tasks/**/cleanup* | Notifications and audit operations |