What Browser Games Are Built With: Stacks From Real Persistent Games

The languages, databases, tick systems and hosting behind real persistent browser games, from open repositories and developers' own write-ups. Patterns builders can reuse.

Most persistent browser games are a web application, a relational database and a clock. The older ones we could inspect run PHP on MySQL or MariaDB. The newer ones run TypeScript on Node.js with PostgreSQL or SQLite. The language matters less than three choices underneath it: where the game state lives, how time moves forward, and whether the server pushes updates or the browser asks for them. Below are the stacks of seven real games, taken from their public code or from their developers’ own write-ups, and the patterns they share.

How we know what these games run on

We only used sources that state the stack outright: a public repository, its README and config files, or a post by the developer. We did not guess a stack from response headers or cookie names. Public code is rare. Fewer than one in fifty of the games we list link to a code repository, and only three carry our open-source tag.

Game Server Database How time moves Browser updates
Space Merchant Realms PHP on Apache, Docker Compose MySQL Turns computed on request AJAX auto-refresh
OpenDominion PHP, Laravel MariaDB Hourly tick from the scheduler Not documented
TheNinja-RPG Next.js, tRPC MySQL (PlanetScale driver) Hosted cron jobs Pusher-protocol websockets
Adventure Land Node.js, Express MongoDB Live game servers Socket.IO
MineThings 2 Node.js SQLite Not published “Live updates”
Inselnova TypeScript PostgreSQL One-second loop, resources computed on read Client extrapolates
CinderHold TypeScript, Fastify PostgreSQL, Redis Progress settled on request Polling, plus sockets

The stacks, one by one

Space Merchant Realms publishes its engine on GitHub under the AGPL. One Docker Compose file starts PHP on Apache, MySQL, Traefik for TLS, a mail relay, and three command-line services: a Discord bot, an IRC bot and the NPC traders. Schema changes are numbered SQL patches applied by Flyway.

OpenDominion, a remake of a game that ran from about 2000 to 2012, is PHP on Laravel with MariaDB, also AGPL. Its README says it is “powered by player donations”.

TheNinja-RPG is the clearest example of a hosted-services stack. Its README lists Next.js, tRPC and Drizzle, with Clerk for logins. The config template adds a Pusher-compatible websocket service, Upstash Redis and a MySQL database through PlanetScale’s driver. The README admits some of these services are “next to impossible to replicate locally, but provide free (or very cheap) tiers”. The code is public but has no licence.

Adventure Land started on Python 2 and Google App Engine’s Datastore, with Node.js game servers alongside. The original repository now opens with a notice that the game has “Moved Out of Cloud”. It cites constant 500 errors and says “costs were astronomical”. The new edition is Node.js with Express, Socket.IO and MongoDB.

MineThings 2 is a rebuild. Its history page says the original ran on CakePHP 1.2, PHP, MySQL, Python and CentOS. The restoration reconstructed the game in Node.js and SQLite. The old application was “treated as evidence and never executed by the public server”.

Inselnova is TypeScript: 179,101 lines by its developer’s count in April 2026. Its tests run against an in-memory SQLite database. Its coding rules warn that SQLite-only SQL “silently fails on PostgreSQL”, which tells you what production runs on.

CinderHold runs a TypeScript server; its commit log lists Fastify and Redis in the stack. Its launch-night runbook from July 2026 lists six containers: the game server, PostgreSQL 16, Redis 7, Caddy for TLS, the web client and a landing page.

One industry note for scale. In a 2016 retrospective, InnoGames said Tribal Wars 2 started with one PHP backend for every client. A JavaScript browser client and PhoneGap-wrapped mobile apps sat on top of it. The wrapped apps were the weak point: after six months the team switched to native apps, and the mobile release slipped by about a year.

Pattern 1: the server owns the state

Each of these games keeps the real numbers on the server and treats the browser as a view. Inselnova’s controllers check that you own the island, bring its resources up to date, finish anything already due, and only then check you can afford a build. CinderHold shows why the rule holds even for progress bars. Players reported skilling items arriving about 12 seconds late. The bar ran on the browser’s clock, but the item only banked when the server settled the action, and the browser asked on a generic eight-second poll. The fix was to request the settle at the moment the action completes. A test now pins the client’s duration to the server’s.

Pattern 2: three ways to move time

Compute it when someone looks. Space Merchant Realms stores a timestamp of each player’s last turn update. On the next request it works out how many turns have accrued from elapsed time and the ship’s speed in turns per hour. No background job is needed for turns. Inselnova does the same for resources: snapshot plus rate times hours elapsed, capped at storage. Its tick-engine post quotes the code comment: a player who does not log in for a month “causes zero DB writes”.

