Put your browser game on Demosnack
Players can play browser games right on our page. Your game stays where it is, on your own site or on itch.io, and we show it in a frame. It costs you nothing. A game we cannot frame still gets listed, with a link to your page.
What we need
- The address that starts the game, over https. Either a page on your own site, or your itch.io game embed: on the game's edit page, open Distribute, then Embed game, and send us the address in the iframe's
src(it starts withhttps://itch.io/embed-upload/). Don't send thehtml.itch.zoneaddress of the build itself; itch.io asks people not to use it directly. - Permission to frame it. If your page sends a
Content-Security-Policywithframe-ancestors, addhttps://demos.tegarama.comto it, and don't sendX-Frame-Options: DENYorSAMEORIGIN. An itch.io embed allows us already. - The form. Send the address in "Demo, playtest or browser build" on the submit form.
Content-Security-Policy: frame-ancestors 'self' https://demos.tegarama.comBuild requirements
- Fit any size. Let the canvas fill its frame and follow resizes. Our frame is 16:9 on computers and the height of the screen on phones.
- No SharedArrayBuffer. Threaded builds (Unity with multithreading, Godot 4 with Thread Support) need cross-origin isolation, which a game framed on another site cannot have. Export single-threaded (Godot 4.3 and later can), or we link to your page instead.
- Unity: the right headers. Serve
.brfiles withContent-Encoding: br,.gzfiles withContent-Encoding: gzip,.wasmasapplication/wasmand.jsasapplication/javascript. If your host cannot set headers, build with Decompression Fallback. itch.io handles this for you. - A small first download. Players leave while a game loads; aim for under 50 MB before the first screen. itch.io allows up to 500 MB and 1,000 files.
- Sound after the first click. Browsers block sound before the player clicks or presses a key.
What the frame allows
The game runs in a sandbox. It may run scripts, keep its own storage, go full screen, lock the pointer, read gamepads, lock the screen orientation and open links in a new tab. It may not navigate our page, read it, start downloads, or use the camera, microphone or location.
Browsers keep a framed game's storage apart from the same game on your own site, so saves made on our page stay on our page.
What we check
Before a game goes up we check its headers, play it with the browser console open, watch how much processor it uses, look its address up in Google Safe Browsing and read it against the developer terms. If it stops loading or turns into something else, we switch it back to a link or take it off. Players can report a game from its page. To change the address or take your game off, tell us through the report form.