PS2 Web Recomp on GitHub: The Repo, License & How to Use It
Where PS2 Web Recomp lives on GitHub (snuri00/ps2-web-recomp), what the MIT-licensed repo contains, the port-and-serve workflow, build requirements, and why no game builds ship with it.
PS2 Web Recomp lives on GitHub at snuri00/ps2-web-recomp — the official (and only) home of the project that runs PlayStation 2 games in the browser through static recompilation to WebAssembly. This page is the practical guide to the repo: what's actually in it, what the license allows, the requirements for building a port on your own machine, and the exact workflow from cloned repo to a game running in your browser.
For what the project is and how it differs from traditional emulation, the project explainer and the static recompilation guide cover the foundations first.
The Repo at a Glance
| Fact | Detail |
|---|---|
| Location | github.com/snuri00/ps2-web-recomp |
| Author | snuri00 (Samir) |
| License | MIT (with a BSD 2-clause notice for IPU tables adapted from the Play! emulator) |
| Attention | Went viral after its October 2026 wave — Hacker News, blog coverage, trending trackers |
| Community traction | Roughly 1.4k stars in its early growth phase |
| What ships | The recompilation toolchain and runtime — no game data |
The project's attention spike matters mostly as context: this is an active, early-stage project gaining contributors and fixes quickly, which means repo documentation and compatibility notes evolve between visits. When this page and the README disagree, trust the README — it's the project's own voice.
What's Actually in the Repository
Three layers, each with a distinct job:
1. The recompilation tool (eerecomp). The core innovation: it reads a PS2 game's executable, follows its control flow to discover every function, and emits C++ in 16 KiB units of guest code. The Emotion Engine's machine code becomes compiled C++ — never interpreted at runtime.
2. The runtime. Everything the recompiler can't translate gets emulated: a high-level PS2 kernel, an interpreter for the I/O processor's R3000 CPU, vector units pre-compiled to SIMD C++ where possible, the Graphics Synthesizer via WebGPU compute shaders, SPU2 audio, and the IPU's MPEG-2 decoder for full-motion video.
3. The scripts. The workflow glue — most importantly scripts/port.sh (builds a game port end-to-end) and scripts/serve.py (serves a built game locally with the exact cross-origin headers the runtime requires).
The Build Requirements
Building a port runs on your machine, and the requirements are specific:
- Toolchain: git, CMake, Ninja, a C++20 compiler (clang preferred), Python 3, and 7-Zip for compressed disc images
- Platform: Linux x86-64 is the tested platform; macOS on Apple silicon also builds (it needs a newer bash via Homebrew first)
- Disk: roughly 300 MB per game ported — the recompiled C++ units and build artifacts add up
- Input: a disc image of a game you own, in ISO, BIN/CUE, ZIP, or 7z format
- Browser (to play the result): anything with WebGPU — Chrome or Edge on Windows/macOS; Linux needs
chrome://flags/#enable-unsafe-webgpuand#enable-vulkanenabled first. The browser requirements guide details the client-side picture.
The Workflow: Clone → Port → Serve → Play
Four steps from repo to running game:
# 1. Clone the repo
git clone https://github.com/snuri00/ps2-web-recomp
cd ps2-web-recomp
# 2. Port a game from your own disc image
scripts/port.sh mygame "My Game.iso"
# 3. Serve the build locally (headers handled automatically)
python3 scripts/serve.py build/web-mygame games/mygame/disc.iso
# 4. Play
# Open http://localhost:8620/
The port step is where the magic and the wait both live: port.sh runs the game headless repeatedly, logging unreachable entry points and vector unit programs, then re-translating until coverage is clean. That iterate-until-clean loop is why ports take real time and why well-behaved games port faster than exotic ones — a game that misbehaves (Kingdom Hearts II's self-modifying code is the documented example) needs special capture handling.
A second output path exists for desktop users: the repo also builds a native runner (ps2run, via SDL2 and wgpu-native) — the same runtime compiled as a desktop program instead of a browser app, selectable with --native-only. The browser build remains the project's headline; the native runner is its sibling.
Why No Game Builds Ship With the Repo
The repo contains zero game data, and that's deliberate, with two supporting reasons:
Technical: the toolchain builds each port from a specific game executable — there's no "the PS2 Web Recomp" build, only per-game ports generated by whoever runs the tool.
Legal: the project's own documentation states it plainly — no game data is included, and generated builds legally belong to the game's rights holders and shouldn't be published. The MIT license covers the toolchain code; it cannot and does not cover the games. Anyone hosting "ready-made PS2 Web Recomp builds" of commercial games is outside the project's terms entirely — the legality guide walks the full picture, and the practical rule is simple: bring your own disc.
Following the Project
The repo is the only authoritative source for compatibility updates, new game bring-ups, and fixes. Watching the repository (or checking its commit history periodically) is how you track whether a game you care about has moved from experimental to playable — Gran Turismo 4's full-speed status is the documented benchmark the project's compatibility news gets measured against.
When builds misbehave — halts on unimplemented syscalls, WebGPU trouble, header issues — the troubleshooting guide covers the common patterns, and the repo's issue tracker is where the genuinely new ones get reported upstream.
FAQ
Where is PS2 Web Recomp's GitHub repo?
github.com/snuri00/ps2-web-recomp — that's the official repository, MIT-licensed, maintained by the original author. Any other host claiming to be the project is a mirror at best.
Is PS2 Web Recomp free and open source?
Yes — MIT license for the toolchain and runtime (with a BSD 2-clause notice covering IPU tables adapted from the Play! emulator). Free to use, modify, and build on; the license covers the code, not any games you port with it.
Why doesn't the repo include games?
Two reasons: technically, each port is generated per-game by running the tool on a disc image; legally, generated builds belong to the games' rights holders and must not be published. You port games you own.
What do I need installed to build a port?
git, CMake, Ninja, a C++20 compiler (clang preferred), Python 3, and 7-Zip — on Linux x86-64 (tested) or macOS Apple silicon. Budget about 300 MB of disk per game and a disc image you own as input.
Can I run games without a browser?
Yes — the repo also builds a native desktop runner (ps2run, via SDL2/wgpu-native, selectable with --native-only), so the same port runs outside the browser. The browser remains the project's primary target.
Verwandte Guides
Browser Requirements for PS2 Web Recomp: The Two-Minute Check
What your browser and hardware need to run PS2 Web Recomp ports — WebGPU support by browser and platform, the settings that break it, and the mobile reality.
How to Play PS2 Games in Your Browser: The Walkthrough
The step-by-step path to playing PS2 Web Recomp ports — the browser check, finding hosted ports, controls, saves and what differs from native play.
PS2 Emulator Browser Download: Why There's Nothing to Install
Searching for a PS2 emulator browser download? PS2 Web Recomp ports run entirely in your browser — no installer, no BIOS file, no plugin. Here's why that matters and what to watch for.
PS2 Emulator Browser for Android: What Works Today (2026)
Can you run PS2 games in an Android browser? The honest answer about WebGPU on mobile, what PS2 Web Recomp needs, and the native Android emulators that work today.