* Tell a device when the save it holds was deleted here Deleting a save took its row, its file and its device pairings, leaving nothing that says it ever existed. A negotiation then read a client still holding the save as a client with a save the server lacks, answered "upload", and the next launch put the deleted save back. There was no way to say "this is gone": the protocol's actions are upload, download, conflict and no_op. So a slot emptied on purpose is now remembered. `deleted_saves` keeps one row per (user, rom, slot) with what the slot held and when it was emptied, written by the delete endpoint, which is the only place a deletion is the owner's decision rather than housekeeping: autocleanup rotating a version out leaves newer rows in the slot and is never recorded. Negotiation reads it only when the slot has no row left, and answers the new "delete" action when the client's copy is the one that went: the same content hash, or a copy last written before the deletion. Anything written after it is progress the server never held, so that still answers "upload" -- emptying a slot is not a licence to delete a newer save. The generated frontend models are hand-edited to match: this environment has only CPython 3.14.0rc2, which the locked pydantic cannot import, so the backend will not start for `npm run generate`. Both edits are mechanical (the new literal in the union, the new count field), and `npm run typecheck` passes against them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Decide a deletion by identity, and record it before the row goes Three real findings from the review, and the layering rule. The record was written after the save row and its file were gone, with two transactions and a filesystem removal between them. Anything failing in that window left a deletion nothing remembered, which is the resurrection this change exists to prevent. It is written first now: a record for a save that is somehow still there is never read, because a negotiation only consults it when the slot has no row left. The client's copy was matched on its own timestamp against the server's deletion time. Those clocks are not comparable, and a device running slow would have been told to delete progress it made after the deletion. The match is now identity alone: the slot remembers every version it lost, capped at the twenty most recent, and a client holding any of them is told to drop it. Anything else is offered back, which costs a deletion that does not reach that device rather than a save that is gone. Recording replaced the row with a delete and an insert, which two deletions of the same slot could race into a uniqueness error. It locks the row and merges into it, with the house savepoint-and-catch for the case where there is no row yet to lock. The comparison itself moves to handler/sync/comparison.py beside compare_save_state, where the endpoint delegates to it and the rule is tested on its own. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Trim the new comments to the repo's rule One or two lines each, with the rationale in the commit messages and the PR description where the rule puts it. The model's docstring is one sentence, and the comparison keeps its Args and Returns. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Sort comparison imports Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Widen the window a deletion is remembered in A slot's record keeps a bounded list of the versions it lost, and the trim drops the oldest, which are exactly the ones a long-offline device is likeliest to still hold. At twenty, a device that missed twenty delete-and-refill cycles of one slot comes back with a digest that has aged out and is answered `upload`, which puts a deleted save back. Raised to a hundred, where the device would have had to miss a hundred manual deletions of the same slot. The residual is deliberate and cannot be designed away by a longer list alone: past the bound the server does not know those bytes were deleted, and the answer degrades to `upload`, which fails by not propagating a deletion rather than by destroying a save. A test now names that case so the next reader meets it as a choice rather than as an oversight. Found by Greptile on #4674. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Trim the retention comments back to the rule Both were over the two-line limit, and the constant's was a six-line design essay of exactly the kind the last round of this review already removed from this PR. The reasoning belongs in the commit that made the change and in the pull request, where it is. What stays is the part the code cannot say: the trim drops the oldest, and past the bound a device is answered `upload` rather than `delete`. Found by Greptile on #4674. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015B86R6sN9CZ2uAWXCB9Y3U * Name the deletion record for assets, not only saves Unreleased, so the table can take a name that states can share later without another migration. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Apply code-review fixes to deletion records Record a deletion in short separate transactions so concurrent first deletions no longer deadlock on MariaDB, hash a save that never recorded one, keep a re-deleted version from being trimmed, scope the negotiation's read to emptied slots, and require total_delete. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Simplify deletion records Drop the unread deleted_at column, record from _delete_save so every caller of it is covered, skip a record no hash could ever match, let comparison decide delete vs upload with its reason, count actions once, and fold the near-duplicate tests. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Polish the deletion record's index comment Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Overview
Scan, enrich, browse and play your ROM collection from one beautiful & free self-hosted app. Metadata from 10+ providers, save sync across your devices, and support for over 400 platforms. RomM is a must-have for anyone who plays on emulators.
Features
- Play in your browser with EmulatorJS and RuffleRS, no setup required
- Keep saves and states in sync across your devices, with conflict resolution
- Scan and enrich your library with metadata from IGDB, Screenscraper, LaunchBox and MobyGames
- Fetch custom artwork from SteamGridDB and track your achievements from Retroachievements
- Metadata available for 400+ platforms, plus multi-disk games, DLCs, mods, hacks and manuals
- Apply romhacks and translations on the fly with the built-in ROM patcher
- Share your library with granular per-user permissions and OIDC single sign-on
- Official apps for Playnite, Android and CFWs
- Free forever: AGPL-3.0, no tracking, no paid features, and total control of your data
Installation
The easiest way to start is with the Quick Start Guide in the docs. If you're having trouble with setup, please review the page for troubleshooting steps.
Prefer a hosted deploy over wiring up the stack yourself?
Starting at $6.49/mo · Setup guide
Deployment and infrastructure support for this install is handled by Hostinger. Prices are indicative and may not reflect current offerings. Signups through the link above send a share of the revenue back to us, which helps fund the project.
Official apps

