Multiplayer backend for games

Multiplayerwithoutbuildingabackend.

Rooms, player and room properties, and server-authoritative Functions over WebSocket and UDP. Every project gets its own subdomain on netstack.network.

Free plan, no card needed.

Write Functions in

JavaScriptTypeScriptGDScriptPythonLua

Connect over

WebSocketUDPGodot addon

How it works

Three steps to a live game

01

Create a project

Choose a name and get your own subdomain, such as mygame.netstack.network.

02

Define Functions

Describe what each game action does and test it against sample state before it goes live.

03

Connect your game

Point the SDK, or a raw UDP socket, at your subdomain. That is the whole backend.

Functions

Game rules in the language you already write

Functions run on the server, where players cannot cheat. Write them in JavaScript, TypeScript, GDScript, Python or Lua. Every language gets the same API, the same sandbox and the same test runner in the dashboard.

  • Pick a language per Function, mix them in one project
  • Test against sample state before anything goes live
  • Every save is a version you can roll back
How Functions work
export default async function (ctx, args) {
  const inventory = ctx.player.get("inventory") ?? [];

  if (!inventory.includes(args.itemId)) {
    throw new NetStackError("ITEM_NOT_OWNED", "You do not own that item.");
  }

  ctx.player.set(
    "inventory",
    inventory.filter((id) => id !== args.itemId)
  );
  ctx.global.set("totalItemsUsed", (ctx.global.get("totalItemsUsed") ?? 0) + 1);
  ctx.room.broadcast("itemUsed", { playerId: ctx.player.id, itemId: args.itemId });

  return { remaining: inventory.length - 1 };
}

Client SDK

A few lines to connect

Join a room, call a Function by name, and listen for events. Properties stay in sync automatically, and the server decides what each player is allowed to see.

const client = new NetStackClient({
  url: "wss://mygame.netstack.network",
  roomId: "lobby-1",
  playerId: "alice",
});

await client.connect();
await client.call("useItem", { itemId: "potion" });
client.on("event", ({ name, data }) => show(name, data));

Fast-paced games

Smooth movement, rules on the server

A realtime channel carries movement and aim every frame, while Functions decide shots, damage and pickups. Hit checks can rewind a target to where the shooter saw it.

Read the fast-paced games guide →

Platform

What you get

Rooms and properties

Player and Room Properties, private by default, synced in real time to exactly the players who should see them.

Functions

Server-authoritative logic your game calls by name. Define it in the dashboard, test it in the browser, ship it.

WebSocket and UDP

Browsers connect over WebSocket, native engines over UDP. Same rooms, same Functions, one project subdomain.

Global properties

Shared state across every room in a project: a live counter, a message of the day, a feature flag.

Voice relay

Opt-in voice packet relay between players in a room, under the same permission model as everything else.

Usage and team access

Charts of players, rooms and Function calls per project, and teammates as managers or viewers.

Pricing

Start free, upgrade when players show up

Compare plans

Ready to ship multiplayer?

The free plan includes 1 project, 50 concurrent players and 3 rooms.