Overview
IRT hosts the whole multiplayer stack of a web game. You write the room code and the client; IRT runs the rooms, serves the site, carries voice between players and gives your backend, if you have one, an API and webhooks.
IRT is invite-only: request an invite to create a project.
What IRT runs for a project
Rooms. A room is one running game instance, addressed by a room ID. Your room code runs in a room host, a Node process inside a Firecracker VM that belongs to your account alone. A room host runs many rooms of the same build, and each room starts, hibernates and stops on its own.
State sync. Rooms declare typed entities. Changes go to clients as binary deltas, encoded once per tick or, in a turn-based room without ticks, as soon as something changes, and interest keys decide which entities each connection sees, so a voxel world or a map with many NPCs sends each player only what is near them.
Sites. A build can include your web client. It’s served from
<project>.irt-serve.com and goes live together with the room code it
was built against.
Voice. Rooms can get a voice server. Who hears whom comes from the room: by default each listener hears the closest speakers it can see.
Prediction. The client SDK includes a prediction library built around a step function shared with the room, for games that need responsive movement, such as shooters.
How the parts connect
page ── WebTransport or WebSocket ──> https://rooms.irt.io/<project>/<room ID>
│ │
│ router ──> room host in a VM
│ │
└── served from anywhere room state in object storage
Each part of the diagram does one job:
- Every room has a URL,
https://rooms.irt.io/<project>/<room ID>, and clients connect to it. A page declares its project’s URL with a meta tag,<meta name="irt-project" content="https://rooms.irt.io/<project>/">, and connects to rooms by ID relative to it. WebTransport is tried first, with WebSocket as the fallback. - The router behind that URL authenticates the connection with a player token, or as a guest when the project allows guests, and forwards it to the room host that runs the room. Client code never names a router or a region.
- The page can be served from anywhere: an IRT site on
<project>.irt-serve.com, itch.io, GitHub Pages or your own domain. See Hosting your page. - When the last connection closes, the room hibernates: its room state goes to object storage and it costs no room-hours. The next connection wakes it. See How rooms hibernate and wake.
- Your backend, if you have one, creates and deletes rooms, sends messages into them and reads their state through the HTTP API, and hears about them through webhooks.
Games with no backend are a first-class case: project settings let clients join as guests, create rooms, join by code and list public rooms.
What you use
| Tool | For |
|---|---|
The irt CLI |
Logging in, running rooms and the site locally, testing, deploying, logs |
The dashboard at app.irt.io |
Projects, settings, keys, secrets, builds, rooms, logs, usage |
The HTTP API at api.irt.io/v1 |
Everything the dashboard does, for backends and CI |
@irtio/server |
Signing player tokens in your backend |
@irtio/testing |
Running rooms in process in tests, with fake clients and a controlled clock |
Next
Where to go from here depends on what you’re building:
- Start with a script tag is a multiplayer page in one HTML file, and the Quickstart grows it into a game with room code, tests and a deploy.
- Concepts defines the words used everywhere in these docs.
- Deploying with the CLI walks through a project from login to live.
- Limits lists the numbers rooms work within.
- Self-hosting runs a build on your own machine with the open-source room host.
- Building with a coding agent is the whole integration on one page, for agents and people in a hurry.
- Engines and frameworks shows the client in Phaser, PixiJS, Three.js, Babylon.js and React.
- Coming from another framework? There are migration guides from Colyseus, Playroom Kit and Socket.IO.