Heroic Labs Nakama icon

Heroic Labs Nakama

Standard softwareFOSS · Apache-2.0

Apache-2.0 multiplayer backend, auth & matchmaking server

Free (Apache-2.0) / Cloud · Heroic Labs · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Godot, Unity, Unreal
Platforms
Linux · Windows · macOS · CLI
Version
3.24
Technical Summary

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 DimensionStudio Production Reality
Where Nakama WinsComplete 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 TradeoffReal-time multiplayer sockets run over WebSockets/TCP rather than raw UDP with built-in rigidbody rollback.
When to Pair or SwapPair 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 Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about Heroic Labs Nakama

Can Nakama replace dedicated UDP netcode for fast-paced shooters?
No. Nakama's real-time rooms communicate over WebSockets and do not provide built-in client-side rigidbody prediction or sub-tick hitbox rollback. Studios building twitch shooters use Nakama for Steam authentication, skill-based matchmaking, inventories, and parties, then hand matched players off to headless Unity, Godot, or Unreal UDP servers.
Which server runtime performs best in Nakama: Go, TypeScript, or Lua?
Compiled Go modules deliver the highest CPU throughput, true goroutine concurrency, and lowest memory footprint because Nakama itself is written in Go. TypeScript offers rapid iteration and strong typing for RPCs and economy hooks, though each JavaScript VM instance carries higher RAM overhead under heavy authoritative match counts.
What database hardware does self-hosted Nakama require in production?
Nakama runs reliably on PostgreSQL 14+ or CockroachDB. Because player inventories, storage objects, and leaderboard records rely heavily on indexed JSONB queries, a modest 4-vCPU / 16 GB RAM NVMe PostgreSQL instance paired with connection pooling easily sustains thousands of concurrent players before vertical scaling is needed.

More tools like Heroic Labs Nakama