Skip to content

The manifest

Every game has a fabi-play.json at its address, next to its page. The catalogue filters on it, and the Studio and the simulator check it.

{
"$schema": "./node_modules/@fabiplay/sdk/dist/fabi-play.schema.json",
"id": "pioggia-di-stelle",
"version": "1.2",
"title": { "it": "Pioggia di stelle", "en": "Star shower" },
"description": { "it": "Raccogli le stelle con le mani.", "en": "Catch the stars with your hands." },
"ageRanges": ["3-5"],
"movements": ["hands"],
"players": { "min": 1, "max": 2 },
"minutes": 4,
"entry": "index.html",
"sdk": 1
}
Field Required Rules
id yes The game’s id in the catalogue: lowercase letters, digits and single hyphens, up to 60 characters
version yes 1.0 or 1.0.2
title yes The name in Italian and English, { "it": …, "en": … }, up to 60 characters each
description yes One or two sentences in Italian and English, up to 300 characters each
ageRanges yes At least one of "3-5", "6-8", "9-12"
movements yes At least one of "hands", "jump", "squat", "clap", "freeze", "lanes", "shapes"
players yes { "min", "max" }: how many children can play together, 1 to 4, min not above max
minutes yes Minutes of a typical game, 1 to 20
entry yes The page that starts the game: an .html file relative to the game’s address (same site, no ..)
sdk yes The protocol version of the SDK the game was built with: 1
backdrop no ["video"] opts in to mirror mode. The game’s own background is always supported
intro no Fabi explains the game on the TV before calibration, in 1 to 4 steps: see Fabi explains your game
inputs no How it can be played: ["body"] by default; ["body", "remote"] to be offered on TVs without a phone, see Playing with the TV remote
turns no true: with the remote, several children take turns, a round each (only with "remote" in inputs; the game follows the turns contract), see Playing with the TV remote
cover no The game’s card in the catalogue: a 16:9 image of the game’s own files ("cover.jpg"), see The cover
framing no "auto" (default): the screen zooms the camera image in on children standing far away, only at pauses and breaks. "fixed": always the whole image, see Automatic framing
$schema no For editors only; ignored by Fabi Play

The catalogue shows the game only to players in its ageRanges. The same game can cover several ranges and adapt with the start event (ageRange).

The game’s card in the catalogue (the TV’s carousel, the phone, Fabi Play’s admin) is its cover, an image you draw:

"cover": "cover.jpg"
  • 16:9, 1280×720 recommended, at most 150 KB. .jpg, .jpeg, .png or .webp; JPG (quality about 80) is the safest on old TV browsers.
  • A path relative to the game’s address, like entry: no scheme, no leading /, no \, no . or .. segments, the extension in lowercase, up to 128 characters.
  • Checked by the review: the file must be there, served as an image (Content-Type: image/…), at most 150 KB and 16:9 (within 2%). A problem is a warning, never a reason to turn the game down: without a working cover the card shows another picture of the game, or its colour. A new cover reaches the TVs after the next review.

fabi-play.schema.json is the JSON Schema of fabi-play.json. Point the manifest at it with $schema, and editors (VS Code, WebStorm) complete its fields and flag mistakes as you type. It is in the SDK package (dist/fabi-play.schema.json, also exported as @fabiplay/sdk/fabi-play.schema.json); with the script tag, copy it next to the manifest and point $schema at ./fabi-play.schema.json.

The schema says the same as the checks of the Studio and the simulator, with two differences:

  • it flags unknown fields (most likely a typo, such as backdrops), which Fabi Play ignores;
  • it cannot say that min must not be above max in players: the Studio’s and the simulator’s checks catch that.

In code, the manifest’s type is GameManifest, exported by @fabiplay/sdk.

The simulator reads fabi-play.json next to the game’s page and tells you whether it is valid, whether the game would appear for the chosen age range and number of players, and whether the declared entry is the page it loaded. Your server must let it read the file (CORS): see What your server must allow. The TV reads it too, for the intro: serve fabi-play.json with Access-Control-Allow-Origin: * (or Fabi Play’s origins), or the TV can’t see your intro and skips it.