Gamehoster

Realtime multiplayer, hosted. Declare a game as a local folder named for its domain; your own server runs the rooms, presence and live updates over WebSockets.

Gamehoster

About

The same drop-a-folder idea as Localhoster, but the payload is live state instead of files. A folder named for a domain becomes a realtime host on your own server, and each game inside it is served at its own path. Players connect over a WebSocket and everything in a room stays in step. One server hosts many domains, each with many games.

Key Hunt, Asteroids and Buttermilk Forever all run on it.

Features

Rooms and broadcast

A room is a shared space. Anything one client sends is relayed to everyone else in it, instantly.

Presence

The server tracks who is connected and lets go when they leave, so the room always reflects who is there.

In memory and fast

Live state lives in memory with a short lifetime, tuned for low latency rather than long-term storage.

Casual by default

No sign-up to play: arrive, pick a name, and control your own character. Drop the connection and you resume where you were.

One definition

A game is defined once, as a folder of JSON and JavaScript, and built into both an authoritative server and a generated client.

Ticks and entities

Each game instance runs on a tick, with its players and entities kept in the server's state.

Tools

The server publishes web logs, server statistics and the state of your games as plain pages over HTTPS.

Screenshots

Contents

The sections of gamehoster.org, and the pages in each.

Technologies

Articles

More games