Playnite plugin
Effortlessly integrate your retro game collection into Playnite, the open-source game library manager that provides a unified interface for all of your games on PC.
Windows Desktop QR pairing
by @gantoine

Argosy
Sync your library, download games on demand and track your achievements, from a gamepad-first interface designed for Anbernic, Retroid Pocket, Odin, and similar devices.
Android Handhelds QR pairing Save sync
by @tmgast

Grout
A lightweight client for your favorite handheld custom firmwares*. Download games, box art and BIOS files wirelessly, and sync your saves automatically as you play.
Linux Handhelds Save sync
*Supports Allium, Batocera, Knulli, MinUI, muOS, NextUI, Onion, ROCKNIX, Spruce and TrimUI.
Community
Here are some cool projects maintained by members of our community. Please note that our team does not regularly review their source code.
Mobile
- romm-ios-app: Native iOS app by @ilyas-hallak
Desktop
- RetroArch Sync: Sync RetroArch library with RomM by @Covin90
- RomMate: Desktop app for browsing your collection by @brenoprata10
- romm-client: Desktop client by @chaun14
- Freegosy: All-in-one game manager by @abduznik
Handhelds
- DeckyRommSync: SteamOS downloader and syncer by @danielcopper
- SwitchRomM: Homebrew NRO for Switch by @Shalasere
Other
- romm-comm: Discord bot by @idio-sync
- GGRequestz: Game discovery and request tool by @XTREEMMAK
- Syncthing sync: Small tool to push a Syncthing library to RomM by @amn-96
Support the project
Consider supporting this project on Open Collective. Funds cover hosting, development, and maintenance, and we pass some along to community projects to nurture a healthy ecosystem of apps.
Our Friends
Here are a few projects that we think you might like:
- Lutris: Open gaming platform for Linux
- Cocoon: Controller-first Android frontend for retro handhelds
- muOS: Custom firmware for Anbernic and other handhelds
- RetroDECK: Retro gaming on SteamOS and Linux
- Steam ROM Manager: An app for managing ROMs in Steam
- Hasheous: Hash lookup service that maps ROMs to game metadata
- Gaseous: Another ROM manager with web-based emulator
- Playmatch: Microservice for matching ROM hashes to games
- EmulatorJS: An embeddable, browser-based emulator
- PortMaster: Native game ports for Linux handhelds
- MelonLoader: Universal mod loader for Unity games
- NextUI: MinUI-based custom firmware for TrimUI handhelds
- RetroAchievements: Achievements for retro games
Supported By
These companies support us by providing their tools for free:

