Skip to content
← All projects
Project

RetroArch Web Games

Listen to the audio story

Retro games in your browser · 1:22 · AI-written script, synthetic voices

Transcript

Ava: Imagine opening a browser tab and playing a classic NES or Super Nintendo game, from a server you run yourself. That's RetroArch Web Games.

Andrew: So the whole arcade, hosted at home?

Ava: Pretty much. Antoine packaged RetroArch, the emulator frontend, running in the browser, together with games for NES, SNES, Genesis and Game Boy in a single Docker image. You start it with docker compose up, and you've got a self-hosted web player.

Andrew: And the games come with it?

Ava: Yes, pre-loaded. Scripts inside the image do the legwork: a bash function and a Python script download the game archives from several sources, then bash and Python rename the files and sort them into folders so RetroArch can list them cleanly. Downloads run in parallel with threads, and failures are reported instead of passing silently. It's like a librarian who fetches the books and shelves them for you.

Andrew: Where does the image come from?

Ava: It builds on the retroarch-web work from Inglebard's Dockerfiles and the Emscripten package from the RetroArch project. It's published on Docker Hub under the MIT license.

Andrew: Is there a related project?

Ava: FlashGames, a small collection of legacy Flash games preserved for modern browsers with Ruffle.

Andrew: Browser-based retro gaming, in one command. The project page has the details and the links.

Table of contents

RetroArch Web Games

retroarch-web-games: Docker Retroarch Web with pre-downloaded games.

Self-hosted RetroArch in the browser with NES, SNES, Genesis, and Game Boy games packaged in a Docker image.

Features

  • Pre-loaded games for NES, SNES, Genesis, and Game Boy
  • Self-hosted web player
  • Docker / Docker Compose deploy

How to Use

To get started, run the Docker image with the following command:

docker-compose up -d

Download HERE

https://hub.docker.com/r/antoinebou13/retroarch-web-games

Image Size Warning

Note: The Docker image is approximately 10GB due to the inclusion of various games.

Script Explanation

### Behind the Scenes: Scripting for Game Downloads

Scripts in the image download and organize game archives:

1. **Batch downloading of game archives:**
   The `download_7z_files` bash function and a Python script fetch archives from several sources.

2. **Renaming and sorting games:**
   Bash and Python rename files and sort them into directories so RetroArch can list them cleanly.

3. **Parallel downloads and errors:**
   Bash jobs and Python's ThreadPoolExecutor run downloads in parallel; failures are reported instead of failing silently.

## Acknowledgements

This Docker image is based on:

- [Inglebard/dockerfiles (retroarch-web branch)](https://github.com/Inglebard/dockerfiles/tree/retroarch-web)
- [libretro/RetroArch (master/pkg/emscripten)](https://github.com/libretro/RetroArch/tree/master/pkg/emscripten)

### License

MIT License.

### Source

"https://archive.org/download/nointro.gb"
"https://archive.org/download/nointro.gbc"
"https://archive.org/download/nointro.gba"
"https://archive.org/download/nointro.snes"
"https://archive.org/download/nointro.md"
"https://archive.org/download/nointro.nes-headered"