OneLobby
Our free, open-source multiplayer kit. Players host and join with a short code and play peer to peer, with voice and text chat built in. Ant Arena uses it.
- No server you have to keep paying for. Games can host straight from a player's PC, or use a tiny lobby server anyone can run.
- Game data never touches a server. Peers talk over WebRTC data channels.
- Browser JS, Godot 4, Unity 6 and any .NET app. MIT licensed.
import { OneLobby } from "onelobby";
const kit = new OneLobby({
gameId: "com.you.game",
netVersion: "1",
lobbyServer: "wss://YOUR-SERVER/ws",
mode: "raw",
});
const lobby = await kit.host({
name: "My game",
maxPlayers: 4,
});
console.log("Join code:", lobby.code);