Publishing games on PlayThePrompt
PlayThePrompt hosts browser games made with AI, and each game shows a model card: which AI models wrote its code (and, optionally, made its assets) and how much came from humans. This guide covers building, packaging and publishing a game.
Who can publish
Create an account, confirm your email and use Become a developer in your account. An admin reviews each request and you get the answer by email. Once approved, My games appears in the menu.
1. Build a static web version
We host static web builds: an index.html plus the files it loads (JavaScript, WebAssembly, images, audio...). There is no server-side code and no build step on our side. Two rules apply to every engine:
- Relative paths only. The game is served from a sub-folder, so
src="/assets/x.js"breaks. Use./assets/x.js. - Single-threaded builds only. Builds that need
SharedArrayBuffer(threads) do not run.
JavaScript / TypeScript (Vite, Phaser, PixiJS, Three.js, Babylon, Kaplay...)
npx vite build --base=./ # or base: "./" in vite.config
cd dist && zip -r ../game.zip .Plain HTML/JS without a bundler works as is: zip the folder with index.html at the root.
Unity (Web)
- Build Settings → Web. Compression Brotli or Gzip is fine (the server sends the right
Content-Encoding); Decompression Fallback is not needed. Leave multithreading off. - Zip the build folder (
index.html,Build/,TemplateData/). Keep it lean (texture compression, code stripping): Unity builds are large. - If the game does not work on phones, tick "Desktop only" when publishing.
Python
- pygbag (pygame-ce):
pygbag --build your_game_folder, then zipbuild/web/. By default pygbag loads the Python runtime from its CDN (a third-party request and a slower first load); the validator warns about it. - Pyxel:
pyxel app2htmlor the web export; zip the result. - Plain Python without a web build cannot run in the browser.
Godot 4.3+
Export → Web with Thread Support off. Zip the exported folder (rename the main .html to index.html if needed).
Other engines
Defold, GameMaker (HTML5), Construct 3, PICO-8, TIC-80, Ren'Py (web), Rust → WebAssembly (Bevy, macroquad), raylib/SDL via Emscripten and LÖVE (love.js, non-threaded) all produce static web builds and work the same way.
2. The package
- A zip with
index.htmlat the root. If everything is inside a single folder, that folder is removed automatically. - Do not include
.git/,.envfiles, keys (*.pem,*.key),node_modules/or source maps. Secrets and.git/make the upload fail. - Limits: 250 MB per zip, 1 GB uncompressed, 5,000 files.
3. The manifest (optional)
A playtheprompt.json at the root of the package fills in the publish form for you. Everything in it can also be typed in or fixed in the form. Its format is described by a JSON Schema (editors use it to autocomplete through $schema); unknown fields are an error.
{
"$schema": "https://playtheprompt.com/schema/playtheprompt.v1.json",
"schemaVersion": 1,
"title": "Snake 3000",
"description": "Classic snake with a twist.",
"genre": "arcade",
"tags": ["snake", "retro"],
"engine": "html5",
"sourceUrl": "https://github.com/you/snake-3000",
"desktopOnly": false,
"orientation": "any",
"authorship": {
"method": "self-declared",
"code": [
{ "model": "claude-opus-5-5", "effort": "high", "share": 70 },
{ "model": "gpt-6-sol", "share": 20 }
],
"assets": [{ "model": "gpt-6-sol", "share": 100 }]
}
}schemaVersion(required,1),title(up to 80 characters),description,genre,tags(up to 10),sourceUrl(a link to the source code, optional).engine: html5, unity, godot, pygbag, pyxel, defold, gamemaker, construct, pico8, tic80, renpy, wasm, other.desktopOnly(the game needs a keyboard or mouse) andorientation(any,landscape,portrait).
4. Authorship (the model card)
codeandassetsare separate. Leaveassetsout if you do not want to declare it.- Each entry has a
modelid as its vendor's API names it (claude-opus-5-5,gpt-6-sol,gemini-2.5-pro...), an optionaleffort(none, minimal, low, medium, high, xhigh, max) and an optionalsharein percent. The same model may appear more than once with different efforts. An unknown id is a warning with suggestions; it is added to the site when you publish. - Whatever your shares do not cover is attributed to humans (
human-1.0): in the example above, 10% of the code. Listing models without shares marks them as "used", with 100%human-1.0. methodisgit-commitswhen the numbers come from the script below,self-declaredotherwise. Players see which one it was. More in How authorship is estimated.
Generating it from your git history
The authorship script reads your git history, finds the signatures AI tools leave in commits (Co-Authored-By: Claude ..., "Generated with Claude Code", authors ending in (aider), bot accounts...) and counts the added lines of code per model. It needs Node 24 and git; run it in your game's repository:
npx --yes https://playtheprompt.com/downloads/playtheprompt-authorship-0.1.0.tgz # updates playtheprompt.json
npx --yes https://playtheprompt.com/downloads/playtheprompt-authorship-0.1.0.tgz --json # prints the result instead
npx --yes https://playtheprompt.com/downloads/playtheprompt-authorship-0.1.0.tgz ../my-game --since 2026-01-01 # another folder, recent commits only- Only code files count (by extension); lockfiles, build output,
node_modules/, minified, vendored and generated files are skipped. Removed lines and binary files do not count. - A commit with a signature gives its lines to the model it names (several models split them equally). A commit without one counts as
human-1.0. When a signature does not say the version, the id says so (claude-version-not-stated). - Every other field of your
playtheprompt.jsonis kept; theassetssection is never touched (declare it by hand). - It is an estimate: tools that leave no signature (autocomplete, code pasted from a chat) are invisible to it, and a commit mixing human and AI work goes entirely to one side.
Options: --since <date>, --subdir <path> (monorepos), --exclude <glob> and --include <glob> (repeatable), --extensions <list>, --map <name=id> (read a co-author the script does not know as a model id; unknown AI-looking co-authors are listed in stats.unrecognizedSignatures), --out <file>, --json. The same settings can be committed in .playtheprompt-authorship.json at the root of the repository:
{
"exclude": ["tools/**", "**/*.test.ts"],
"include": ["**/*.p8"],
"map": { "My Agent": "claude-opus-5-5", "claude-version-not-stated": "claude-opus-4-5" }
}5. Content rules
By publishing a version you confirm that the game has:
- no 18+ content (sex, extreme violence, drugs);
- no loot boxes or paid random items, no gambling or betting, no purchases;
- no chat or messages between players;
- no ads, tracking or collection of personal data inside the game;
- and that you have the rights to everything in the package.
Many players are young: the rules come from child protection laws. See the terms of use.
6. Upload and publish
- Open My games and choose Publish a new game. Pick the game's address (it never changes) and upload the zip.
- Read the validation report: errors must be fixed (in the package or in the form), warnings are worth a look, info shows what the server did and the computed authorship split.
- Fill in or fix the details and the authorship rows; the preview shows the
human-1.0share. Upload a cover image (16:9, resized to 960×540). - Optionally upload a short gameplay video: it plays on the game's card when players hover the cover. MP4, MOV, WebM or MKV up to 50 MB; the sound is removed, clips longer than 30 s are cut. Show real gameplay from the first second.
- Preview the game, then Publish.
To update a game, open it in My games and upload a new version. The address, the players' saves and all metrics are kept; the cover and the video carry over unless you replace them.
Saves: the site keeps each game's localStorage, sessionStorage and IndexedDB apart automatically, so your keys do not clash with other games. You do not need to do anything.