Develop a browser-based PS2 emulator with Claude
A developer used Claude (Opus 5.5) to write core code, building the TabStationToo PS2 emulator directly inside browser tabs using the PCSX2 core alongside WebAssembly and WebGPU technologies. The project successfully implements local file reading, code transpilation, and automated benchmarking.
Reddit r/ClaudeAI/u/yousriii
Claude (Opus 5.5)PCSX2WebAssemblyWebGPU
Added 2026-10-31 · originally published 2026-10-29
Steps
- 1Create a CLAUDE.md or AGENTS.md rule file in the codebase and have Claude read it at the start of each session to clarify project background, browser constraints, build and test methods, and rules.
- 2Have Claude adapt the PCSX2 core code to run in the browser, writing code to transpile the PS2 code into WebAssembly during gameplay while comparing results against the original code to ensure consistency.
- 3Port the PCSX2 graphics renderer to WebGPU.
- 4Use Claude to write a headless, non-graphical version that automatically boots the PS2 BIOS after every modification, runs a few hundred frames, and captures screenshots for benchmarking.
- 5Have Claude check pixel consistency across the rendering and log every optimization attempt along with its results.
- 6Open the emulator webpage, select the BIOS and your own disc image folder, and start playing.
Copy-ready prompt
Help me write the core transpilation and optimization module for a browser-based project. The current project rules and constraints are specified in [project rule file name, e.g. CLAUDE.md]. Please transpile the code from [original core library] into [target technology, e.g. WebAssembly/WebGPU] to run in the browser, ensure the test results are completely identical to the original code, and implement automated testing and logging logic.
#Claude#WebAssembly#Emulator Development#Coding Practice
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.