Skip to content

rommapp/romm

Repository files navigation

romm logo

A beautiful, powerful, self-hosted rom manager.


license-badge release-badge docker-pulls-badge

discord-badge unraid-badge wiki-badge

⚠️ Breaking changes in version 3.0 ⚠️

Version 3.0 introduces exciting new fetures that require some changes to how RomM is setup and configured. If you're currently running a 2.x version, please review the migration guide before upgrading.

Overview

RomM (ROM Manager) allows you to scan, enrich, and browse your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes and custom tags, RomM is a must-have for anyone who plays on emulators.

Features

  • Scans your existing games library and enchances it with metadata from IGDB
  • Supports a large number of platforms
  • Play games directly from the browser using EmulatorJS
  • Built-in authentication with multiple users and permissions
  • Supports MAME, Nintendo Switch and PS2 naming schemes
  • Detects and groups multifile games (e.g. PS1 games with multiple CDs)
  • Can parse tags in filenames (e.g. (E), (USA), (rev v1), etc.)
  • View, upload, update, and delete games from any modern web browser

Preview

🖥 Desktop 📱 Mobile

Installation

Before running the image, ensure that Docker is installed and running on your system.

  1. Generate an API key for IGDB and set the IGDB_CLIENT_ID and IGDB_CLIENT_SECRET variables. This step is essential for running a library scan. Instructions for generating the ID and Secret can be found here. Note that IGDB requires a Twitch account with 2FA enabled to generate the ID and Secret.
  2. Verify that your library folder structure matches one of the options listed in the folder structure section.
  3. Create a docker-compose file. Refer to the example docker-compose.yml file for guidance. Customize it for your setup and include the IGDB_CLIENT_ID and IGDB_CLIENT_SECRET variables in the environment section of the file.
  4. Launch the container(s) with docker-compose up -d

Troubleshooting

If you are having issues with RomM, please review the wiki page for troubleshooting steps and common issues.

Configuration

Folder Structure

As mentioned in the installation section, RomM requires a specific folder structure to work. The two supported structures are as follows:

Structure A (recommended) Structure B
library/roms/gbc/rom_1.gbc library/gbc/roms/rom_1.gbc
        library/
        ├─ roms/
        │  ├─ gbc/
        │  │  ├─ rom_1.gbc
        │  │  ├─ rom_2.gbc
        │  │
        │  ├─ gba/
        │  │  ├─ rom_1.gba
        │  │  ├─ rom_2.gba
        │  │
        │  ├─ ps/
        │     ├─ my_multifile_game/
        │     │   ├─ my_game_cd1.iso
        │     │   ├─ my_game_cd2.iso
        │     │
        │     ├─ rom_1.iso
      
        library/
        ├─ gbc/
        │  ├─ roms/
        │     ├─ rom_1.gbc
        │     ├─ rom_2.gbc
        │
        ├─ gba/
        │  ├─ roms/
        │     ├─ rom_1.gba
        │     ├─ rom_2.gba
        │
        ├─ ps/
        │  ├─ roms/
        │     ├─ my_multifile_game/
        │     │  ├─ my_game_cd1.iso
        │     │  ├─ my_game_cd2.iso
        │     │
        │     ├─ rom_1.iso
      

For folder naming conventions, review the Platform Support section. To override default system names in the folder structure (if your directories are named differently), see the Configuration File section.

Configuration File

RomM can be configured with a config.yaml file. Anytime that file is change, you must restart the container for changes to take effect. Refer to the config.example.yml file and the docker-compose.example.yml for guidance on how to configure it.

Authentication

If you want to enable authentication and the user management system, a redis container is required, and some environment variables needs to be set. Complete instructions are available in the wiki.

Scheduler

The scheduler allows to scheduled async tasks that run in the Redis container at regular intervals. Jobs can be run at a specific time in the future, after a time delta, or at recurring internals using cron notation.

