Build a procedural space exploration game with 150 million star systems

A Redditor spent four days directing Claude Code on Fable 5.2 to write Voidstruck, a WebGPU space game with 150 million seeded star systems and landable planets, in one 299 kB HTML file.

Done withClaude Code· Nov 18, 2026

What they did

The poster, a fan of large space exploration games, set out to make one that runs in a browser from a single file. Over four days and about 170 commits they made the design and taste decisions while Claude Code, running Fable 5.2, wrote all the code: roughly 9,400 lines of JavaScript and WGSL shaders, bundled by esbuild into one file. Everything is generated from a seed on arrival: stars, planets, moons, names, terrain, weather, plants and animals. There are no images, models, audio files or libraries. The game has a story about jumping back to Earth, mining, bases, ship upgrades, raiders, four ships and a hardcore mode. Its ten music tracks are synthesised in the browser.

How it went

The result is a free, playable game at 299 kB that runs offline in Chrome or Edge on desktop with WebGPU. Every non-gas planet can be landed on and explored on foot or by jetpack. The game rules are kept apart from the drawing code, and 192 automated tests run whole journeys home outside the browser. The poster rejected the space stations four times and picked music by ear, because Claude cannot hear what it writes. It does not run on phones and has not been tested in Firefox or Safari.

Worth knowing

The 299 kB is the download only; the poster confirmed in the comments that the game builds its worlds in memory and on the GPU while you play, so it still uses RAM. Splitting the rules from the rendering is what made the game testable by the agent. The poster said an earlier single-file underwater world by another Redditor gave them the push to start.

Try it

With Claude Code· 5 parts to fill in

Write a [genre] browser game as one self-contained HTML file under [size] kB. Use WebGPU with no libraries, images, models or audio files: generate every [world, creature, name] from a seed when the player arrives, and synthesise music in code. Start with [core loop, e.g. fly between stars and land on planets], then add [features] one at a time. After each step, tell me what to test and wait for my feedback before moving on. For music, give me two or three options per track to choose from by ear. Stop when the core loop plays end to end in Chrome on desktop.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related