How do you get a multiplayer game online for free?
Put it on Zaisma and use its rooms. Every game gets free hosting each month with no card, friends join from a link as guests, and you run no server of your own.
Two ways to run a match
- With no server code: the relay passes each player's messages to everyone else in the room, up to 16 players. It suits a first multiplayer game. Set the game's multiplayer to Relay.
- With a game server: a JavaScript file in your upload holds the match and checks every move, up to 100 players a room and 60 ticks a second. It suits anything players would cheat at.
Either way, a game joins a room with one call:
<script src="_zaisma/v1.js"></script>
<script type="module">
const room = await Zaisma.joinRoom();
room.on("message", (message) => console.log(message));
room.send({ type: "wave" });
</script>Try it before you upload
This runs your game, its rooms and its game server on your own computer, with no account and no key. Add a player opens a second player in another tab.
npx @zaisma/cli play-locallyHow friends get in
Share the room's link. Whoever opens it lands in the same match, on a computer or a phone the game supports, as a guest. A game can also list its open rooms on its page.
How much is free
Eight friends playing a real-time game two hours every night use about a third of a month's free hosting. All of it covers about 1,300 hours of play in an 8-player real-time game, or about 2,500 in a 4-player turn-based one. If it runs out, new matches wait for the next month unless you add credit and set a budget: there is no surprise bill.
Your own server
The game server is open source, so the same file runs on your own machine, and room links can point there. That is always free on Zaisma's side. Zaisma's developer tools are MIT licensed.