Multiplayer, the pop-in kind
No lobbies, no friend codes, no accounts. Open a multiplayer game on Open Arcade and you are in. When a friend opens the same page, they pop into your game, live. This page shows exactly how we do it, with the real code from our own games. Steal all of it.
Try it in ten seconds: E2 Pong
E2 Pong is the smallest multiplayer game we have, so it is the one to learn from. On your own, you play the computer, and the game is complete. Send the link to a friend, or open it on your phone, and the moment their page loads they become player two and the computer politely steps aside. First to 5 wins.

Open Pong full screenRead the full sourceDownload pong.html
How Pong does it
- A room is just a WebSocket that repeats everything. Our relay is a tiny Cloudflare Worker. Everyone who opens the game connects to the same room, and every message one player sends is forwarded to everyone else in it. That forwarding loop below is the entire server logic. The whole file is under 60 lines.
- Say hello, then split the jobs. On connect, each player announces themselves. The first player in the room is the host: they run the ball and broadcast the game state. The second player is the guest: they send only their own racket position, and the host folds it into the game. One source of truth, so the two screens can never disagree.
- Keep the client tiny. The browser side is one small connect function: open the socket, hand messages to the game, republish the game's messages. Pong's is about 30 lines and works for any game, not just Pong. It lives at the top of the source, marked RelayClient.
The rules that keep it simple
- Solo first. The computer covers every empty seat, so the game is fun with one player, better with two, and nobody ever stares at a waiting screen.
- Tiny messages, only on change. Small JSON packets, sent when something moved. No giant state dumps.
- One source of truth per thing. The host owns the ball. The guest owns their racket. Nothing is simulated twice.
- Hosts are replaceable. If the host closes the tab, the guest promotes themselves to host and the computer covers the empty side until the next friend pops in.
The big version: E2 World 2D
Pong has a host. E2 World 2D does not. In the world, every player broadcasts their own state about ten times a second on a shared message feed: position, direction, what they are wearing, what they just said in chat, and which car they are driving or riding in. Hop into a friend's car and they can drive you around town. Same pop-in rule: open the page and you are standing in the world with everyone else.
On December 1, 2026, the dock filled up: eight people playing in the same world at the same time, chatting and driving around. Here is Dave, right after it happened:

See the post on LlamaChat
The trick that makes eight players look smooth instead of teleporty: nobody renders the raw packets. Each client keeps a small buffer of everyone else's recent snapshots and renders them a fraction of a second in the past, interpolating between the two snapshots around that moment. Jitter disappears, because you are always gliding between two known points.
net.js also carries the world chat, the player list, and the Points hooks. It is the biggest file of the three, and it is all yours to read below.
You can see who is playing
One of the nicest things about pop-in multiplayer costs almost nothing: the moment a second player joins, the game shows everyone's profile in the top right corner, picture and name, automatically. Play solo and the corner stays empty and out of the way. The second a friend pops in, their face appears up there, and you know exactly who just showed up. Monster Truck Alley does this today. Here is a mockup of its corner in action:
DaveYOU
Raj
Ralph
HarshA mockup of the players bar in Monster Truck Alley: profiles appear on their own when friends pop in, and the bar hides itself when you are playing solo.
Building it is nearly free. The hello message already carries each player's name and picture, so the bar is just a row of chips you redraw whenever someone joins or leaves. Small touch, big difference: a game with faces in the corner feels like a place with people in it.
Grab the code
E2 Pong, the whole game
One HTML file, about 29 KB: the game, the relay client, the host and guest logic, the computer opponent. The friendliest place to start.
Read itDownloadBuild yours
- Make the solo game first, with the computer covering the empty seats.
- Drop in the relay client, pick a room name, and connect on page load.
- Send a hello (presence), then inputs or state, as tiny JSON.
- Decide who owns what: a host, or each player owning themselves.
- Upload it here and send the link to a friend. The second browser is the whole test suite.
Upload your gamePlay Together shelfAll multiplayer games
Use this code in your own games however you like. A shout-out is nice, never required.