3JS Games
Browse documentation

3JSGames Docs

Build games that work with 3JSGames

Creator documentation for packaging browser games and supported platform SDK features.

AI Quickstart

Build with an AI coding agent

Use an internet-enabled coding agent such as Codex, Claude Code, Cursor, Gemini, Kimi, or another compatible agent.

SDK v3Recommended
Cloud Storage
Available
Leaderboards
Beta
Player Identity
Beta
SDK SHA-256
3ec794a2โ€ฆ64b1a

One prompt to get started

Copy this prompt into your coding agent. The agent will discover the current SDK and integration rules from the authoritative public files.

Integrate the latest official 3JSGames SDK into this browser game.

First read:
https://www.3js.games/sdk/latest.json

Then read and follow:
https://www.3js.games/docs/ai-sdk.txt

Use the current recommended SDK version from the manifest.

Fetch the official SDK artifact yourself from the sdkUrl in the manifest and vendor it unchanged into this game's static output.

Do not recreate or modify the SDK.

Use only documented 3JSGames APIs.

Keep standalone gameplay functional.

After implementation:
- verify the SDK SHA-256 against the manifest
- run available tests/build checks
- create an upload-ready ZIP with index.html at its root
- verify static-relative runtime paths and the vendored SDK inside the distributable
- report the ZIP path and contents
- report which 3JSGames features were integrated

Do not commit or push unless explicitly requested.

Optional feature prompts

Player Identity

Beta

Use the signed-in player's public username while keeping guest play available.

Cloud Storage

Available

Persist a small, useful set of account-backed game data.

Leaderboards

Beta

Submit final scores and show rankings for a creator-configured key.

Achievements

Coming later

Planned game-defined achievement capabilities. No integration prompt is available.

Multiplayer

Coming later

Planned multiplayer platform capabilities. No integration prompt is available.

Advanced machine-readable resources
Recommended for new games: Platform SDK v3 includes ThreeJSGames.storage, Leaderboards Beta, and Player Identity Beta. Achievements and Multiplayer remain planned.

Feature availability

Documentation principles

Statuses and contracts are written as visible semantic text for people and coding agents. Planned pages contain no speculative API signatures or executable-looking examples.