An x86 PC in plain JavaScript.

DOS games, Linux programs and the demoscene's Windows intros, run from their original binaries in this tab. MIRAGE translates x86 machine code into JavaScript source, one basic block at a time, and lets the browser's own JIT compile it — no WebAssembly, no plug-in, no operating system to boot.

x86 code → decoder → JavaScript source → new Function → the browser's JIT
Elevated (RGBA & TBC, 4K, 2009): the Windows executable, unmodified, running in MIRAGE.

Programs come as OASIS images: recipes that fetch a program's files from where their authors published them, and say which machine it needs — like a Docker image, for the PC of 1990.

450 Mx86 instructions per second, compiled to JavaScript (Dhrystone on MIRAGE-LINUX, Apple M1)
6.7 sBYTE's Sieve in the page: 730.7 M instructions — DOSBox-X 6.2 s, v86 7.1 s, PCjs 64.3 s, same host
1997gcc 2.7.2 builds id's X11 DOOM from its sources inside MIRAGE, and XFree86 3.3 plays it — on no Linux kernel at all

Benchmarks beside v86, CheerpX, js-dos, DOSBox-X and QEMU → · What each can do →

Windows, with no Windows

Games as they shipped — id's, Epic's, SDL's — and the demoscene's 4K and 1K intros, their Win32 API, DirectDraw, DirectSound, OpenGL and Direct3D 9 written in JavaScript — no Windows, no Microsoft DLL. Their 3D goes to WebGL2 through PRISM. Each one is fetched from where its authors published it when first run. Every screenshot here was taken by MIRAGE itself, and 🔊 sound marks what was heard playing.

Linux, with no kernel

Linux programs as they shipped — id's games on SVGAlib, XFree86 3.3 and Mesa of 1997 — and the demoscene's Linux intros, from 1K to 256 bytes. Linux's system calls are answered in JavaScript. OASIS images fetch their files from Debian's, idgames' and scene.org's own archives, through a small relay of this site; nothing of theirs is copied here. Every image's recipe →

DOS

Games and demos on MIRAGE's own DOS — a BIOS, XMS, EMS and a DPMI host written in JavaScript, no DOS image. Everything here may be redistributed; each card links to its licence and its source.

Loading…

Boot

MIRAGE's bare PC starts disks from its BIOS: a whole FreeDOS disk and boot sectors of 512 bytes, to run here, then operating systems taken to their desktop from their own disks. Those disks are not ours to share, so they are screenshots — taken by MIRAGE itself — and the button opens the bare PC set up for that system: boot your own copy, nothing is uploaded.

Screenshots of Microsoft products used with permission from Microsoft. Windows is a trademark of the Microsoft group of companies; MIRAGE is not affiliated with or endorsed by Microsoft.

More

Bring your own

Drop a .COM, an .EXE or a folder on the DOS player, or boot a floppy, disk or CD image on the bare PC. Nothing leaves your browser. MIRAGE ships no system or game from anyone else: use what you may.

What it runs

Windows 3.0 to ME, NT 3.51 and 2000 to the desktop, BeOS 5, Linux 2.2 and 2.4, the BSDs, FreeDOS; Linux programs from 1994 to today; DOS games with XMS, EMS and DPMI. Not yet: Windows XP and later, ReactOS, Haiku, networking, 64-bit. Every title, dated →

Checked, not assumed

CPU test vectors and test386; probe programs run unchanged on QEMU and MIRAGE; screens compared pixel for pixel with QEMU, DOSBox-X and v86; Linux programs against Docker. How it is tested →

Like what MIRAGE does? A star on GitHub helps others find it.

★ Star on GitHub Read the docs