velox.json reference

velox.json sits next to index.html in the folder you push. It describes the game to the verifier (velox verify, and the first thing velox push runs) and to the store.

A minimal valid file for a free game:

{
  "schemaVersion": 1,
  "slug": "my-game",
  "version": "1.0.0",
  "pricingModel": "f2p",
  "title": { "en": "My Game" },
  "tagline": { "en": "A short line that sells the game." },
  "description": { "en": "What the game is, what makes it different." }
}

velox init writes a fuller one (with an achievement and a leaderboard) that you can start from.

Age rating #

A game needs an ageRating before it can be listed in the store: { "minAge": 12, "system": "usk" }. minAge is 0, 6, 12, 16 or 18; system is where the rating comes from (usk, pegi, iarc, or self for your own assessment, where 0 means the game has no content that impairs the development of minors). You are responsible for it being correct. The store shows it on the game page and the cards and can filter by it; a game rated 18 can only be bought or played by accounts that confirmed they are adults. Set it with velox page set --age-rating 12:usk, from velox.json, or in Studio.

Languages #

Every store text (title, tagline, description and the titles and descriptions of achievements and leaderboards) is an object with one text per language. en is required, and it is shown wherever another language has no text. Any other language (de, fr, pt-BR...) is optional; when you add one it must be filled in. The store never shows a German text unless you wrote one.

"title": { "en": "Lantern Run", "de": "Laternenlauf" }

Servers #

A game that talks to servers of its own declares them in servers (servers): host, who runs it, why, and the operator's privacy policy. The store lists them on the game page, asks players once before the first launch, and the player's browser blocks every host that is not declared. The declaration travels with the build, so a new server is a new push. All of it, what is enforced and how a server verifies a Velox player, is in Game servers.

Codai ID #

A game that has its own Codai ID account system declares its OIDC client in codaiId (codaiId) next to the servers the ticket goes to. A player who is signed in to the store can then continue in the game with one tap after a one-time consent per game; the game's server receives the player's Codai ID user id and display name in a signed ticket. A build without codaiId gets no such ticket, and a new client id is a new build. How the ticket is verified and mapped to the game's account: Continue with Codai ID.

What is used when #

  • The store page fields (title, tagline, description, languages, inputs, engine, multiplayer, age rating, price) are read once, when velox push --create creates the game. After that, change them in Studio (or with the API or the MCP server): pushing a new build does not overwrite your store page.
  • The version, the servers and codaiId are read on every push (they belong to the build).
  • Achievements and leaderboards are synced on every push: the store's list becomes the manifest's list. A manifest without the key leaves the store's list alone; an empty list removes them all. They live on the server because the cloud service refuses a score for a board it does not know, and, once the game has a list of achievements, an achievement id outside it.

Fields #

