Skip to main content
The MusterBox SDK is a Rust core library (version 1.0.0) that is packaged for every supported engine and the browser. Its job is to be a reliable, secure bridge between your game and the MusterBox backend — never a source of authority.

What the SDK does

  • Configures and validates your integration (config schema 1) before any traffic leaves the device.
  • Manages the session lifecycle: initialize → start → authenticate → refresh → logout → shutdown.
  • Flushes events in batches over the event plane with offline buffering.
  • Polls realtime events — session, wallet, and status events.
  • Drives secure purchases through PurchaseClient with an on-device environment-integrity pre-flight.
  • Reports diagnostics and environment health.

Public surfaces by language

Core concepts used everywhere

  • Config — validated MusterBoxConfig; invalid config fails fast with InvalidConfig before networking begins.
  • Runtime optionsManual (you call tick) or Threaded (background worker) with a TickBudget.
  • Status — an explicit lifecycle machine you can observe via get_status.
  • ErrorsSdkError with stable SdkErrorCodes (MBX-SDK-001 … 013).

Start here

Last modified on September 10, 2026