
A Dark Room
Minimalist open source text adventure: light a fire, build a village, then cross a hostile world. Free in your browser, or self-host it.
Open source alternative to:




A Dark Room is a minimalist text adventure and incremental game by Michael Townsend (Doublespeak Games), first released as a browser game in 2013 and inspired by Candy Box. You wake in a dark room with a throbbing head and a fire to light. From that one room the game grows into a village builder, then a resource economy with woodcutters, hunters, trappers and a trading post, and finally a turn-based expedition across a procedurally generated world map full of ruins, battlefields and worse.
The game deliberately withholds information: numbers stay hidden, descriptions are terse, and progress is measured by new buildings and events rather than stat sheets. Later runs can carry over some stores and your score through a prestige system, and a destroyed village cache appears on the new map where supplies can be recovered. There is no account, no server and no multiplayer; saving happens automatically in the browser.
The entire game is open source under the Mozilla Public License 2.0. It is plain HTML, CSS and JavaScript (with jQuery), and ships with an Express dev server for local play, so any static host can serve it. Doublespeak also sells paid editions on the iOS App Store, Google Play and Steam; this repository is the free browser edition, and it redirects mobile browsers to those paid apps. Community translations cover more than 20 languages, selectable with the lang URL parameter.
Categories:
Build with:
Frequently Asked Questions
How do I run A Dark Room on my own server?
Clone the repository, run npm install (or yarn), then npm start. The bundled Express dev server serves the game on port 8080. The game itself is a folder of static HTML, CSS and JavaScript files, so any static web server can host it, and there is no database or backend to set up.
Does A Dark Room save my progress?
Yes. The game saves automatically to your browser's localStorage, so progress lives on that device and browser. The game menu also lets you export your save as a base64 text string and import it again, for example to move a run to another computer or keep a backup.
Does A Dark Room work on phones and tablets?
The browser build detects mobile browsers and redirects them to a page linking the paid iOS and Android apps, so the web release is meant for desktop browsers. The engine does include swipe gestures and touch handling, which is what the mobile editions are built on.
Which languages does A Dark Room support?
Community translations ship for more than 20 languages, including Chinese, French, German, Greek, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Turkish, Ukrainian and Vietnamese. You choose one with the lang URL parameter, for example ?lang=de, and the game remembers the choice in local storage.
Is there a New Game+ mode?
Yes, through a prestige system. When you finish a run, some of your stored resources and your score carry over to the next game, and a destroyed village cache appears on the new world map where you can recover supplies. Older saves gain the cache landmark automatically once prestige data exists.
OpenAltFinder Score
Project Details
Repository details
Updated 11/20/2026, 11:00:57 AM
View RepositoryGet the latest open source alternatives delivered weekly.
Discover tools that give you freedom from proprietary software.