FieldTypeRequiredDefaultWhat it is
schemaVersionnumbernononeThe format of this file. Write 1. The verifier does not read it today; it is there so a future format can be told apart.
slugstringyes—The game's name in its URLs (/g/<slug>): lowercase letters, digits and hyphens, 1 to 63 characters, not starting or ending with a hyphen. It is also the game's own browser origin, so it can never be changed after the game exists.
versionstringyes—The build's version, MAJOR.MINOR.PATCH (1.0.0, a suffix like -beta.2 is fine). Shown on the store page and in update notices.
enginestringno"custom"What the game is made with: custom, unity, or <engine>-<version> such as godot-4. Shown on the store page.
pricingModel"f2p" or "paid" or "paid_with_demo"yes—f2p is free; paid is sold; paid_with_demo is sold and has an instant demo build.
priceCentsintegeryes, for a paid game (above 0)0 for a free gameThe price in the currency's smallest unit (999 is 9.99). A free game must say 0 or leave it out.
currency"EUR" or "USD"no"EUR"The currency of priceCents.
hasInstantDemobooleannofalse (true for paid_with_demo)The game has a demo build that anybody can play without owning the game.
titletextyes—The game's name. A text is an object with a language per key; en is required and is shown wherever a language has no text of its own. Up to 120 characters.
taglinetextyes—One line under the title. Up to 300 characters, en required.
descriptiontextyes—The store page text; blank lines separate paragraphs. Up to 8000 characters, en required.
supportedLocalesstring[]no["en"]The languages of the game's own screens (language tags such as en, de, pt-BR; up to 40, no duplicates). Shown on the store page as what the game speaks; it says nothing about the store page texts.
inputsstring[]no["keyboard", "mouse"]Up to four of keyboard, mouse, gamepad, touch.
tagsstring[]nononeStore tags for search and shelves: lowercase words (letters, digits, space, _, +, -; up to 32 characters each, up to 20 tags). Read when velox push --create creates the game and by velox page set; after that, change them in Studio or with velox page set.
multiplayerobjectnonone{ maxPlayers (1 to 1024), modes, partyJoinSupported }; modes is a subset of authoritative-rooms, matchmaking, webrtc-p2p, lockstep, co-op. Shows a multiplayer badge on the store page.
ageRatingobjectnonone (the game cannot be listed in the store until it has one){ minAge, system }: who the game is suitable for. minAge is one of 0, 6, 12, 16, 18; system says where the rating comes from: usk, pegi or iarc (an official certificate) or self (your own assessment; 0 then means the game has no content that impairs the development of minors). You are responsible for it being correct (see the developer terms). Shown on the store page and the cards and filterable; a game rated 18 can only be bought or played by accounts that confirmed they are adults. The store takes it from here when velox push --create makes the game and from velox page set --manifest; the API and Studio also set it. Listing a game without one is refused.
achievementslistnonone (the store's list is left alone)The game's achievements. Every push makes the store's list equal to this one (an empty list removes them all). A manifest without the key changes nothing.
achievements[].idstringyes—Lowercase letters, digits, _, . and -, 1 to 64 characters, starting with a letter or digit; unique in the list. This is the id the game passes to velox.social.achievements.unlock().
achievements[].titletextyes—Up to 120 characters, en required.
achievements[].descriptiontextyes—Up to 500 characters, en required.
achievements[].iconstringnononeAn icon reference (up to 512 characters).
achievements[].hiddenbooleannofalseA hidden achievement shows no title or description on the store page until the player has it.
achievements[].statProgressobjectnonone{ statName, targetValue }: unlocks by itself when the game's stat reaches the target (velox.social.achievements.setStat()).
leaderboardslistnonone (the store's list is left alone)The game's leaderboards, synced like achievements. The server refuses a score for a board that is not in this list.
leaderboards[].idstringyes—Same rules as an achievement id. This is the board name the game passes to velox.social.leaderboards.submitScore().
leaderboards[].titletextyes—Up to 120 characters, en required.
leaderboards[].plausibilityCeilingnumberyes—The highest score the server accepts for this board (above 0). A larger score is refused as implausible, which is what keeps a board free of forged entries. There is deliberately no default: only you know what a real score looks like.
leaderboards[].sortOrder"desc" or "asc"no"desc"desc: higher is better. asc: lower is better (times).
leaderboards[].periodsstring[]no["all", "day", "week"]A non-empty subset of all, day, week.
leaderboards[].format"number" or "time_ms"no"number"How a score is shown: a plain number, or a duration in milliseconds.
serverslistnonone (the game talks to Velox only)The servers the game talks to besides Velox, up to 8. The store shows them on the game page ("Connects to"), asks the player once before the first launch, and the CDN serves the build with a browser policy (CSP) that allows exactly these hosts and Velox's own: any other host is blocked. A new declaration is a new build. See the game servers guide.
servers[].originstringyes—https://host or wss://host, with an optional :port: no path, no wildcard, no IP address, no localhost (the store refuses those in production). One entry covers both the https and the wss address of the host; list each host once.
servers[].purposetextyes—What the game sends there and why, in plain words: shown to players. Up to 200 characters per language, en required.
servers[].operatorstringyes—Who runs the server (1 to 120 characters): the party whose privacy policy applies to what the game sends there. Shown to players.
servers[].privacystringyes—The operator's privacy policy: an https:// address. Linked from the game page and from the notice before the first launch.
servers[].realtimebooleannofalseThe game keeps a live connection (WebSocket) to this server. Shown to players; it does not change what is allowed.
codaiIdobjectnonone (no Continue with Codai ID)For a game that has its own Codai ID account system (its own OIDC client at Codai ID): lets a player who is signed in to Velox continue as that Codai ID account with one tap. The store asks the player once per game ("<Game> by <studio> wants to use your Codai ID account"); only then does velox.auth.getCodaiIdTicket(origin) return a signed ticket carrying the player's Codai ID user id. Needs servers: the ticket is made out to one of them. { "clientId": "..." } is the whole object: the game's own OIDC client id at Codai ID (1 to 128 characters: letters, digits and . _ ~ : -). It is the ticket's codai_client claim, so your server can check the ticket was made for your game and no other. See the Codai ID guide.

What the verifier says #

Every problem names its field and how to fix it, in English and German (velox verify --lang de). velox verify exits with 1 when something is an error. Warnings (for example, no SDK marker found in the build) do not stop a push.

velox verify .

Defaults the store applies #

When the manifest leaves them out: engine is custom, the game's own languages (supportedLocales) are en, inputs are keyboard and mouse, the currency is EUR, and a leaderboard sorts desc over all three periods. The store never fills in a language, a price or a player count on your behalf.