Community Games developer docs
Everything you need to build a Davidnet community game, in plain language, with a runnable example for every feature. You do not need an AI assistant to use this — every function is documented here with its exact signature and what it returns.
How this works
A community game is an HTML5 game (a .zip with an index.html at its root) that runs inside a sandboxed <iframe> on the game's player page. That sandbox is deliberately restrictive — no real cookies, no real localStorage / sessionStorage , and your game's own code cannot make outbound fetch() / WebSocket calls to anything, including Davidnet's own API directly. None of that matters in practice, because
the moment your game loads, a window.DavidnetSDK object is automatically injected into it — highscores, save data, achievements, community levels
and realtime multiplayer all go through that object instead, talking to the parent player page over postMessage (which isn't a network request, so the sandbox doesn't block it). You never write any networking
or postMessage code yourself.
This works no matter what built your game. window.DavidnetSDK is injected into the index.html file itself, at the HTML level — a plain hand-written JS game, a Godot HTML5/WebAssembly export,
a Unity WebGL build, all get the exact same object. See Using the SDK from Godot / other engines if you're not writing plain JavaScript.
One rule that applies everywhere below: every DavidnetSDK function returns a Promise and rejects on error, timeout, or a rate limit — always wrap calls in try/catch so a network hiccup never crashes
your game. See Troubleshooting for the mistakes that come up most.
Topics
Quickstart
Highscores & leaderboards
Save data
Achievements
Community levels (UGC)
Realtime multiplayer
Rate limits
Godot / other engines
Troubleshooting
Building with an AI assistant?
Every topic above, concatenated into one reference doc — paste the whole thing into an AI assistant's context and it has everything it needs to build a working integration, including the Godot/GDScript bridge. Each topic page above also has its own "Copy this page for AI" button if you only need one section.