RUN.game SDK

The RUN.game SDK gives your HTML5 game access to monetization, multiplayer, storage, AI, and more — all through a single import.

Quick Start

import RundotGameAPI from '@series-inc/rundot-game-sdk/api'

Every API is accessed through RundotGameAPI. For example:

// Save player progress
await RundotGameAPI.appStorage.setItem('level', '5')

// Show a rewarded ad
const result = await RundotGameAPI.ads.showRewardedAdAsync()

// Get server time
const time = await RundotGameAPI.time.requestTimeAsync()

API Reference

Monetization

API
What it does

Serve rewarded video and interstitial ads.

Let players spend RunBucks on digital goods.

Messaging

API
What it does

Schedule local notifications for re-engagement.

Display toast notifications and in-app messages.

Assets

API
What it does

Load game assets from the CDN with caching, preloading, and WebView support.

Download host-provisioned asset bundles shared across titles.

Game Systems

API
What it does

Run A/B tests, feature flags, and feature gates.

Handle exponential economies without losing precision.

Build synchronous multiplayer sessions with real-time updates.

Drive authoritative game state through the simulation system.

Share links, generate QR codes, and handle share parameters.

Competitive leaderboards with multiple security levels.

Device & Environment

API
What it does

Read safe-area insets to avoid overlapping host UI and notches.

Detect device type, platform, screen size, and dev mode.

AI

API
What it does

Generate text and images using hosted AI models.

Utility

API
What it does

Record gameplay telemetry, funnel steps, and user properties.

Access launch parameters and share parameters.

Load and manage embedded libraries shipped by the host.

Trigger haptic feedback on supported devices.

React to host lifecycle changes (pause/resume/teardown).

Stream structured logs for debugging and support.

Control the native loading screen during heavy loads.

Access the current user profile.

Persist player data at device, app, or global scope.

Server time synchronization and formatting.


New to RUN.game? See Getting Started | Deploying Your Game | Setting Your Game Thumbnail | Troubleshooting

Last updated