TestOS
Pick a year on a timeline and the real Mac or NeXT operating system from then boots in your browser.
Open source · Nov 2026
- Personal project · Open source
- Nov 2026
- Sole developer · product, architecture, interface and testing
Problem
Showing someone what computers used to feel like usually means setting up an emulator and hunting for disk images, and hosting Apple software is a legal line a small project should not cross. I wanted a page where you pick a year and the machine of that year just starts, with nothing redrawn or imitated and no copyrighted system on my server.
The build
- A timeline launcher with six systems from 1984 to 2005: System 1, System 7.5.3, Mac OS 8.1, Mac OS 9.2.2, NeXTSTEP 3.3 and Mac OS X 10.4. They run the original code in WebAssembly emulators, through Infinite Mac’s public embed, so the site hosts no Apple software.
- One Machine interface with an adapter per engine, so you switch eras without reloading: the running machine is torn down before the next one powers on.
- A second engine, v86, that runs PCs (FreeDOS, KolibriOS and Windows from a disk image you supply, kept only in your browser). It is built and tested but off in the public build, and a size check fails the build if any PC software slips in.
- Hardening and failure paths: a strict Content Security Policy, cross-origin isolation, a sandboxed Mac frame, and a clear message with a way out for offline, a frozen guest, full storage or a corrupt save, each covered by a browser test.
Outcome
First commit on 23 Nov 2026 and an open-source release (MIT, v0.1.0) on 27 Nov, with a self-hosting guide and a Docker image. It is not deployed yet, so the source is the link. Known limits: the Macs need a connection to infinitemac.org and a mouse to enter, because the embed swallows Tab and Esc.
Numbers
- 6 Mac and NeXT systems on the public timeline, 1984 to 2005
- 86 KB of gzipped JavaScript on first load, against a 90 KB budget enforced in CI
- 100 system switches in each nightly soak test, which fails if anything is left behind
- 3 browser engines tested: Chromium, Firefox and WebKit
Stack
React, TypeScript, Vite, WebAssembly, v86, Infinite Mac, OPFS, Service worker, Vitest, Playwright, Docker, GitHub Actions
Links
Projects
Javier Cruz Villarreal · contact@javicruz.dev