Uploading a build: archive, limits, checks, compression
A build is a zip archive with a ready-to-run game. Upload it in the dashboard (the “Builds” tab) or with the CLI. Every build passes automated checks; a checked build becomes the draft's build and reaches players only through moderation.
Archive structure
index.html— at the root of the archive (not in a nested folder).- File names — Latin letters, digits,
-,_,.; no spaces and no paths outside the archive. - All resources are loaded by relative paths (
./assets/hero.png,Build/game.wasm): the game opens at an address likehttps://<id>.<games domain>/<hash>/index.html. - The SDK is loaded by the absolute path
/_ip/sdk/v1.js— the games domain serves it (SDK). - Everything the game needs is inside the archive: fonts, libraries, sounds. Requests to other domains (CDNs, Google Fonts, third-party analytics) fail check R07. Your own game server and art CDN are reachable only through game network addresses approved by the moderator.
Limits
| What | Limit |
|---|---|
| Zip size | 250 MB |
Unpacked size (precompressed .br/.gz count by their unpacked size) |
250 MB |
| Files in the archive | 1500 |
| Per-file compression ratio | at most 100 — otherwise the archive is treated as a zip bomb |
Initial download (what the game fetches before ready) |
over 20 MB — warning, over 50 MB — failure |
| Builds per day — per studio / per game | 20 / 5 |
| Studio build storage | 5 GB |
If a game needs more than 250 MB, put heavy data (textures, sound, .wasm, asset bundles) on your own
CDN and add it to the game network; JS stays in the build (large games).
How to upload
Dashboard. Game → “Builds” → “Upload” → pick the zip. The browser computes the archive hash and shows progress; the check starts after the upload. A new checked build becomes the draft's build.
CLI. instaplay publish ./folder-or-zip — the same path from the command line and CI
(CLI). The CLI takes texts, images and leaderboards from instaplay.json and overwrites the
game draft with them — the dashboard shows a “Draft updated by a CLI build” notice.
Automated checks
Static checks look at the files; runtime checks open the game in Chromium with desktop and mobile profiles (by the devices in the game description).
| Code | What is checked | Result on violation |
|---|---|---|
| S01 | the archive unpacks; no zip bomb, paths outside the folder or symlinks | failure |
| S02 | index.html at the root, Latin file names |
failure |
| S03 | size and number of files | failure |
| S04 | the InstaPlay SDK is included | warning |
| S06 | external URLs in code | warning |
| S07 | forbidden code: top.location, parent.location, document.domain, miners |
failure |
| S08 | heavy PNGs (over 2 MB) and uncompressed audio (WAV, BMP over 1 MB) | warning |
| S09 | forbidden file types (below) | failure or warning |
| R01 | InstaPlay.init() is called |
warning |
| R03 | initial download size | warning or failure |
| R06 | the game loaded, did not hang, no unhandled JS errors (console errors — warning) | failure |
| R07 | no requests outside the games domain and the game network | failure |
| R13 | the page does not scroll — the game fits the window on desktop and mobile | failure |
| R19 | the frame after loading is not blank | failure |
Build result: passed — ready to submit; has warnings — you can submit after confirming you saw
the warnings (the moderator sees them too); failed — fix it and upload a new build. The report with
run screenshots is on the “Builds” tab. Run the same runtime checks locally with
instaplay test ./folder (CLI).
Forbidden files
- Failure: executables and server-side files —
.exe,.dll,.so,.dylib,.msi,.apk,.ipa,.jar,.class,.sh,.bat,.cmd,.ps1,.php,.py,.rb,.pl,.cgi— and.htaccess. Compression does not help:run.exe.gzfails too. - Warning: archiver and version control leftovers (
__MACOSX/,.git/,.DS_Store) and files of unknown types. Only known types are served: HTML, JS, CSS, JSON, images, audio, video, fonts,.wasm,.data,.unityweb,.pck,.bin, source maps, atlases, 3D models and textures (.glb,.gltf,.ktx2,.basisand so on).
Precompressed .br and .gz files
A file ending in .br or .gz is served by the games domain with Content-Encoding: br or gzip
and the type of its inner extension: game.wasm.br as application/wasm, game.framework.js.gz as
JavaScript. The browser decompresses it, and the game receives the decompressed bytes.
- Unity: build with Brotli and “Decompression Fallback” off (Unity).
- If your game decompresses data itself (pako, fflate, a custom loader), do not give those files a
.gz/.brextension — the browser would decompress them first and your decompressor would get the wrong bytes. Use another extension, for examplelevel1.bin. - Double compression (
x.js.gz.br) is not supported: such a file counts as an unknown type. - Checks read precompressed files decompressed: code in
*.js.bris checked like code in*.js, and limits count the unpacked size.
Engines and environment
The game runs in a sandboxed iframe on its own domain:
- no
SharedArrayBufferor threads — the games domain does not send COOP/COEP headers (Godot: export without Thread Support); - Service Workers are forbidden: the games domain answers
403to their scripts — turn off engine “offline modes” and PWA (game network); - build files are immutable and cached for a long time: an update is a new build, not replaced files;
- purchase, ad and sign-in windows are drawn by the portal; the game does not open external links and does not change the top window's address.
Engine guides: Unity, Godot, Construct 3, Phaser and PixiJS.