Heroic Labs Nakama is an Apache-2.0 open-source multiplayer backend and authoritative game server for Linux, Windows, macOS, and Docker. Supporting Godot 4, Unity, Unreal Engine, Defold, C++, and Web clients, it provides player authentication, skill-based matchmaking, real-time rooms, leaderboards, clans, and inventories at zero license cost alongside optional Heroic Cloud hosting.
Technical Overview
Architecture and Production Workflow
Heroic Labs Nakama ships as a single compiled Go binary backed by PostgreSQL (or CockroachDB for distributed deployments), exposing gRPC, HTTP/REST, and WebSocket (rtapi) endpoints out of the box. Instead of stitching together separate SaaS microservices for login, social graphs, and match lobbies, engineers deploy one deterministic server node via Docker Compose or Kubernetes.
Server-authoritative logic runs inside three supported embedded runtimes: compiled Go plugins (.so shared objects for maximum CPU throughput and shared memory efficiency), bundled TypeScript compiled to JavaScript via Nakama's embedded Goja VM, or sandboxed Lua VM states. Authoritative match handlers implement a clean tick lifecycle (MatchInit, MatchJoinAttempt, MatchLoop, MatchTerminate) running from 1 Hz for turn-based card games up to 60 Hz for real-time arena brawlers. Built-in subsystems cover Steam, Epic Online Services, Apple, Google, and Device ID authentication, JSONB storage collections with optimistic version checks, atomic virtual currency wallets, party chat, and cron-scheduled tournament leaderboards. Official client SDKs integrate directly into Godot 4 (GDScript and C#), Unity, Unreal Engine, Defold, and JavaScript web builds.
Pricing, Licensing, and Commercial Rights
Core Nakama is 100% open source under the Apache-2.0 license. Studios can modify the source, self-host unlimited clusters on AWS, Hetzner, or bare metal, and ship commercial Steam, console, or mobile titles with zero seat fees, zero CCU caps, and zero revenue royalties. Teams preferring fully managed multi-region infrastructure with automated backups and observability can deploy on Heroic Cloud (production tiers starting around $600/month) or license enterprise live-ops extensions such as Satori and Hiro.
Strengths and Tradeoffs in Studio Pipelines
| Pipeline Dimension | Studio Production Reality |
|---|---|
| Where Nakama Wins | Complete backend-in-a-box covering Steam/EOS auth, persistent inventories, clans, leaderboards, and authoritative turn-based or mid-tick rooms without per-MAU SaaS bills. |
| Runtime Tradeoff | Real-time multiplayer sockets run over WebSockets/TCP rather than raw UDP with built-in rigidbody rollback. |
| When to Pair or Swap | Pair Nakama (auth, matchmaking, meta-progression) with FishNet, Photon Fusion, or headless engine servers on Agones when building 60-tick twitch FPS games requiring hitbox lag compensation. |
AI Transparency & Steam Disclosure
Standard SoftwareProcedural math, physics, or manual authoring software.
Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.