Publishing
The game stays on your site: Fabi Play only needs its URL, one per version, for example
https://games.example.com/stars/1.2/. You paste it into the Studio and the automatic checks start.
1. The manifest at that URL
Section titled “1. The manifest at that URL”A valid fabi-play.json next to the game’s page.
2. The headers of the game page
Section titled “2. The headers of the game page”Send this header on the game page, or a stricter one:
Content-Security-Policy: default-src 'self'; img-src 'self' data: blob:; frame-src 'none'; frame-ancestors https://play.fabiplay.app https://cast.fabiplay.app https://simulator.fabiplay.apphttps://simulator.fabiplay.app lets you test the published version in the simulator; leave it
out if you don’t.
This header blocks inline styles (a <style> element or a style="…" attribute in the page). If your page has
them, add style-src 'self' 'unsafe-inline'; likewise script-src 'self' 'wasm-unsafe-eval' for WebAssembly (Unity,
Godot). Both are accepted by the checks below.
- Everything, meaning scripts, images, sounds and network calls, must come from your site. No analytics, ads or third-party services: the players are children.
- Remove
X-Frame-Optionsif present: it prevents Fabi Play from showing the game. - Serve
fabi-play.js(and the engine’s script, if you use it) from your site too, copied from the@fabiplay/sdkpackage (@fabiplay/enginefor the engine), or load an exact version fromhttps://cdn.fabiplay.app, the one other origin allowed, and only inscript-src(script-src 'self' https://cdn.fabiplay.app). Each script tag from it needs itsintegrityhash andcrossorigin="anonymous"; there is no “latest” address, so an approved game keeps exactly the code it was approved with.
Send Access-Control-Allow-Origin: * on fabi-play.json (or at least https://play.fabiplay.app and
https://simulator.fabiplay.app): the TV reads it from its own page in production for your game’s
intro (without it the game goes straight to calibration, no intro), and the hosted simulator to check
it.
What the automatic checks look at
Section titled “What the automatic checks look at”Before a person reviews the game, and again every day after approval, the Studio checks:
- the address: https, a public domain (not an IP or a local address), no username or password, no
?or#(each version has its own path, such as/stars/1.2/); - the manifest:
fabi-play.jsonat that address, valid; - the page’s headers:
- a Content-Security-Policy whose
connect-src,script-src,img-src,media-src,font-src,style-srcandworker-src(ordefault-src) allow only the game’s own origin ('self','none',data:,blob:,'unsafe-inline','unsafe-eval','wasm-unsafe-eval', nonces and hashes are fine), plus exactlyhttps://cdn.fabiplay.appinscript-src; frame-src'none'or'self': no third-party pages inside the game;frame-ancestorswithhttps://play.fabiplay.app(the TV page and tablet solo) andhttps://cast.fabiplay.app;- no
X-Frame-Options;
- a Content-Security-Policy whose
- scripts from cdn.fabiplay.app: each one an exact version’s file (
/sdk/0.1.0/…,/engine/0.1.0/…), over https, with anintegrityhash andcrossorigin="anonymous"; - the SDK in the page: the HTML of the page
entrynames must mentionfabi-play.js,@fabiplay/sdkorFabiPlay. A script tag does. A page built by a bundler may not (its script is/assets/index-….js): then mention one of them in the HTML yourself, for example<!-- @fabiplay/sdk -->, and check that your build keeps the comment; - a fingerprint of the manifest and the page (below).
3. Do not change an approved version
Section titled “3. Do not change an approved version”Fabi Play checks a fingerprint of the manifest and the page every day:
- if it changes, the game goes back into review;
- for something new, publish a new URL, for example
/stars/1.3/, and submit it from the Studio; - keep the previous version online until the new one is approved.
4. Fabi Play’s review
Section titled “4. Fabi Play’s review”A person checks:
- content suited to the age range;
- no copyrighted characters;
- it is genuinely played with the body;
- no scenes that would frighten the youngest children.
The sandbox
Section titled “The sandbox”The game runs in an iframe with sandbox="allow-scripts allow-same-origin", with no permissions:
- you can use
localStorageon your site; - you cannot open popups or other pages, and you have no access to camera or microphone;
- movements arrive only through the SDK: do not store or send them; the contract forbids it.