# MIRAGE-x86 Runs DOS, Linux, and Win32 Binaries in Plain JavaScript

> A new browser x86 PC emulator translates machine code to JavaScript without WebAssembly, running DOS games and Windows intros.

- Published: 2026-11-06T10:18:20Z
- Score: 7/10
- Tags: emulator, tool
- Port / platforms: PC (Windows) -> Browser, Linux / Steam Deck (Emulator)
- Web page: https://emu-radar.customfw.xyz/news/mirage-x86-js-pc-emulator/
- Sources: https://www.reddit.com/r/emulation/comments/1xotwcr/miragex86_a_new_pc_x86_emulator_in_100_pure_js/

MIRAGE-x86 ($https://github.com/jfrelat-lab/mirage-x86$), an open-source x86 PC emulator written entirely in plain JavaScript, has landed on the scene. Creator `/u/ReverseAI` built the project to push the limits of JavaScript by translating x86 machine code into JavaScript source code instead of relying on WebAssembly. 

Unlike traditional emulators that boot a full guest operating system, MIRAGE includes built-in implementations for DOS, Linux system calls, and the Win32 API. It handles raw `.COM`, ELF, and `.exe` binaries directly. According to the project site ($https://mirage-x86.pages.dev$), it reaches roughly 450 million x86 instructions per second in a Dhrystone run on an Apple M1. It uses the PRISM ($https://github.com/jfrelat-lab/prism$) submodule to send OpenGL and Direct3D 9 calls to WebGL2.

The project runs entirely client-side at its official site ($https://mirage-x86.pages.dev$). You can drop a binary onto the player or boot retro operating systems like FreeDOS, BeOS 5, and Windows 95 off disk images. Current limitations include a lack of 64-bit support, networking, and Windows XP compatibility.

The author says 100% of the code was written with Claude. Whether JavaScript recompilation can compete with WebAssembly, or stays a technical curiosity, depends on how far compatibility goes.
