How the Leyline network works
Leyline runs no server of its own now. Parts of this page that needed it (sign-in, the relay, the official realm, the public realm list, the forum) no longer work. What still works.
A plain guide for players: how your launcher finds worlds and friends, and what we never do.
The network now
Status, 27 Nov 2026: Leyline runs no server and no relays of its own. Same-network joins and the hand-picked realm list work today. Finding signed records with no centre is built and on by default in the launcher (see "Finding realms with no centre" below), and so are launcher-to-launcher connections by key, friends relaying for friends, and community relays. Few signed realm records are out on the network yet: they appear as hosts list their worlds.
You (launcher) <---- straight to your friend's PC when it can ----> Your friend's PC
| ^
+---- else: a friend you both know, or community relays ---------------+
(they pass sealed bytes and can't read them)- No centre. No part of the network is ours to switch off. Each part can come from more than one place.
- You dial a key, not an address. Your launcher finds a friend's PC by their Passport key: the same network first, then straight across the internet, then hole punching, then a friend you both know, then community relays. See Joining a world.
- Community relays are run by players. Anyone can carry others' sealed traffic from their own PC with one switch, and launchers find those relays' signed cards with no centre (friends, friends' lists, mirrors, the lookup network). See Run a relay and Help carry the network.
- Lists are signed records. Realm lists, releases, profile cards and blocks are small signed records. Your launcher collects them from other launchers, from a public lookup network, from copies of our site and repo, from community relays, from your home network and from your friends. A record is kept only if its signature checks.
- Blocks need two of three. A block (a bad realm, a bad release) counts only when two of a three-person council sign it.
- Anyone can fork. The code, the record formats and a kit to start your own copy are public.
Finding realms with no centre (built)
Your launcher keeps the hand-picked list from our site, and adds to it every signed realm it can find from:
- records it already holds (from earlier visits, kept for as long as they are fresh);
- mirrors: a copy of the signed record list on our site, in our public repo and on Codeberg. Any one that answers is enough. A mirror can leave records out but can't change one. (The Codeberg copy answers once the owner has set up the Codeberg account; until then it is skipped.);
- friends and your home network: launchers hand each other the records they hold, a few kilobytes every 15 minutes at most;
- the public lookup network (the Mainline DHT, which BitTorrent uses): a realm whose host lists it, or a Passport, can publish a tiny signed pointer there: which devices serve it and where its full record is. Your launcher only asks; it never answers other people's lookups. It publishes nothing about you unless you choose it. You can turn it off in Settings › Advanced ("dht").
A realm record lives 15 minutes, so a realm only shows while its host keeps it fresh. Our mirrors are rebuilt with the site, so they mostly carry blocks and long-lived records, not live realms.
Blocks: a council block counts only with two of three council signatures, a reason and an end date. The three council keys aren't named yet, so no council block can be made today. You can also hide a realm or relay just for yourself; that stays on your PC.
When a place is gone (tested on one PC)
If our site, GitHub, the public lookup network or every relay is unreachable, the realm list, updates, friends and joins keep working from what is left: the other mirrors, other launchers, your home network and your friends. If someone hands on records they changed or forged, your launcher refuses them. This is checked by automated tests on one PC (chaos in the launcher's tests); it still needs a test between two real homes.
Help share Leyline's own files
Your launcher can pass Leyline's own downloads (the launcher, the Host pack, addons, server source code) to other players, so they keep spreading with no server. It is on if you turned on Be a node; otherwise the Host page asks you once. It never shares game files, only files Leyline signs, each checked first, at most 256 KB/s unless you set your own cap in Settings › Advanced. You can change your answer there.
How it worked until November 2026
The rest of this page is how the network ran on our server. The relay and the self-filling realm list closed with it on 26 Nov 2026.
You (launcher, game or browser)
|
v
Leyline relay ---- the realm list (every public realm)
|
v
A host's PC, running their realm- Realms are run by players. A host runs a realm on their own PC. Leyline does not rent servers.
- The relay connects you. You talk to the relay and the relay passes your game through to the host's PC. Nobody opens ports.
- Every realm has an id. Sixteen letters and digits, made from the realm's own key on the host's PC. It never changes, so links keep working.
- Your address stays hidden. Hosts never see players' internet addresses, and players never see the host's.
- Invite links open private realms. The secret part of the link stays in your browser. A host can make a new link at any time, and the old one stops working.
- Public realms are listed. A public realm shows on the realm list about a minute after the host's PC connects, and leaves it a few hours after the PC goes off.
- Claimed means a real account. A host can claim their realm with a Hero Key account, so the list shows who runs it. Unclaimed realms say so.
- Official and community. Wrath Unleashed is the official realm, run by Leyline. Every other realm is a community realm, run by its host under their own house rules.
- Dens are private rooms. A Den is a small, invite-only realm to build in with friends. It is never on the public list.
- What we never do. We never ship, upload or share game files: every host and player uses the game folder they already have. We never sell places on the list, and bots are always counted apart from players.
Want to host? See Hosting and Play with friends. Something wrong with a realm? Use Report on its card on the realm list.
These pages are in the repo at docs/leyline. Source