Run a global tick from cron. OpenDominion’s scheduler runs the game tick on the hour, the bot dominions at half past, and bot invasions every five minutes. Laravel’s scheduler needs a single cron entry that fires every minute. The tick itself is cheap because each dominion’s next-hour changes are worked out in advance into a separate table. On the hour, one SQL update inside a transaction adds them to every dominion. TheNinja-RPG gets the same effect from hosted cron: daily, hourly and ten-minute jobs, each calling an API route.

Run a loop in the server process. Inselnova’s tick engine is one setInterval firing once a second. It checks an in-memory list of due events sorted by time. Every timed action writes an absolute completion timestamp to the database, so after a crash the server reloads pending events and processes anything overdue. Timers carry no game state; handlers read the current state when they fire. A duplicate timer does nothing. “There’s no cron, no queue, no Redis, no external scheduler,” the developer writes. Adventure Land, a real-time world with movement and combat, runs dedicated Node game servers that clients stay connected to.

Players feel these choices as pacing, which we covered in energy bars, ticks or real time.

Pattern 3: a boring relational database

Six of the seven use MySQL, MariaDB, PostgreSQL or SQLite. Adventure Land is the exception, on MongoDB after leaving Google’s Datastore. Every SQL game whose code or notes we read manages schema changes as migrations. That matters more than the engine: a long-running world needs every change written down. Space Merchant Realms’ README notes one cost of an old choice. Its MySQL tables use MyISAM, which cannot roll back transactions, so its tests truncate tables after each run.

Pattern 4: push or poll

Polling is the default and it works. Space Merchant Realms refreshes parts of the page on a timer, swapping in fragments returned as XML. CinderHold polls for state. Inselnova sends the client a per-hour rate and lets the browser count up on screen, so the resource counter needs no pushes. Push arrives where seconds matter: Socket.IO for Adventure Land’s live world, a websocket service for TheNinja-RPG. CinderHold has socket connections as well; its error log mentions socket ping timeouts during deploys.

Pattern 5: hosting is cheap until it is not

CinderHold’s playtest ran on one Linode Nanode with 961 MB of RAM and one shared CPU. At the measured peak, about 72 concurrent players, the load average was 0.56. The game server used 46 to 60 MB of memory and PostgreSQL about 43 MB. The runbook’s verdict: “At small-MMO scale, capacity is solved; change velocity is the dangerous thing.” Each deploy cost about eight seconds of interaction. Inselnova caps its game server at half a CPU and 512 MB and reports it sitting at 10 to 30 percent of that CPU.

The failures are about money and age, not load. MineThings closed in March 2020. The history page records that the owner had offered to hand over the keys in November 2019 to anyone who would take on the server bill. A would-be successor was beaten by the size and age of the CakePHP code. Adventure Land left a cloud provider over cost and reliability. For backups and handovers, see what keeps a small browser game running for years.

What a stack tells players

  • Published code can outlive its owner. Space Merchant Realms and OpenDominion publish their engines, so someone else could run the world if the current team stops. MineThings 2 exists because code and database snapshots survived.
  • Computed offline progress is exact. When a game derives resources from timestamps, time away is credited exactly, up to whatever cap the game sets, rather than by a batch job that might skip.
  • A short “server restarting” notice is normal. CinderHold broadcasts one to every connected player before each deploy, with the build’s short commit ID.
  • Pages that update themselves every few seconds are polling. A delay of a few seconds is a design choice, not lag.

For builders: a starting checklist

  1. Store absolute timestamps for anything timed, and compute accrued values when someone reads them.
  2. If you need a global tick, run it from one scheduler, and precompute the changes so the tick is a single write.
  3. Pick a relational database you can back up, and test against a real one.
  4. Poll first. Add sockets for chat and combat.
  5. Expect one small server to cope; put your effort into safe deploys.

If your game is built and running, submit it.

Sources checked for this post

Games in this post

Current listings, with the date we last checked each one.

Open-source remake of Dominion: text-based realm warfare in hourly ticks over seven-week rounds.

Year unknownChecked 1 Oct 2026

Anime-style ninja RPG with round-based hex battles, villages and clans in the world of Seichi.

Year unknownChecked 1 Oct 2026

An indie MMORPG where JavaScript you write runs up to four characters around the clock.

Year unknownChecked 5 Oct 2026

Online idle MMO of 19 linked skills, a player-priced auction house and clan Holds.

IdleRPGFree with purchasesReal-time

Year unknownChecked 3 Oct 2026

Slow-paced island warfare across a medieval archipelago, rebuilt in the spirit of Inselkampf.

Year unknownChecked 3 Oct 2026