Cross-platform game SDK for Web, Android, iOS, Unity, and Cocos Creator.
| Package | Description | Version |
|---|---|---|
@cubeage/sdk-core |
Shared types, constants, HTTP client | |
@cubeage/sdk-web |
Web/browser implementation |
| Plugin | Platform | Status |
|---|---|---|
plugins/unity |
Unity (C#) | 🚧 Placeholder |
plugins/cocos |
Cocos Creator (TS) | 🚧 Placeholder |
packages/sdk-android |
Android (Kotlin) | 🚧 Placeholder |
packages/sdk-ios |
iOS (Swift) | 🚧 Placeholder |
bun add @cubeage/sdk-webimport { CubeageWebSDK } from '@cubeage/sdk-web';
const sdk = new CubeageWebSDK({
gameId: 'my-game',
backendUrl: 'https://api.cubeage.com',
environment: 'production',
});
await sdk.init({ playerId: 'u123', deviceId: navigator.userAgent, sessionId: crypto.randomUUID() });
await sdk.track({ name: 'level_complete', properties: { level: 1 } });See docs/ for platform-specific integration guides.
This monorepo uses Bun workspaces.
bun install
bun run typecheck # type-check all packages
bun run build # build all packagesMIT © Cubeage