
ps2-web-recomp
Run PlayStation 2 games in the browser via WebAssembly
GamesOpen sourceOpen source · verified#emulation#webassembly#retro-gaming
Listed by the ProductPerch team from Hacker News · not launched here yet
What is ps2-web-recomp?
ps2-web-recomp translates PlayStation 2 game executables into WebAssembly for direct execution in modern web browsers. Instead of interpreting the Emotion Engine processor, the tool statically recompiles the game code into C++ and compiles it ahead of time. A separate runtime emulates the console operating system and hardware, handling graphics output through WebGPU.
The project includes scripts that take a user-supplied disc image and generate a standalone web page on the local machine. It uses HTTP range requests to stream game data efficiently, downloading only the executable initially. Tested titles include Gran Turismo 4 and God of War II, which run at full speed with preserved audio, memory card saves, and accurate floating-point behavior.
This approach bypasses traditional interpreter overhead by maintaining the original R5900 architecture quirks, including vector unit timing and branch delay slots. The repository provides the conversion tools and runtime, while all game assets must be provided by the user.
ps2-web-recomp features
- Static recompilation of PS2 machine code to WebAssembly
- WebGPU-based hardware acceleration for rendering
- Local conversion scripts for user-provided disc images
- HTTP range request support for efficient disc streaming
- Accurate emulation of PS2 floating point and vector units
- Browser-based memory card save functionality
- Runs tested titles at native console frame rates
Who uses ps2-web-recomp and for what
- Play classic PlayStation 2 titles directly in a web browser
- Test high-performance WebAssembly compilation techniques
- Preserve and access legacy console software without physical hardware
- Stream large game assets efficiently using HTTP range requests
- Develop custom web-based players for older console architectures
ps2-web-recomp FAQ
Is ps2-web-recomp free?
Yes, the project is released under an MIT license and requires no payment to use.
What is ps2-web-recomp used for?
It converts PlayStation 2 game executables into WebAssembly so they can run natively in a web browser with a WebGPU runtime.
Do I need to buy the game to use ps2-web-recomp?
The repository does not include any game data. You must provide a disc image of a game you own, and the provided scripts will convert it into a local web page.
Does ps2-web-recomp work on Mac?
The website does not say.
Is ps2-web-recomp open source?
Yes, the source code is publicly available on GitHub under an MIT license.
Comments (0)
Comments and upvotes open when this product launches on ProductPerch.
More Games launches
Browser gymnastics game for players who enjoy physics flips
Daily common answer guessing game in your browser
Steal the Dream Crystal and climb back out alive.

Free Clash Royale deck finder, War builder & minigames
Calm Android mahjong solitaire with a yard between boards