Jobs can be toggled using these environment variables:

ENABLE_SCHEDULED_RESCAN: Whether to rescan on a schedule
SCHEDULED_RESCAN_CRON: Cron expression for scheduled rescan
ENABLE_SCHEDULED_UPDATE_SWITCH_TITLEDB: Whether to update the switch title database on a schedule
SCHEDULED_UPDATE_SWITCH_TITLEDB_CRON: Cron expression for scheduled switch title database update
ENABLE_SCHEDULED_UPDATE_MAME_XML: Whether to update the MAME XML on a schedule
SCHEDULED_UPDATE_MAME_XML_CRON: Cron expression for scheduled MAME XML update

Scheduled rescan

Users can opt to enable scheduled rescans, and set the interval using cron notation. Not that the scan will not completely rescan every file, only catch those which have been added/updated.

Switch titleDB update

Support was added for Nintendo Switch ROMs with filenames using the titleid/programid format (e.g. 0100000000010000.xci). If a file under the switch folder matches the regex, the scanner will use the index to attempt to match it to a game. If a match is found, the IGDB handler will use the matched name as the search term.

The associated task updates the /fixtures/switch_titledb.json file at a regular interval to support new game releases.

MAME XML update

Support was also added for MAME arcade games with shortcode names (e.g. actionhw.zip -> ACTION HOLLYWOOD), and works in the same way as the titleid matcher (without the regex).

The associated task updates the /fixtures/mame.xml file at a regular interval to support updates to the library.

Watchdog

A watchdog was added which monitors the filesystem for events (files created/moved/deleted) and schedules a rescan of the platform (or entire library is a new platform was added).

Jobs can be toggled using these environment variables:

ENABLE_RESCAN_ON_FILESYSTEM_CHANGE: Whether to rescan when the filesystem changes
RESCAN_ON_FILESYSTEM_CHANGE_DELAY: Delay in minutes before rescanning on filesystem change

The watcher will monitor the /library/roms folder for changes to the filesystem, such as files being added, moved or deleted. It will ignore certain events (like modifying the file content or metadata), and will skip default OS files (like .DS_Store on mac).

When a change is detected, a scan will be scheduled for sometime in the future (default 5 minutes). If other events are triggered between now and the time at which the scan starts, more platforms will be added to the scan list (or the scan may switch to a full scan). This is done to reduce the number of tasks scheduled when many big changes happen to the library (mass upload, new mount, etc.)

Naming Convention

Platform Support

If you adhere to the RomM folder structure, RomM supports all platforms listed on the Supported Platforms page. The folder is is case sensitive and must be used exactly how it appears in the list. When scanning your library, RomM will use the folder name to determine the platform and fetch the appropriate game information, metadata, and cover art.

Additionally, some of these platforms have custom icons available (learn more about platform icons in our wiki).

Tag Support

Games can be tagged with region, revision, or other tags by using parentheses in the file name. Additionally, you can set the region and language by adding a prefix: (USA), [reg-J], (French), [De].

  • Revision tags must be prefixed with "rev " or "rev-" (e.g. (rev v1) or (rev-1))
  • Other tags will also be imported, for example: my_game [1.0001](HACK)[!].gba

Tags can be used to search for games in the search bar. For example, searching for (USA) will return all games with the USA tag.

Community

Here are a few projects maintained by members of our community. As they are not regularly reviewed by the RomM team, we recommend you closely review them before use.

Join us on discord, where you can ask questions, submit ideas, get help, showcase your collection, and discuss RomM with other users.

discord-invite

Support

If you like this project, consider buying me a coffee!

coffee-donate

Our Friends

Here are a few projects that we think you might like:

  • EmualtorJS: An embeddable, browser-based emulator
  • RetroDECK: Retro gaming on SteamOS and Linux
  • ES-DE Frontend: Emulator frontend for Linux, macOS and Windows
  • Gaseous: Another self-hosted ROM manager