Skip to content
pubscout

nakama

1.4.0, released 3 months ago by heroiclabs.com

Dart and Flutter client for the open-source Nakama game server.

$ flutter pub add nakama
Source repository

What it does

Provides APIs for user authentication, real-time multiplayer, chat, social features, and custom RPCs interacting with a Nakama game server. It includes support for web sockets, sessions management, and requests handling.

AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a game or app powered by a Nakama backend server.
  • You need cross-platform support for real-time multiplayer, chat, or social features in Dart/Flutter.

Skip it when

  • You are using a non-Nakama backend service like Firebase, Supabase, or Appwrite.
  • You do not need a dedicated game server backend.

Strengths

  • Comprehensive client library for Nakama server features including multiplayer and matchmaker.
  • Cross-platform support across iOS, Android, Web, and desktop.

Weaknesses

  • Requires a running Nakama server and database setup.
  • Breaking changes can require code adjustments when updating (e.g., score types).

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
11

Requires setting up a Nakama server and database (typically via Docker) before connecting with the client.

final client = getNakamaClient(
  host: '127.0.0.1',
  ssl: false,
  serverKey: 'defaultkey',
);

final session = await client.authenticateEmail(
    email: 'foo@bar.de',
    password: 'mySecurePassword!',
);

Alternatives

Packages that do the same job and could replace nakama.

  • appwrite

    Flutter SDK for the self-hosted Appwrite backend server

  • dart_appwrite

    Dart SDK for integrating server-side code with the Appwrite backend server

  • finch

    A lightweight Dart framework for building server‑side web apps, APIs, databases and WebSockets.

  • pocketbase

    Multi-platform Dart SDK for PocketBase open-source backend

Works with

Packages commonly used together with nakama: ones it builds on, ones built on it, and its own family.