Skip to content
montesluPublic

About

A zero-config cross-platform retro game library. Every game runs in its own crash-isolated player window, powered by retroemu's libretro WASM cores.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

romdeck

A zero-config, cross-platform retro game library. Point it at a folder of ROMs and get box art, save states, controller remapping, cheats, themes and a 10-foot mode, with every game running in its own crash-isolated window.

npx romdeck ~/ROMs

Optional ROM-specific widescreen WASM enhancements are described in docs/ACTIVE_BEZELS.md.

No installer, no bundled runtime, no browser. romdeck is a Node process that opens an SDL window and draws its UI with skia. Native code arrives as per-platform npm prebuilts or as WASM; nothing is a binary romdeck built or carries. See docs/Packaging.md.

Part of the romdev family: romdev (build ROMs) · retroemu (play ROMs) · retroterm (terminal frontend) · romdeck (desktop frontend).


Why it exists

OpenEmu had the best library UX in emulation and is now effectively dead: last release Dec 2023, Intel-only under a Rosetta 2 that Apple is sunsetting, RetroAchievements marked wontfix, netplay never shipped. Its structural flaw was hand-maintained forks of every emulator, with core updates gated on app releases: their Mednafen fork sat three years stale and the fix never reached users.

RetroArch has the power and the opposite problem: menu overload, jargon ("core", "content", "RetroPad"), and a config-scope model where a setting you changed silently reverts because it saved into a scope you didn't expect.

romdeck aims at the gap: friendly library UX with honest emulator power, cross-platform, on cores that update independently of the app.


What it does

Library

  • Drop in ROMs: recursive scan, ~25 systems, zip-aware. System is derived from the containing folder (roms/nes/…, matching ES-DE, RetroDECK and Batocera) with the file extension as a fallback, so zipped collections classify correctly.
  • CRC identification: header-stripped (iNES/A78/LNX) CRC32 matched against libretro-database DATs (No-Intro / Redump lineage, CC-BY-SA). Verified games get a ✓ badge and their canonical name. This rescues badly-named files: 05. some_dump-final2.gba gets back its canonical No-Intro name.
  • Box art from libretro-thumbnails, matched by the verified DAT name first. Stored in the ES-DE media layout, so external scrapers (Skraper, Skyscraper) interoperate.
  • Metadata in gamelist.xml: romdeck reads Batocera/RetroPie gamelists sitting next to your ROMs and writes its own ES-DE-dialect layer in userData. Your files are never modified.
  • Search, ★ favorites, play counts, last-played.
  • BIOS checker: 18 known firmware files with documented MD5s; reports present / wrong-hash / missing, and which are actually required.

Playing

  • Every game is its own process. A hung or crashing core costs one window; the library never dies, and multiple games can run at once.
  • Save states as self-describing bundles (info.json + screenshot.png
    • state.bin), with thumbnails, plus auto-save on exit and resume on next launch.
  • Pause, fast-forward, rewind, screenshots, fullscreen, from the library panel or the in-game overlay (Start+Select / ESC).
  • Cheats: Game Genie, GameShark/PAR, or raw address:value. The core decodes them (retro_cheat_set), so any format it supports works; RetroArch .cht files import directly.
  • CRT video filters: none / sharp / scanlines / crt.

Controllers

  • SDL gamepads via gamepad-node: hotplug, 2100+ mappings, no browser Gamepad API limitations.
  • Visual remapping with a live pad view: click a button, press yours. Bindings key on device GUID, so a controller keeps its layout across replugs, and cascade global → platform → game.
  • Per-player port assignment, deadzone, profile import/export.
  • Unplugging a pad pauses every running game (the tripped-cable case).

Themes & the ES view

  • EmulationStation / ES-DE XML themes, reimplemented in browser tech, including real community themes like Art Book Next, Modern and Slate, verified by a conformance harness on every change.
  • Themes are downloaded, not bundled. On first run romdeck installs Slate (~20 MB), the theme ES-DE ships as its desktop default, with real artwork, logos and controller diagrams for ~150 systems, so the first screen is a game library, not a wireframe. More are one click away in the picker, which shows each one's author, licence and size first. Nothing is shipped inside the package: community themes are CC-BY-NC-SA and up to 220 MB, and their console logos belong to their respective owners.
  • The themed view is the interface: romdeck launches into it, windowed, and fullscreen is a toggle rather than a separate mode. System carousel with real theme logos → gamelist → launch, with menus carrying every feature.
  • Themes drive both the themed view and the windowed desktop UI. Any ES-DE theme restyles the desktop with no romdeck-specific markup.
  • See docs/Themes.md.

Remote play: "a very long couch"

  • Host a game, get a share code, a friend joins as player 2. They need no ROM and no core, because your machine is doing the emulating.
  • P2P over WebRTC (hsync signals, then gets out of the way): changed-rows video, ADPCM audio (~6 KB/s), 7-byte input packets at 60 Hz.
  • Spectator mode. The emulator never learns it's networked; a remote guest is just another controller.
  • See docs/RemotePlay.md.

Extras

  • Developer mode: a live hex viewer over the running game, with changed-byte highlighting and a "find changed bytes" scan. No other frontend ships a debugger pointed at the game you're playing.
  • Homebrew feed: freely distributable games, one click to install, covering all three cart types romdeck plays (ROM / wasmcart / jsgame).
  • Core updates: installed romdev-core-* versions vs npm, because cores version independently of the app.
  • RetroAchievements (read-only: login, hash lookup, achievement list).

