Game library catalog
RomM's game library catalog turns a filesystem library and physical game list into a searchable set of ROM, platform, file, metadata, collection, and user-data records. It keeps file identity separate from game identity so scans, metadata updates, play progress, downloads, and client views can change without losing their links.
Catalog model
The catalog gives each game one stable ROM record. That record connects to a platform, its files, descriptive data, collections, and user-owned activity.
ROM and platform records
A ROM record is RomM's central game record. It joins the filesystem name and path with file facts, hashes, parsed filename values, display data, provider matches, artwork, platform-native identity, and missing-file state (backend/…/rom.py• L834-1134). A ROM belongs to one platform. A platform supplies the stable catalog group and keeps that identity separate from the filesystem name used to find its files.
The catalog supports both file-backed and physical games. A file-backed ROM points to library files and can be marked missing when those files leave the scan view. A physical ROM represents an owned game with no file on disk, so it remains visible as a catalog item but does not enter file actions or missing-file updates (backend/…/rom.py• L1125-1134, backend/…/rom.py• L1330-1340, backend/…/__init__.py• L1843-1957).
ROM identity has two layers. Hashes and platform-native values identify the content and the save target. Provider identity keys identify releases of the same game on one platform, which lets browse views group siblings without merging their separate files (backend/…/rom.py• L268-379, backend/…/rom.py• L1111-1123).
Displayed names, alternative titles, and sort values form the browse identity. Search can use provider or manual aliases, while an explicit user sort key can stay stable when the displayed title changes (backend/…/rom.py• L167-222, backend/…/rom.py• L1174-1186, backend/…/rom.py• L1363-1371).
References: backend/…/rom.py• L167-222 backend/…/rom.py• L268-379 backend/…/rom.py• L834-1134 backend/…/rom.py• L1174-1186 backend/…/rom.py• L1330-1371 backend/…/__init__.py• L1843-1957
Files and associated assets
RomFile is the catalog unit for a file owned by a ROM. It can represent the main game file, a nested file, archive members, or related content such as downloadable content, patches, manuals, walkthroughs, music, and screenshots. The record carries hashes and category data so the same file set can support matching, browsing, playback, and download decisions (backend/…/rom.py• L420-537). Document files have source and title details, and users have per-file reading progress (backend/…/rom.py• L601-658).
ROM assets add user activity without changing shared game metadata. Saves and states belong to a user and a ROM when attached. They can be private or public, carry owner-only labels and favorites, and keep emulator, core, device, mounted-disc, and content identity where that context is needed for resume and sync (backend/…/assets.py• L95-310). Save and state rows can become detached when their ROM is deleted, then reattach if a later scan restores the matching ROM; this protects user progress from a temporary loss of the catalog record (backend/…/assets.py• L102-141).
Screenshots support both automatic save/state thumbnails and user-uploaded gallery items. Gallery screenshots can be public, while thumbnails stay tied to their save or state and follow that content's lifetime (backend/…/assets.py• L143-171).
Memory cards are user-owned emulator assets rather than ROM assets. One card can serve several games in the same emulator scope, while version rows preserve its data history. The platform link is only a display hint, so the emulator—not the hinted platform—keeps the card available across compatible games. Public sharing gives another user a copy or snapshot instead of edit access to the owner's card (backend/…/assets.py• L311-386). Asset files use separate user paths and content hashes. Archive checks keep restored content inside its asset folder and limit its expansion (backend/…/assets_handler.py• L40-47, backend/…/assets_handler.py• L73-127, backend/…/assets_handler.py• L332-428).
Playthrough channels and snapshots add a history layer above saves and states. A channel is a user's playthrough of one ROM file and points to its current snapshot. A snapshot is a fixed checkpoint that may contain a save and a bank of emulator states. Parent links, branch kinds, public state, and device attribution preserve the playthrough history when devices write from different points (backend/…/channel.py• L17-59, backend/…/snapshot.py• L21-100). Device-channel sync records the last snapshot a device saw or applied, so sync can compare a device's base with the channel's current point without changing the ROM record (backend/…/device_channel_sync.py• L12-40).
Firmware belongs to a platform rather than to a ROM. RomM records its file identity and known-BIOS status, then can verify it by platform and name or by content when a valid BIOS was renamed or moved (backend/…/firmware.py• L25-105).
References: backend/…/rom.py• L420-537 backend/…/rom.py• L601-658 backend/…/assets.py• L95-310 backend/…/assets.py• L311-386 backend/…/channel.py• L17-59 backend/…/snapshot.py• L21-141 backend/…/device_channel_sync.py• L12-40 backend/…/assets_handler.py• L40-47 backend/…/assets_handler.py• L73-127 backend/…/assets_handler.py• L332-428 backend/…/firmware.py• L25-105
Collection views
Collections organize the same ROM records into views beyond their platform. Standard collections store explicit membership. Virtual collections describe metadata facets such as genre, franchise, publisher, developer, region, language, or tag. Smart collections store rules and a cached result set. None of these views copy the ROM record (backend/…/collection.py• L19-248).
Publisher and developer remain separate catalog values while the older company value stays available. These values drive filters and virtual collections, so metadata changes can change a ROM's collection view (backend/…/rom.py• L661-701, backend/…/__init__.py• L1361-1366). RomM refreshes affected smart-collection membership after catalog and user-status changes instead of waiting for a later page request (backend/…/collections_handler.py• L602-708, backend/…/__init__.py• L241-263, backend/…/__init__.py• L2645-2654).
References: backend/…/collection.py• L19-248 backend/…/rom.py• L661-701 backend/…/collections_handler.py• L602-708 backend/…/__init__.py• L241-263 backend/…/__init__.py• L1361-1366 backend/…/__init__.py• L2645-2654
Catalog lifecycle
The catalog lifecycle starts with filesystem or user input and ends with records that clients can browse, play, download, sync, and export. Later scans reconcile the same records and refresh the derived data that depends on them.
Filesystem discovery and reconciliation
RomM discovers ROM files through the configured platform structure. A file at the game level becomes a single-file ROM. A game folder becomes a multi-file ROM whose related files can be categorized by their folders. Excluded names and hidden folders stay outside the catalog (backend/…/roms_handler.py• L1315-1389).
Scanning parses names, records file facts, reads hashes where supported, and can read platform-native identity from content. It reuses unchanged file data when possible. Archive and disc formats keep the outer file as the catalog file while exposing the content identity needed for matching (backend/…/roms_handler.py• L791-810, backend/…/roms_handler.py• L1021-1128, backend/…/roms_handler.py• L1169-1263).
When a file moves, reconciliation can match it to a missing record by content identity. This preserves collections and user data. Entries that disappear become missing instead of being removed at once. Physical ROMs stay outside this file-missing path because they have no filesystem entry (backend/…/scan.py• L377-394, backend/…/scan.py• L424-482, backend/…/rom.py• L1125-1134).
Filesystem operations enforce a library boundary and use safe, atomic writes. This keeps upload, rename, scan, and resource paths inside their configured roots while avoiding a partial file that looks complete to the next scan (backend/…/base_handler.py• L383-461, backend/…/base_handler.py• L501-525, backend/…/base_handler.py• L640-733). See Library scanning and filesystem handling for scan modes and directory rules.
References: backend/…/roms_handler.py• L791-810 backend/…/roms_handler.py• L1021-1128 backend/…/roms_handler.py• L1169-1263 backend/…/roms_handler.py• L1315-1389 backend/…/base_handler.py• L383-461 backend/…/base_handler.py• L501-525 backend/…/base_handler.py• L640-733 backend/…/scan.py• L377-482 backend/…/rom.py• L1125-1134
Upload intake
Uploads add new file content to a platform or to an existing ROM. A chunked upload owns a short-lived session, accepts bounded chunks, assembles them in order, and commits the result only after all chunks arrive. A streamed upload uses the same destination and registration path for related ROM files (backend/…/upload.py• L205-247, backend/…/upload.py• L298-393, backend/…/upload.py• L396-482, backend/…/upload.py• L523-570).
An upload into a ROM can add a categorized file without replacing the main game file. The destination stays inside the selected ROM or platform, and the scanner must be able to register the chosen category. After placement, RomM refreshes the target ROM's file record; an upload that cannot be indexed is not treated as a complete catalog update (backend/…/upload.py• L250-273, backend/…/rom_upload.py• L63-249).
Manuals, walkthroughs, screenshots, and soundtracks use category-specific intake. Walkthrough records preserve whether content came from an upload or a validated GameFAQs source. Manuals can replace provider content or remain user-owned through the ROM's locked-field state (backend/…/manual.py• L34-177, backend/…/walkthrough.py• L51-216, backend/…/screenshot.py• L24-50, backend/…/soundtrack.py• L26-83, backend/…/rom.py• L298-309).
References: backend/…/upload.py• L205-247 backend/…/upload.py• L250-273 backend/…/upload.py• L298-393 backend/…/upload.py• L396-482 backend/…/upload.py• L523-570 backend/…/rom_upload.py• L63-249 backend/…/manual.py• L34-177 backend/…/walkthrough.py• L51-216 backend/…/screenshot.py• L24-50 backend/…/soundtrack.py• L26-83 backend/…/rom.py• L298-309
Metadata and user-owned values
Metadata enrichment adds names, summaries, provider matches, normalized fields, artwork, manuals, screenshots, ratings, and play-time data to a filesystem record. Hash-aware providers can identify a file before name matching. Name-based providers then use the cleaned filesystem title and platform, while provider outages or no-match results do not turn a scan into a new game (backend/…/hasheous_handler.py• L332-425, backend/…/hltb_handler.py• L523-617, backend/…/scan_handler.py• L152-180, backend/…/scan_handler.py• L1044-1089). See Metadata enrichment for provider matching and refresh rules.
Normalized metadata includes genres, companies, publishers, developers, release data, player count, regions, languages, tags, ratings, and completion times. A narrow facet record follows the values used by filters and avoids rebuilding filter choices from every raw provider payload (backend/…/rom.py• L661-765).
User-owned values are protected from later scans by durable field locks. An uploaded cover or manual stays in place until the user removes the lock or asks for provider content again. A direct match edit can refetch the selected provider and refresh related media, while an explicit unmatch clears provider-owned values without removing protected user content (backend/…/rom.py• L1070-1085, backend/…/manual.py• L116-177, backend/…/__init__.py• L2115-2161, backend/…/__init__.py• L2219-2454).
References: backend/…/hasheous_handler.py• L332-425 backend/…/hltb_handler.py• L523-617 backend/…/scan_handler.py• L152-180 backend/…/scan_handler.py• L1044-1089 backend/…/rom.py• L661-765 backend/…/rom.py• L1070-1085 backend/…/manual.py• L116-177 backend/…/__init__.py• L2115-2161 backend/…/__init__.py• L2219-2454
Derived data and maintenance
The catalog keeps derived views beside the main ROM data so common browse tasks stay fast. Facets mirror filter values. Identity keys support sibling lookup. Smart collections cache saved rules. Search titles, minimum age, and file-state values are kept current with ROM changes (backend/…/rom.py• L339-379, backend/…/rom.py• L704-765, backend/…/rom.py• L1489-1537, backend/…/collections_handler.py• L602-708).
ROM list responses can include a character index, ordered ROM IDs for virtual scrolling, and filter values for the caller's current scope. Shared sidecar caches are limited to unscoped views and include the user, ordering, grouping, and change versions that can alter the result (backend/…/__init__.py• L266-295, backend/…/__init__.py• L811-982).
The query layer applies search, platform and collection scope, metadata filters, user status, file state, and visibility as one result definition. It can group releases that share a provider identity while retaining the selected ROM ID for file and user actions. Filters and visibility apply before grouping, so a hidden or non-matching sibling cannot represent a visible group (backend/…/roms_handler.py• L1499-1874).
Maintenance runs as a scheduled or manual task. Scan completion refreshes smart collections and invalidates filter data. Resource cleanup removes asset directories that no longer have database records, but it avoids treating an unavailable or empty database as proof that all resources are orphaned (backend/…/scan_library.py• L25-73, backend/…/cleanup_orphaned_resources.py• L116-211).
This diagram shows how library or user input becomes a catalog record and how later changes feed back into the same record.
flowchart LR
A[Library file or physical game] --> B[Platform and ROM record]
B --> C[Files and identity]
B --> D[Metadata and artwork]
B --> E[Collections and facets]
B --> F[User assets and play history]
C --> G[Browse, play, download, and export]
D --> G
E --> G
F --> G
H[Filesystem or user change] --> I[Scan or targeted refresh]
I --> B
References: backend/…/rom.py• L339-379 backend/…/rom.py• L704-765 backend/…/rom.py• L1489-1537 backend/…/__init__.py• L266-295 backend/…/__init__.py• L811-982 backend/…/roms_handler.py• L1499-1874 backend/…/scan_library.py• L25-73 backend/…/cleanup_orphaned_resources.py• L116-211
Catalog interfaces
The catalog exposes one resource model to the web client, emulators, sync clients, device install clients, web players, and external catalog tools. Each interface applies the caller's visibility rules and omits file actions when a record has no usable file.
Browsing, content, and exports
ROM list and detail views support search, hash lookup, metadata filters, user state, collection scope, and optional sibling grouping. List responses can also carry the indexes and filter values needed for virtual scrolling and filter controls. Lightweight views support cards, while detailed views load the relationships needed for user actions (backend/…/__init__.py• L692-982, backend/…/__init__.py• L1374-1436, backend/…/rom.py• L301-403). See Catalog data and API operations for response and route contracts.
ROM content is served as one file for a simple entry or as an archive for a multi-file entry. RomM can generate a playlist for multi-disc content and can negotiate a compatible format for a single-file download. File routes resolve the parent ROM before returning file data, while trusted catalog category and name data control inline viewing and download behavior (backend/…/__init__.py• L1461-1513, backend/…/__init__.py• L1610-1839, backend/…/files.py• L45-178). Manuals and walkthroughs also expose per-user reading progress. Soundtracks expose track metadata, search, and user favorites (backend/…/files.py• L243-347, backend/…/soundtrack.py• L26-141).
Exports and device feeds turn visible file-backed records into formats used outside the web client. Physical and missing ROMs stay out of file-only feeds (backend/…/feeds.py• L101-193, backend/…/feeds.py• L647-727, backend/…/rom.py• L1330-1340).
References: backend/…/__init__.py• L692-982 backend/…/__init__.py• L1374-1436 backend/…/__init__.py• L1461-1513 backend/…/__init__.py• L1610-1839 backend/…/files.py• L45-178 backend/…/files.py• L243-347 backend/…/soundtrack.py• L26-141 backend/…/feeds.py• L101-193 backend/…/feeds.py• L647-727 backend/…/rom.py• L1330-1340
EasyRPG game assets
The EasyRPG interface exposes a supported RPG Maker 2000/2003 game as catalog-backed assets for the web player. It checks the visible ROM and its present files, returns a generated index, and serves only named game or shared RTP assets. The player therefore loads the assets it needs without receiving the whole ROM as one download (backend/…/easyrpg.py• L40-87).
References: backend/…/easyrpg.py• L40-87 backend/…/rom.py• L1440-1455
ROM patch output
ROM patching is an on-demand operation. It applies one patch source to a visible library file and returns a temporary result. A patch can come from another visible library file or from an uploaded file, and neither the uploaded input nor the output becomes a catalog record (backend/…/patch.py• L38-80, backend/…/patch.py• L211-290).
The operation checks the base and patch visibility, file presence, supported type, and size before reading bytes. It can target an archive member and reports whether the patch source checksum matched the base. Temporary input and output files are removed after the response (backend/…/patch.py• L86-127, backend/…/patch.py• L158-208).
References: backend/…/patch.py• L38-80 backend/…/patch.py• L86-127 backend/…/patch.py• L158-208 backend/…/patch.py• L211-290
Device install requests
Device install requests connect a visible ROM to a device-side install flow. When the feature is enabled, a caller with both device-read and ROM-read access can see pending and taken requests for that ROM. The request list does not change the ROM record (backend/…/installs.py• L21-37).
References: backend/…/installs.py• L21-37
Recommendation delivery
The catalog exposes similar games that already exist in the library. A request checks the caller's visibility and reads a precomputed similarity graph, then returns scored ROM records with reasons. Recommendations therefore stay inside the catalog rather than pointing to external provider titles (backend/…/__init__.py• L1391-1419). See Recommendation delivery for scoring and feed lifecycle.
References: backend/…/__init__.py• L1391-1419
Visibility and synchronization
Visibility is part of every catalog interface. RomM combines role, permission group, per-user overrides, ownership limits, hidden platforms and ROMs, and age rules into the caller's effective catalog view. The same checks apply to list results, direct IDs, siblings, collection members, feeds, files, assets, patches, install requests, EasyRPG assets, and similar games (backend/…/permissions.py• L40-216, backend/…/files.py• L57-106, backend/…/patch.py• L94-110, backend/…/easyrpg.py• L55-67).
Save, state, channel, and memory-card data can move between devices. Sync compares content and snapshot context, reports upload, download, conflict, or no-op work, and treats a requested ROM scope as read-only. Leaving a ROM out of a scope does not delete its server data (backend/…/sync.py• L71-139, backend/…/sync.py• L179-315, backend/…/device_channel_sync.py• L12-40).
References: backend/…/permissions.py• L40-216 backend/…/files.py• L57-106 backend/…/patch.py• L94-110 backend/…/easyrpg.py• L55-67 backend/…/sync.py• L71-139 backend/…/sync.py• L179-315 backend/…/device_channel_sync.py• L12-40
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to ROM identity, file hashes, or provider identity keys must preserve scan reconciliation, physical-game exclusion from file actions, sibling grouping, recommendation exclusions, and user assets.
- Changes to platform or filesystem identity must keep scan paths, firmware paths, resource paths, feed lookup, and API display fields aligned.
- Changes to file categories must update document viewing, soundtrack discovery, patch selection, feed selection, EasyRPG asset selection, upload folders, and top-level file rules.
- Changes to metadata fields or provider matching must update normalized responses, facet data, smart-collection criteria, search aliases, age visibility, and provider-owned media.
- Changes to locked fields must keep upload, redownload, unmatch, complete-rescan, and metadata-priority behavior consistent.
- Changes to ROM list filters or grouping must keep visibility, representative choice, character indexes, ordered IDs, filter values, and sidecar cache versions aligned.
- Changes to upload or filesystem paths must preserve session ownership, chunk completeness, path safety, atomic placement, file registration, and cleanup on failure.
- Changes to saves, states, screenshots, channels, snapshots, or memory cards must keep owner sharing, content identity, device attribution, snapshot history, emulator scope, screenshot lifetime, and sync state aligned.
- Changes to visibility must cover direct resources as well as list results, collection members, siblings, feeds, music, firmware, assets, patches, install requests, EasyRPG assets, and downloads.
- Changes to patching or EasyRPG delivery must preserve parent-ROM checks, file presence checks, temporary-file cleanup, safe paths, and feature-disabled behavior.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A moved file does not match its missing ROM by content identity. | RomM creates a second ROM and leaves collections or user data on the old record. | Reconcile new entries with missing records before insertion (backend/…/scan.py• L424-482). |
| A provider identity key is missing or crosses platforms. | Sibling groups and grouped browse results merge the wrong releases or split one game. | Scope identity by provider, platform, and provider ID (backend/…/rom.py• L339-379). |
| A physical or missing ROM enters a file-only operation. | The client offers playback, download, or export for a record without usable bytes. | Use the file-on-disk rule and file-only query filters (backend/…/rom.py• L1330-1340, backend/…/__init__.py• L1645-1651). |
| A scan overwrites a user-owned cover or manual. | A refresh replaces content supplied by the user. | Record and honor locked fields; clear them only on explicit handover (backend/…/rom.py• L1070-1085, backend/…/manual.py• L116-165). |
| Filter aggregation ignores caller visibility. | Filter choices reveal metadata from hidden ROMs or platforms. | Apply the same visibility scope before aggregating filter values (backend/…/__init__.py• L844-875). |
| A cached sidecar is reused for another user, sort, group, or narrowed filter. | Letter jumps and virtual-scroll positions describe the wrong ROM set. | Cache only permitted unscoped views and include result-changing versions in the key (backend/…/__init__.py• L266-295, backend/…/__init__.py• L811-829). |
| A direct file, patch, or EasyRPG request skips the parent-ROM visibility check. | Hidden catalog data or bytes become visible. | Resolve the parent ROM and check visibility before serialization or serving (backend/…/files.py• L57-106, backend/…/patch.py• L94-110, backend/…/easyrpg.py• L62-79). |
| Upload completion runs with missing chunks or a reused session. | The library receives partial content or two requests race for one destination. | Require the full chunk set and atomically claim the session before assembly (backend/…/upload.py• L523-570). |
| Bytes reach the library but the ROM file row is not refreshed. | The catalog cannot browse or serve the new file. | Commit through the shared upload registration path and report an indexing failure (backend/…/rom_upload.py• L208-249). |
| A restored archive contains unsafe paths or expands past its limit. | Asset extraction can escape its folder or consume excessive storage. | Reject traversal, links, excess entries, and excess expansion before extraction (backend/…/assets_handler.py• L40-127). |
| A channel or snapshot loses its device or parent context. | Sync can select the wrong progress point or hide a conflict as a normal update. | Keep origin device, base snapshot, current snapshot, and parent links with the playthrough history (backend/…/channel.py• L35-59, backend/…/snapshot.py• L51-85, backend/…/device_channel_sync.py• L23-40). |
| A memory card is scoped by its display platform instead of its emulator. | A card is unavailable to another platform driven by the same emulator. | Scope lookup by user and emulator; use platform only as a hint (backend/…/assets.py• L326-355, backend/…/assets_handler.py• L395-404). |
| A detached save or state is treated as permanently lost when its ROM row is deleted. | A later rescan cannot reconnect the user's progress to the restored ROM. | Preserve detached content and reattach it through the matching ROM and file identity (backend/…/assets.py• L102-141). |
| Cleanup sees resource directories while the database is unavailable or empty. | Valid artwork and media are deleted. | Skip cleanup unless forced when platform state cannot prove resources are orphaned (backend/…/cleanup_orphaned_resources.py• L140-150). |
Key files
| File | Why to read it |
|---|---|
| backend/…/rom.py | Defines the central ROM record, files, provider identity, physical-game state, metadata, facets, search, file-state rules, notes, and user relationships. |
| backend/…/platform.py | Defines platform identity, filesystem identity, discovery fields, firmware linkage, and catalog totals. |
| backend/…/collection.py | Defines standard, virtual, and smart catalog views. |
| backend/…/assets.py | Defines saves, states, screenshots, memory cards, content identity, sharing, owner annotations, and asset history. |
| backend/…/channel.py | Defines a user's playthrough target and its current snapshot. |
| backend/…/snapshot.py | Defines checkpoint, branch, conflict, state-bank, and snapshot-sharing concepts. |
| backend/…/device_channel_sync.py | Defines the device's last-known channel snapshot for sync decisions. |
| backend/…/roms_handler.py | Shows how configured library paths become ROM and file records and how hashes, archives, categories, and platform identity are read. |
| backend/…/base_handler.py | Shows the path boundary and atomic file rules used by library writes and reads. |
| backend/…/assets_handler.py | Shows user asset paths, safe archive handling, and content hashing. |
| backend/…/scan.py | Shows how scans reconcile filesystem entries with existing catalog records. |
| backend/…/scan_handler.py | Shows how scan input, provider data, physical records, and locked values meet. |
| backend/…/roms_handler.py | Shows search, filters, grouping, file reconciliation, identity-key maintenance, cache versions, and derived list indexes. |
| backend/…/collections_handler.py | Shows how virtual and smart collection membership stays current. |
| backend/…/__init__.py | Shows the main browse, detail, physical-game, content, update, identity, similar-game, and delete interfaces. |
| backend/…/upload.py | Shows the chunked and streamed upload lifecycle and target validation. |
| backend/…/rom_upload.py | Shows shared path safety, category checks, placement, and ROM file refresh. |
| backend/…/files.py | Shows parent-ROM visibility, trusted file delivery, document progress, and file deletion. |
| backend/…/manual.py | Shows manual ownership, provider handover, and manual intake. |
| backend/…/walkthrough.py | Shows walkthrough upload, GameFAQs import, provenance, and deletion. |
| backend/…/easyrpg.py | Shows how visible RPG Maker files become an asset feed for the EasyRPG web player. |
| backend/…/patch.py | Shows how stored or transient patches produce temporary output. |
| backend/…/installs.py | Shows how visible ROMs expose device install requests. |
| backend/…/hasheous_handler.py | Shows hash-based matching and normalized signature data. |
| backend/…/hltb_handler.py | Shows name-based matching and completion-time data. |
| backend/…/permissions.py | Shows how roles, groups, overrides, hidden entities, and age rules become catalog access. |
| backend/…/sync.py | Shows device negotiation for save and state changes. |
| backend/…/cleanup_orphaned_resources.py | Shows safe reconciliation of derived resource directories with database records. |
| Catalog data and API operations | Child page for detailed schemas, routes, exports, firmware, music, and asset contracts. |
| Library scanning and filesystem handling | Child page for discovery, directory layouts, reconciliation, missing records, and cleanup. |
| Metadata enrichment | Child page for provider matching, priority, normalization, artwork, and refresh behavior. |
| Recommendation delivery | Child page for similar-game scoring, recommendation feeds, and cache refresh. |