nakama
1.4.0, released 3 months ago by heroiclabs.com
Dart and Flutter client for the open-source Nakama game server.
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
82Compare - dart_appwrite
Dart SDK for integrating server-side code with the Appwrite backend server
82Compare - finch
A lightweight Dart framework for building server‑side web apps, APIs, databases and WebSockets.
81Compare - pocketbase
Multi-platform Dart SDK for PocketBase open-source backend
88Compare
Works with
Packages commonly used together with nakama: ones it builds on, ones built on it, and its own family.
- json_annotationnakama depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- loggingnakama depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- web_socket_channelnakama depends on itCross‑platform WebSocket channel wrapper for Dart
- fixnumnakama depends on itProvides 32‑ and 64‑bit signed fixed‑width integer types for Dart.
- dionakama depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- freezed_annotationnakama depends on itAnnotations for the freezed code-generator.
- protobufnakama depends on itProvides runtime support for Dart protocol buffer messages generated by protoc_plugin.
- retrofitnakama depends on itDart Dio client generator using source_gen