SDK V1.0

Gami SDKs

Native SDKs for every major platform. One identity, one event API, same XP and rewards across web, mobile, and games.

TypeScript / JavaScript

npm install @gami/sdk
STABLE
example.ts
import { GamiClient } from "@gami/sdk";

const gami = new GamiClient({ apiKey: process.env.GAMI_API_KEY });

await gami.trackEvent({
  userId: "user_123",
  action: "QUEST_COMPLETE",
  metadata: { questId: "daily_login" },
});

Unity (C#)

gami-unity.unitypackage
BETA
example.cs
using Gami;

var client = new GamiClient("YOUR_API_KEY");

await client.TrackEvent(new GamiEvent {
  UserId = "user_123",
  Action = "BOSS_DEFEATED",
  Metadata = new { bossId = "raid_01" }
});

Swift (iOS)

pod 'GamiSDK'
BETA
example.swift
import GamiSDK

let gami = GamiClient(apiKey: "YOUR_API_KEY")

try await gami.trackEvent(
  userId: "user_123",
  action: "WORKOUT_COMPLETE",
  metadata: ["minutes": 30]
)

Kotlin (Android)

implementation("io.gami:sdk:1.0.0")
BETA
example.kt
val gami = GamiClient("YOUR_API_KEY")

gami.trackEvent(
  userId = "user_123",
  action = "SOCIAL_SHARE",
  metadata = mapOf("platform" to "x")
)

Need another platform?

Unreal, Godot, Flutter, and Rust SDKs are on the roadmap. Use the REST API directly in the meantime — every SDK is a wrapper around it.