Skip to content

Technology ​

Outer Space is a real-time multiplayer game that runs in your browser. An authoritative game server runs the world, and HyperEVM settles everything that involves tokens.

At a glance ​

LayerBuilt with
Game clientPhaser 4 (WebGL) for the world, React 19 and TypeScript for the interface, in one web app
Game serverElixir / Phoenix, authoritative simulation
RealtimeWebSocket with Protocol Buffers messages for the game, and a server-sent events (SSE) stream for live updates
Server regionsTokyo, Singapore and San Jose
Sign-inWallet sign-in through Privy
ChainHyperEVM testnet, chain ID 998
Market and validator dataHyperliquid mainnet
Markets tradingHyperliquid testnet, with orders signed in your browser

Game client ​

  • One web app. The same app serves the landing page and the game. Backspace, Squares, User Mod, Ecosystem, Voting and the Vault are places, panels and windows inside the game. The old web addresses for Backspace, Squares, User Mod, Voting and the Vault open the game.
  • Phaser 4 renders the world: ships, planets, portals, Mines and effects, using custom WebGL shaders.
  • React renders the interface: the HUD, the menus and side panels, dialogs, chat and the game lobbies.
  • Platforms. Desktop browsers come first, and tablets are supported with touch controls. Phones are best-effort. Graphics quality adjusts to your device automatically, and you can set it and an FPS limit in Settings → Graphics.

Game server ​

  • Authoritative. The server runs the world at 10 ticks per second and decides movement limits, hits, drops, Key claims and rewards. Your client renders the world and sends inputs; it never decides outcomes.
  • Smooth movement. Your client predicts your ship's movement locally, the server validates it, and the client reconciles any difference.
  • Server-run games. Poker hands, Gravity Duel matches and Space Drift flights run on the server too. Gravity Duel predicts your moves locally to stay responsive.
  • Verified Ranked runs. Star Sweepers, Hype Sweepers and Star Racers run in your browser. For a Ranked run, the server replays your inputs with the game's official rules and keeps only scores it can verify.
  • Limits that keep things fair. One Key per pilot per Cycle, one Ranked run at a time, rate limits on chat, reports and game commands, and one live connection per pilot.

Realtime connection ​

  • The game connects to a server region over WebSocket, with Protocol Buffers messages. Choose a preferred region in Settings → Connection: Auto, Tokyo, Singapore or San Jose. A new choice applies after you reconnect.
  • The bottom bar shows the server region you're on (NRT, SIN or SJC), your latency and the players online. If your connection drops, the game reconnects automatically.
  • Live updates arrive over a single server-sent events (SSE) stream, opened with a one-time ticket: alerts, Mining status, payment status, rewards ready to claim, market prices and stats, Square activity and Backspace updates. The menus update on their own, even while they're closed.
  • Market data for the whole game is collected by the server from Hyperliquid mainnet and shared over that stream. Live charts and order books come from Hyperliquid's own WebSocket.

Onchain ​

  • Sign-in. You sign in with your own wallet through Privy. Spacebar verifies the sign-in and starts a game session that lasts 24 hours. Spacebar doesn't create or hold wallets; every onchain action is signed by your wallet.
  • Rewards. For each reward you claim, Spacebar issues a signed claim with a unique ID and a deadline of up to one hour. You submit up to 8 claims in one transaction to the Claim contract, and Spacebar confirms the transaction onchain before marking the rewards claimed. User Mod creator rewards are paid out through the Claim contract too.
  • Payments. For Shop and Mod Shop purchases, Game Tickets and User Mod submissions, Spacebar creates a payment request. You approve the exact amount and pay through the Claim contract, in AIR or, for Game Tickets, in USDC. Spacebar verifies the transaction onchain before delivering anything.
  • Votes. The Voting contract checks your Key and records your vote.
  • Before you sign, every transaction is simulated, so most failures are caught before your wallet asks you to confirm.
  • Markets trading doesn't use Spacebar's contracts. When you enable trading, your wallet signs, without gas, to register a trading key kept in this browser and to approve Spacebar's builder fee on Hyperliquid testnet. Your browser then signs orders with that key and sends them straight to Hyperliquid testnet. See Markets.

See Smart Contracts for addresses.

Testnet ​

Outer Space runs on Hyperliquid's testnet. Testnet data may be reset, and smart contracts may change. See the Spacebar Testnet Terms and Conditions shown when you create your pilot.