Install & run

Release bundle (no Node required)

Grab the archive for your platform from Releases, extract it, and run the launcher. The bundle carries its own Node.js runtime, the app, and every dependency; nothing else to install.

tar xzf romdeck-linux-x86_64.tar.gz
./romdeck-linux-x86_64/romdeck ~/ROMs

On Windows, extract the zip and run romdeck.cmd.

Linux releases also ship two one-file formats:

# AppImage
chmod +x romdeck-linux-x86_64.AppImage
./romdeck-linux-x86_64.AppImage ~/ROMs

# Flatpak (sandboxed; config lands in ~/.var/app/io.github.monteslu.romdeck)
flatpak install romdeck-linux-x86_64.flatpak
flatpak run io.github.monteslu.romdeck

Each release ships a SHA256SUMS.txt for every file.

From a checkout

npm install
npm start -- ~/ROMs

Requires Node ≥ 22. Cores, toolchains and the emulator all arrive as npm packages; nothing is installed system-wide.

The h264 decoder used for video snaps is built from ffmpeg to WASM and is optional; without it, snaps fall back to the static image:

npm run build:video

Controls

romdeck is gamepad-first. Unplug the keyboard and the mouse and every feature is still reachable. That is an acceptance test (--padonly), not an aspiration.

Input Action
Arrows / d-pad / left stick Move the focus ring
Enter / Ⓐ Select
Backspace / Ⓑ / ESC Back
Start / Tab Main menu: settings, controllers, themes, everything
Select or Ⓧ / Space Game menu: states, cheats, favorite, invite
[ ] / LB RB Switch system
F11 Fullscreen (a toggle, not a mode)
Start+Select or ESC (in game) Overlay menu

Text entry (search, cheat codes, share codes) uses an on-screen keyboard, so a pad is enough for those too. Dropdowns and sliders adjust with left/right rather than trapping the ring.

Where things live

<userData>/                        macOS: ~/Library/Application Support/romdeck
├── prefs.json                     ROMs dir, theme choice, RA/ScreenScraper creds
├── settings.json                  the settings cascade (global/platform/game)
├── controllers.json               device bindings, port order, deadzones
├── cheats.json                    per-game cheat codes
├── gamelists/<system>/gamelist.xml    romdeck's metadata layer (ES-DE dialect)
├── media/<system>/covers/*.png    box art (ES-DE media layout)
├── states/<gameKey>/<name>/       save-state bundles
├── saves/                         SRAM / battery saves, shared by all sessions
├── dats/*.json                    compiled identification indexes
├── bios/                          firmware (also reads <romsDir>/bios)
├── themes/<name>/                 downloaded themes (nothing is bundled)
└── screenshots/

Documentation

Doc What's in it
docs/Architecture.md Process model, module map, data flow, design decisions
docs/GameSession.md The player-process contract (every RPC method and event)
docs/Themes.md Theme format, supported subset, desktop tokens
docs/RemotePlay.md Wire protocol, share codes, bandwidth
docs/DeveloperMode.md Memory viewer and how to hunt a variable
docs/Packaging.md Building installers, and the four traps that bite

Project planning, research, milestone history and the maintainer handoff live outside this repo in internal-romdeck/ (not shipped with the app).

Self-checks

The app can verify itself headlessly, used in development instead of clicking around:

romdeck --smoke      <roms>   # boots, services round-trip, stage paints, paths jailed
romdeck --pathcheck  <roms>   # saves stay where they were; optional deps resolve
romdeck --padonly    <roms>   # THE acceptance test: no pointer, anywhere
romdeck --viewcheck  <roms>   # launch behaviour and view persistence
romdeck --autoplay   <roms>   # full session surface incl. relaunch-resume
romdeck --devcheck   <roms>   # + memory read/write against a live game
romdeck --cartcheck  <roms>   # ROM, wasmcart and jsgame all play
romdeck --snapcheck           # video snaps decode (WASM h264)
romdeck --realtheme <name> <roms>   # renders a real ES-DE theme, checks pixels
romdeck --joincheck <CODE> <roms>   # joins a live host through the UI

THEME_REPOS=1 node scripts/theme-conformance.mjs   # real themes, every combination

None of these need a display: the stage paints to an offscreen canvas, so they run the same in CI as on a desk. CI (.github/workflows/ci.yml) runs the unit tests, a syntax sweep, --smoke, --pathcheck, --padonly and --snapcheck against generated fixture ROMs on Linux and macOS, packs the npm tarball on Linux and Windows, and has a manual job that builds the WASM snap decoder.

Licensing

romdeck is GPL-3.0. The app is free and will stay free: several bundled cores (Snes9x, Genesis Plus GX, PicoDrive) are non-commercially licensed, and ScreenScraper's API terms require a free application. Data and assets keep their own licenses: libretro-database is CC-BY-SA, SDL_GameControllerDB is zlib, the bundled UI fonts are DejaVu Sans (Bitstream Vera) and GNU FreeSans (GPL-3.0-or-later with the font exception, attributed in assets/fonts/CREDITS.md), and community themes are individually licensed and fetched at runtime, never bundled. Every core's upstream lineage and license is listed in the app.

About

A zero-config cross-platform retro game library. Every game runs in its own crash-isolated player window, powered by retroemu's libretro WASM cores.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages