A virtual-world game server, written from scratch. Players build and furnish isometric rooms, bring them to life with wired, play games, keep pets, join groups and trade, all in the browser.
EmulakeX is the server: the room engine, every game system, the web site, housekeeping and a public Web API. It ships
no client and no content. You bring a client and a content pack, and the pack decides what the world looks like and
what everything in it is called. ./elx start runs it all on your own computer, server or container.
| This repository | the server (Kotlin, JDK 25), the web (Node.js 22), its database schema, themes and extensions |
| You bring: a client | the game client, in client/ (ELX_CLIENT_DIR) |
| You bring: a content pack | furni, catalogue, rooms, texts and the rest of the world, imported with ./elx import <pack.zip>; its images go in .data/assets/ (ELX_ASSET_DIR) or on a host (ELX_ASSET_URL) |
The server has no furni, rooms, texts or names built in, so it does not start without a pack.
A pack is a zip with a manifest and one JSON-lines file per table, so it is plain data you can read, diff and build with any tool. The server names nothing itself. Everything below comes from the pack, and what a pack leaves out is not there:
- The world: furni definitions and their behaviour, rooms and room models, the navigator, news, the players that own public content.
- The shop: catalogue pages and the page layouts they use, offers, limited sales, clothing, vouchers, gifts.
- Names and roles: the currencies with their names and what each one is for, the names of the club and the build pass, the avatar effects the game puts on units (team colours, freeze, teleports, riding), chat bubble styles, camera filters, pet types and the boxes that hatch them.
- Progress: achievements, quests, daily tasks, reward tracks, badges.
- Words: every text the server and the web say, and the client profile.
Because nothing is fixed in code, packs can differ completely in style: another currency set and other names, their own
catalogue layouts, a different furni line, another tone of text. Two packs on the same server are two different games.
The pack format is versioned; ./elx import refuses a pack it cannot read and says which formats it takes.
- Floor plans and height maps, walking and pathfinding, stacking, sitting and lying, doors and teleports, rollers, a 500 ms room tick.
- Furni of every kind: dimmers, jukeboxes, gifts, mystery boxes, crackables, post-its, mannequins, badge displays, room paint, clothing and pet furni, room ads, rentable spaces and more.
- Floor plan editor, room settings, rights, bans and mutes, spectators, room events.
- Build pass: placing from the catalogue without owning the furni, with room locks and warnings.
- A full set of triggers, effects, conditions, selectors, add-ons and variable boxes.
- Variables on users, furni and the room, signals, chests, clocks and counters, scores and teams, movement, bot effects, rewards, text placeholders and logs.
- Wired runs on the room tick: every stack fires in a fixed, predictable order.
- Snowball: a team game with its own lobby and arenas, free or daily games and tokens.
- Room games: Tile Claim, Freeze, football and tag fields, with clocks, team gates and scoreboards, all usable from wired.
- Messenger with friends, offline messages and requests; groups with their own forums.
- Trading, respects, badges, achievements, levels, quests, daily tasks and reward tracks.
- Pets with energy, thirst, happiness, commands, levels and breeding; horses; bots.
- Camera and photos, looks and clothing, chat bubbles, polls, community goals, treasure hunts, calendar campaigns, crafting and featured looks.
- Catalogue and build pass catalogue, gifts and vouchers; credits, activity points, a premium currency and a seasonal currency, all named by the pack.
- Marketplace with tokens, the earnings center with a daily gift, the recycler, mystery boxes and claims.
- Every number is a game rule in
config/game-rules.conf: starting wallet, limits, pets, rollers, opening hours, message rates and more.
- In-client mod tool: tickets, chat logs, room visits, sanctions on a ladder, mutes, bans, device bans.
- Call for help, reports and the safety quiz; a word filter for chat and the site.
- Housekeeping on the web (
/housekeeping): players, rooms, tickets, help requests, chat logs, staff, device bans, news, the landing view and an audit log of every action.
- Game page and site with registration, login, profiles, groups, photos, rooms, staff, news and help, as a theme of static files on top of the site API (THEMES.md, SITE-API.md). Swap the theme, keep the game.
- Housekeeping API (HK-API.md) and a public Web API for other sites, documented on
/api/public/api-docs/. - Server extensions in
web/extensions/<name>/(EXTENSIONS.md), with a guestbook as example. - Avatar imager, asset mirror (fetches missing images from a host once and keeps them) and a client profile.
- Signed
HttpOnlysession cookies and rate limits; production mode refuses dev logins.
./elx: start, stop, restart, status, logs, import, backup, restore, doctor, upgrade and systemd units.- Four ways to reach the game: this computer only, your own domain with automatic HTTPS (Caddy), a Cloudflare Tunnel
(quick or named), or your own proxy in front (nginx and Traefik examples in
docs/). - TLS on every connection, plus a key exchange that encrypts the game's stream.
- Backups while the game runs, upgrades with a way back (UPGRADING.md), and your own files in
custom/and*.local.*never touched.
JDK 25, Node.js 22 or newer and MariaDB 11 or newer. Caddy 2 unless you bring your own proxy; cloudflared only for a
Cloudflare Tunnel. ./elx doctor checks this computer against your configuration.
./elx import <pack.zip> # once, before the first start
./elx start # on this computer; --public adds a quick tunnel to the internet
./elx status
./elx stop
./elx help lists the rest: logs, backup, restore, upgrade (UPGRADING.md) and
install-service, which runs the game under systemd on Linux. Everything the game makes stays in .data/.
Settings are commented in config/emulakex.env; put your own in config/emulakex.local.env. Game rules are in
config/game-rules.conf, your own in config/game-rules.local.conf. ELX_PROXY chooses how players reach the game:
this computer only, a domain with automatic HTTPS, a Cloudflare Tunnel, or your own proxy
(PROXY.md).
The key exchange that encrypts the game's stream is on by default and needs nothing: the first start makes this
installation's own key in secrets/rsa.env. ELX_KEY_EXCHANGE=0 in config/emulakex.local.env turns it off,
ELX_KEY_FILE names a key of your own. TLS is what secures the connection; the key exchange only hides the game's
traffic from someone reading the websocket in a browser.
The site is a theme in web/themes/<name>/ on top of the site and housekeeping APIs
(THEMES.md, SITE-API.md, HK-API.md). Extra server
features are extensions in web/extensions/<name>/ (EXTENSIONS.md). Keep your own in
custom/themes/<name>/ and custom/extensions/<name>/: git ignores that folder, so an upgrade leaves it alone.
cd server && ./gradlew build
Tested with up to 1000 headless players online at once, each doing the full login and then walking, talking, clicking furni, browsing the catalogue and the navigator, playing games and moving between rooms, busy and wired ones among them. At 1000 players the server used a fifth of one core and about 90 MB of live heap, with no slow room ticks and no errors. The rows above 1000 are worked out from those numbers.
| Players online | vCPU | RAM | ELX_SERVER_HEAP |
ELX_DB_BUFFER_POOL |
|---|---|---|---|---|
| 500 | 2 | 2 GB | 512m | 128M |
| 1000 | 2 | 4 GB | 1g | 256M |
| 2000 | 4 | 6 GB | 1g | 512M |
| 5000 | 8 | 12 GB | 2g | 1G |
Copyright © 2026 the EmulakeX authors. Source: https://github.com/ssl/emulakex.
EmulakeX is free software: you can use, change and share it under the GNU Affero General Public License, version 3 or (at your option) any later version, see LICENSE. It comes with no warranty. If you run a changed version for players over a network, offer them its source (section 13).
The copyright notice and the additional term below are also in NOTICE, which every copy keeps next to LICENSE.
Additional term (section 7(b)): every version, changed or not, keeps the attribution and legal notices that the
:about window shows: the copyright line, the name EmulakeX, the license, the no-warranty notice and the link to
the EmulakeX source. They stay where players can see them in the game; you may add your own credits and a link to
your own source next to them.