PlayDrop logoPlayDrop
HomeSearchCreate
PlayTradeShop
ArenaBrowse GamesGame GenresTop GamesTop Creators
AssetsDemosTools
Getting StartedFAQDocumentation
PlayDrop logoPlayDrop
PlayDrop logoPlayDrop

Browser games, creator apps, and AI-powered game assets in one platform.

© 2026 PlayDrop. All rights reserved.

Create

Create a platformerCreate a puzzle gameCreate a racing gameCreate a simulation gameCreate a 3D gameCreate a 2D game

PlayDrop

Getting StartedFAQDocumentationChange LogPlayDrop Connector

Community

GitHubXYouTubeInstagramTikTokPinterest

More

AboutContact UsPrivacy ChoicesTerms of ServicePrivacy Policy
HomeInboxCreateShopYou
PlayDrop
PlayDrop could not load

A required part of the page failed to download. Try loading it again.

STYLESHEET_ERROR
Client SDK
Documentation

Start here

OverviewYour first game

Create with Cloud

Cloud creationPublish & importPlans & generationsCredits & rewards

Connect your agent

All connectorsCodexClaude CodeAntigravityChatGPTClaudeLovableReplitGrok

Technical reference

catalogue.jsonClient SDKServer SDKTroubleshootingFAQ
DocumentationClient SDK
Technical reference

PlayDrop client SDK for browser games

Optional browser SDK for any PlayDrop game: host lifecycle, sign-in, saves, leaderboards, purchases, ads, friends, multiplayer and shared libraries, with one script tag.

The PlayDrop SDK is optional: games without it play on PlayDrop. Add it for platform features such as player sign-in, saves, achievements and leaderboards, purchases in credits, ads, friends and game cards in PlayDrop Chat, share links, host-managed pause and audio, hosted multiplayer and AI generation. PlayDrop Cloud integrates it for you; with PlayDrop Connector, your agent adds one script tag.

Add the SDK and follow the host lifecycle

html
<script src="https://assets.playdrop.ai/sdk/playdrop.js"></script>
<script type="module">
  const sdk = await playdrop.init();
  // Render the game and prepare input, then:
  sdk.host.ready();
  sdk.host.onPause(() => pauseGame());
  sdk.host.onResume(() => resumeGame());
  sdk.host.onAudioPolicyChange(({ enabled }) => setAudioEnabled(enabled));
</script>

Load the SDK from PlayDrop's CDN; no package installation is needed. Render the first playable frame and prepare input before calling sdk.host.ready(). Pause simulation on host pause, resume without duplicate loops, and follow the host audio policy.

Identity, saves and language

sdk.me exposes player identity and sdk.me.appData stores private saves; sdk.achievements and sdk.leaderboards handle achievements and scores. Saves, achievements and leaderboards work without a login pre-check. Use sdk.me.isLoggedIn for features that require a real account, such as purchases or multiplayer. Preview and capture modes must not write player progress. sdk.host.locale gives the player's language: ship English plus your own language when it is different. Translating a listing does not translate game content.

Libraries, assets and multiplayer

sdk.libs loads supported Three.js, Phaser, Rapier, nipplejs and Colyseus versions. sdk.assets provides catalog, pack and asset references; sdk.social provides friends, game cards and share actions. For hosted multiplayer, sdk.multiplayer.getConnection() returns the server address and the signed-in player's token; join with the Colyseus client. The server SDK page covers hosted servers; a server you run yourself needs nothing from the SDK. The old relay room APIs are retired.

Test with the SDK before you publish

Run your usual dev server and open https://www.playdrop.ai/creators/<username>/apps/game/<slug>/dev?url=http://localhost:5173/ in Chrome to play it inside the real PlayDrop frame with the SDK host. Any localhost port or https URL works. Features that need an account, such as saves and purchases, work once the game has been uploaded once; a private upload is enough. Browser media generation runs as asynchronous tasks with a host-confirmed credit cost. See catalogue.json for listing metadata.

Previouscatalogue.json: PlayDrop game metadata and localizationNextPlayDrop game servers: Colyseus, MongoDB and the server SDK
View Markdown
EnglishFrançaisDeutsch日本語한국어EspañolPortuguês (Brasil)Bahasa Indonesia繁體中文简体中文

On this page

Add the SDK and follow the host lifecycleIdentity, saves and languageLibraries, assets and multiplayerTest with the SDK before you publish
View Markdown