Hawkes Gen
Hawkes Net · multiplayer

Multiplayer for your game,
without the server work.

The networking every game on Hawkes Gen runs on, for yours too. Make a project with your hawkesgen.ai account, join a room in one call, and watch your players, rooms and tickets live. For the web, Babylon.js and Unity.

What you get

Everything between your players.

One call

lobby().join('level-1') puts everyone in a level together, moves on to the next room when one fills, and rejoins by itself after a dropped connection.

Your projects, live

Each project has its own page: players online now and over the day, rooms and who is in them, every ticket and why one was refused, and 30 days of usage.

Our relay

Avatars by distance (near players often, far ones less), messages once and in order across reconnects, a shared clock, and a binary protocol about 5 times smaller than JSON.

No server needed

List your game's sites and its pages join with no key. Have a server? It asks for tickets with your API key and decides who plays where.

Free to build

Your own machine (localhost) always joins your project's test rooms, apart from your players. Open two tabs and play.

Your engine

One ES module for the web, a module of its own for Babylon.js, a package for Unity (WebGL, the Editor and desktop builds), and raw messages for games with their own netcode.

Getting started

Online in three steps.

Sign in

Use your hawkesgen.ai account at net.hawkesgen.ai. Making one is free.

Make a project

Name it; its id is what your game passes as project. List your game's sites when you are ready to put it online.

Add the SDK

One import for the web, a module for Babylon.js, a package for Unity: pick yours below. All open source, MIT.

The SDKs

Pick your engine.

Open source under the MIT license. Every one joins the same rooms, so a Unity build and a web page can play together.

Web · any engine

JavaScript SDK

Rooms, lobbies, avatars, synced state, a shared clock, express frames for what can't wait, and games that keep going in a background tab. No dependencies, with TypeScript types.

import { lobby } from 'https://net.hawkesgen.ai/sdk/hawkes-net@1.mjs'

Docs · The module · Types
Babylon.js

Hawkes Net for Babylon.js

multiplayer(scene, { project, player }): everyone else as avatars played back smoothly, shared moving things, players in the background shown as away. An example you can open twice.

GitHub: hawkesnet-babylon
Unity · WebGL, Editor, desktop

Hawkes Net for Unity

Shared rooms by area, drop-in avatars and messages in C#. WebGL builds and the Editor's Play mode join the same rooms. Install it with Package Manager from the git URL, or as a tarball; the Asset Store listing is in review.

GitHub: hawkesnet-unity · Tarball
Try it live

Play together, here, right now.

Every dot is someone with this page open in the same room, on our relay. Open the invite link in another tab or on your phone.

Move with the arrow keys, or drag on the room. Bots are more players in this page, on the same network as you.
How it holds up

Measured, not promised.

From our load test and our own games. Numbers for a world with 60 moving things and avatars 15 times a second.

1,000players on one relay node with 4 processes: all connected, none dropped
~8 KB/sper player on the relay, in a binary protocol about 5 times smaller than JSON
39 msmedian delivery in that 1,000-player load test (81 ms at the 99th percentile)
Liveplayers, rooms and tickets for each project on net.hawkesgen.ai
Plans

Free to build. Pay when you are online.

While we set prices, using it costs no credits; each project's page counts player-minutes and relay data, so you see what you'd pay first.

Free account

  • Projects, the dashboard and the SDK
  • Your game on localhost, in test rooms
  • Up to 3 rooms, 16 players and 8 a room per project

Paid account

Credits or a plan on hawkesgen.ai.

  • Your game's own sites, and tickets from your server
  • Up to 64 players a room, 200 rooms, 2,000 players a project
  • Peer to peer for small rooms of friends, if you want it

Put your game online.

Your hawkesgen.ai account is all you need.

Open Hawkes Net