LobbyLab quickstart

The lobbylab npm package is not published yet, so the npx -y lobbylab commands on this page do not work today. Everything else here is current. Request an alpha key at https://lobbylab.gg/developers.

LobbyLab is a hosted multiplayer backend. Your game keeps its own UI, engine and domain; players join LobbyLab rooms over WebSockets through @lobbylab/client, and LobbyLab keeps the rooms, invite codes, matchmaking and shared game state. Game rules that run on LobbyLab's servers come later. Request an alpha key at https://lobbylab.gg/developers.

Status: alpha. There are no public keys yet, and @lobbylab/client and @lobbylab/node are not on npm yet; both arrive with the alpha. What works today: the lobbylab package's docs and mcp commands, and lobbylab.gg, where people describe a game, LobbyLab builds it, and friends play it on phone or web.

Read these docs offline with npx -y lobbylab docs [topic]. For coding agents: npx -y lobbylab mcp (see the agents doc).

What works today

What arrives with the alpha

Planned after that

The planned client API (preview: may change, not installable yet)

import { LobbyLab } from "@lobbylab/client";
const lobby = new LobbyLab({ key: process.env.LOBBYLAB_PUBLISHABLE_KEY });
const room = await lobby.joinOrCreate("default");
room.on("message", ({ from, topic, data }) => console.log(from, topic, data));
room.send("hello", { at: Date.now() });

Do not add @lobbylab/client or @lobbylab/node to a project yet: npm has no usable release of either.

Next step

Request an alpha key at https://lobbylab.gg/developers. Until you have one, keep your game's networking behind one small module (connect, send, and a callback when the state changes), so moving to LobbyLab later changes one file.