Show HN: RetroTick – Run classic Windows EXEs in the browser
retrotick.com97 points by lqs_ 4 hours ago
97 points by lqs_ 4 hours ago
RetroTick parses PE/NE/MZ binaries, emulates an x86 CPU, and stubs enough Win32/Win16/DOS APIs to run classics like FreeCell, Minesweeper, Solitaire and QBasic, entirely in the browser. Built with Preact + Vite + TypeScript.
Demo: https://retrotick.com
GitHub: https://github.com/lqs/retrotick
This is so cool & I'm really amazed by it but I couldn't help laugh at the readme > We strongly recommend contributing with Claude Code or similar AI coding tools. [...] Of course, coding by hand is also welcome. Funny time we live in lol Ha — even the README itself was written by AI, including that very sentence. Funny times indeed. Seems to run a lot faster than the previous proof-of-concept I've found (https://www.boxedwine.org/app). Then again, that website runs an entire Linux VM to support Wine. RetroTick's CPU emulation is actually slower than JIT-based emulators. It feels fast because the Win32 API calls are native JavaScript, not emulated system calls. Making this a partial WINE-in-a browser, quite impressive. How much of this was AI? Hidden feature: right-click any executable and select "View Resources" to browse its embedded resources like icons, bitmaps, dialogs, and version info. It even supports viewing Delphi forms (though Delphi programs can't actually run yet). Think of it as a browser-based Resource Hacker or eXeScope. Seems like the .scr files trigger CrowdStrike Falcon. Not clear where the executables run here come from... Just a couple of hours ago I was thinking about this project from some time ago doing the same thing: https://github.com/evmar/retrowin32 I wondered how much of this could be done with an LLM agent, and here we have the answer I actually contributed to retrowin32 to get Solitaire running there. Back then the only AI tool available was Copilot, and it took me several days just to get the main window showing, without menus or dialogs. The current state of RetroTick was achieved in less than one hour using Claude Code. Tried it with REVERSI.EXE from Windows 3.0 from https://winworldpc.com/download/c2bbc28f-177a-c2b2-5311-c3a4... DISK02.IMG (you have to first uncompress it, for example with 7zip). The game starts, it begins rendering the board, but then hangs. Really doesn't surprise me, to be honest: > We strongly recommend contributing with Claude Code or similar AI coding tools. Win16 GDI support is still pretty incomplete. There's a lot of work left to do there. Not sure shift is working. I tried using QBASIC but couldn't type : only ; because of that. Then I tried running the program SHELL and it crashed. Impressive. Noting however that double-clicking is not working in Minesweeper. :) Funny project... Tried to run SHELL from QBASIC, but it crashes: DOS interrupt support is still limited. Running SHELL would essentially require implementing a full MS-DOS COMMAND.COM, which is a significant undertaking. Please let me plan Sim Theme Park. I can't seem to run it on Crossover on my mac. Sim Theme Park is probably too modern and complex for the current state of RetroTick, unfortunately. Pretty cool. The pipes program doesn't seem to have color.
Thoughts on making programs launch from a URL parameter? IE Launching a screensaver or game? The missing colors are likely due to some texture bugs in the OpenGL implementation. As for URL-based launching, that's definitely on the roadmap, but I want to reach broader EXE compatibility first. This is super cool! Checkout retrowin32 for something similar but written in Rust and not specifically targeting the web:
https://github.com/evmar/retrowin32 Thanks! I'm actually familiar with retrowin32. I even contributed a few commits to get Solitaire running in it. But Rust has a steep learning curve for me. Not enough Shell32 to run Winfile or Notepad. Also the command prompt won't list directories for some reason. Notepad from Windows 2000 should launch now, though it's rendered as a simple textarea without full functionality. The file system API still needs a lot of work.
chromehearts - 4 hours ago
lqs_ - an hour ago
jeroenhd - 3 hours ago
lqs_ - an hour ago
pjc50 - 14 minutes ago
lqs_ - an hour ago
itintheory - 26 minutes ago
butokai - an hour ago
lqs_ - an hour ago
Tepix - 3 hours ago
Result: $ sha256sum REVERSI.EXE
a9e319c8f479d1568beec03858fdbb27c71747b2bbed6cd7c9f5e2daa23b40e9 REVERSI.EXE
fao_ - 3 hours ago
lqs_ - an hour ago
stuaxo - an hour ago
em3rgent0rdr - an hour ago
ale42 - 2 hours ago
D:\qbasic.exe has encountered a problem and needs to close.
Reason: illegal instruction
Address: 0x00002fee
lqs_ - an hour ago
TechSquidTV - 3 hours ago
lqs_ - an hour ago
haonnoah - 2 hours ago
lqs_ - an hour ago
LinusU - 3 hours ago
lqs_ - an hour ago
Dwedit - 3 hours ago
lqs_ - an hour ago