Making a web work
A folder with index.html as the first page is all you need. Upload the folder and it is zipped for you. Source maps (.map) are removed on upload.
Only works made for the web run right on the site. Windows (.exe) and Android (.apk) builds are listed as downloads. Most game engines can export for the web.
Exporting for the web from a game engine
| Engine | How |
|---|---|
| Unity | File → Build Settings → switch to WebGL and Build. Upload the output folder. Compression (Brotli/Gzip) can stay on — we unpack it on upload. |
| Godot 4 | Project → Export → add Web. Turn Thread Support off (threaded builds won't run here). Upload the exported folder. |
| Godot 3 | Project → Export → HTML5 → Export. Upload the folder. |
| GameMaker | Set the target to HTML5 and build. Upload the output folder. |
| Construct 3 | Menu → Export → Web (HTML5). Upload the zip as is. |
| RPG Maker MV/MZ | Deployment → Web browsers/Android/iOS. Upload the output folder. |
| Plain HTML/JS | Upload the folder that has index.html. |
If the exported first page isn't named index.html (e.g. MyGame.html), rename it to index.html.
Settings file: ideaslam.json
Put it at the top of your folder and the player reads it. It's optional.
{
"name": "Hello Game",
"orientation": "landscape",
"aspect": "16:9",
"input": ["keyboard", "touch", "pad"],
"connect": ["https://api.example.com"]
}| Field | Values | Meaning |
|---|---|---|
orientation | any · landscape · portrait | Screen orientation (locked where supported) |
aspect | A ratio such as "16:9" | Keep this aspect ratio |
input | keyboard · touch · pad | With pad, phones get an on-screen pad (arrows, A, B) |
connect | List of https/wss addresses | Outside addresses your work may call (everything else is blocked) |
SDK (ms.js)
Added automatically to the first page of every web work. You don't need to include it, and removing it doesn't work — it comes back.
// Save (to the account if logged in, otherwise this device)
await ms.save({ level: 3, coins: 120 });
// Load
const data = await ms.load();
// This work's ID
console.log(ms.workId);- The SDK measures real use on its own: only time when the screen is visible and there was input in the last 30 seconds.
- The on-screen pad sends real keyboard events (
keydown/keyupfor arrows, Space, Enter). If your game works with a keyboard, there's nothing to do.
One-command updates
- Create a key for the work (starts with
msk_) under update keys. It can only upload new versions of that one work and lasts 90 days. - Get the tool:
/ms.mjson this site (Node 20+, nothing to install). - Push:
MS_KEY=msk_... node ms.mjs push ./my-game --work <work id> --message "Fixed the jump bug"- Folders are zipped automatically. Up to 20 uploads a day.
- If the scan passes, the new version goes live and
--messageis posted to the devlog. - You get a notification for every upload. If it wasn't you, press Not me in the notification to roll back and revoke the key.
Using the API directly
POST /api/v1/works/{work id}/versions
Authorization: Bearer msk_...
Content-Type: multipart/form-data
file zip or other file (required)
changelog what changed (optional)| Response | Meaning |
|---|---|
| 201 | Uploaded (if held, it goes live after admin review) |
| 422 | Blocked by the scan |
| 400 | No file |
| 401 · 403 | Wrong or expired key, or the work is closed |
| 404 | Work not found |
| 413 | File too large |
| 429 | Daily limit reached |