Skip to content

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.

A valid fabi-play.json next to the game’s 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.app

https://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-Options if 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/sdk package (@fabiplay/engine for the engine), or load an exact version from https://cdn.fabiplay.app, the one other origin allowed, and only in script-src (script-src 'self' https://cdn.fabiplay.app). Each script tag from it needs its integrity hash and crossorigin="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.

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.json at that address, valid;
  • the page’s headers:
    • a Content-Security-Policy whose connect-src, script-src, img-src, media-src, font-src, style-src and worker-src (or default-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 exactly https://cdn.fabiplay.app in script-src;
    • frame-src 'none' or 'self': no third-party pages inside the game;
    • frame-ancestors with https://play.fabiplay.app (the TV page and tablet solo) and https://cast.fabiplay.app;
    • no X-Frame-Options;
  • scripts from cdn.fabiplay.app: each one an exact version’s file (/sdk/0.1.0/…, /engine/0.1.0/…), over https, with an integrity hash and crossorigin="anonymous";
  • the SDK in the page: the HTML of the page entry names must mention fabi-play.js, @fabiplay/sdk or FabiPlay. 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).

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.

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 game runs in an iframe with sandbox="allow-scripts allow-same-origin", with no permissions:

  • you can use localStorage on 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.