PUSHPLAY

Your repo

pushplay.json

The one file that tells PushPlay what your game is, how it starts and how it plays. Every field, with its limits.

pushplay.json sits at the top of the repo, next to the game. A repo can also hold several games, each in its own games/<id>/ folder with its own pushplay.json and art; the folder’s name is then the game’s id.

A complete example

A web game with every field most games use:

{
  "$schema": "https://raw.githubusercontent.com/Visual-Zone-Development/pushplay-kit/v1/schema/manifest.schema.json",
  "id": "star-courier",
  "name": "Star Courier",
  "description": "Pilot a tiny courier ship through an asteroid field, grabbing parcels before the clock runs out.",
  "version": "1.0.0",
  "entry": { "web": "index.html" },
  "art": { "cover": "art/cover.svg", "hero": "art/hero.svg" },
  "controls": "gamepad",
  "inputs": ["gamepad", "keyboard", "mouse", "touch"],
  "players": "1-2",
  "genres": ["arcade", "shooter"],
  "modes": ["single", "local-coop"],
  "tags": ["space", "neon", "fast-paced"]
}

Keep the $schema line: editors such as VS Code then autocomplete every field and underline mistakes as you type.

What’s required

  • By the schema: id, name, and either entry or release. The schema rejects any field it doesn’t know, at every level, so a typo is an error, not something silently ignored. The check suggests the field you probably meant.
  • By the check: inputs, because it plays the game with each one (Inputs and labels). A game that plays from your own releases is only asked for it.
  • Asked for, with a ⚠ note: a description of at least 20 characters, genres, controls, and your own art in place of the starter’s. A new game builds and plays without them; add them before you share it.

Every field

Types and limits are read from the build kit’s schema, the same file the check uses.

$schemastring

The schema's address, so your editor can autocomplete and check the file as you type. Pinned to v1, the version every game builds with.

e.g. "https://raw.githubusercontent.com/Visual-Zone-Development/pushplay-kit/v1/schema/manifest.schema.json"

idstringRequired

The game's permanent id. Players' saves and its listing follow it, so never change it. In a repo of many games it must match the game's folder name.

lowercase letters, digits and -, starting with a letter or digit

e.g. "star-courier"

namestringRequired

The title players see.

1–80 characters

e.g. "Star Courier"

descriptionstringAsked for

1–3 plain sentences: what you do, and what makes it fun. Shown on the game's page. The check asks for at least 20 characters.

up to 2000 characters

e.g. "Pilot a tiny courier ship through an asteroid field, grabbing parcels before the clock runs out."

versionstring

A label players see next to the build. It isn't what makes PushPlay update (every new build does), so change it only when you want players to see a new number. Online, only players on the same version play together.

up to 64 characters

e.g. "1.2.0"

movedFromstringWritten for you

Written by pushplay promote when a game moves out of a repo of many into its own, so players' copies follow it. Don't edit it.

owner/repo

typestring

An old hint, web or native. PushPlay works it out from entry, so you can leave it out.

one of web, native

entryobjectRequired

The file that starts the game on each platform: web (an HTML page) or a program for linux-x64, linux-arm64, windows-x64, darwin-arm64 or darwin-x64. A relative path with forward slashes. With build.outputs, it is a path inside that platform's folder.

keys: web, linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64 · each up to 512 characters

e.g. { "web": "index.html", "linux-x64": "game.x86_64" }

More →

buildobject

How the workflow makes the game's folders. Leave it out when the repo is the game as it is, or when npm run build writes to dist.

More →

static ships the folder as it is; vite runs your npm build.

one of vite, static

The folder an npm build writes. dist when not given.

up to 256 characters

A command run in the game's folder before packaging, in place of npm run build. It runs on a GitHub Linux runner with PUSHPLAY_BUILD=1 set.

1–1000 characters

e.g. "npm run build:pushplay"

The finished folder for each platform, made by your own build or committed to the repo. Every platform in entry needs a folder here, and the other way round.

keys: web, linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64 · each up to 512 characters

e.g. { "web": "export/web", "linux-x64": "export/linux" }

releasetrue or objectRequired

Play the game from the repo's normal GitHub releases, with nothing built for PushPlay. true finds each platform's zip by its name; an object names them, with * where the name changes. Not together with build.

keys: web, linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64 · each up to 200 characters

e.g. { "linux-x64": "StarDrift-*-linux.zip" }

More →

channelsarray of objects

Other versions players can add beside the main one, each with its own saves and updates: a beta, a demo, a branch. Up to 8.

up to 8 items

e.g. [{ "id": "beta", "name": "Beta", "prerelease": true }]

More →

channels[].idstringRequired

Stays the same when you rename the channel, so players who chose it keep it.

lowercase letters, digits and -, starting with a letter or digit

channels[].namestringRequired

What players see.

1–40 characters

One line about the channel, shown under its name.

up to 200 characters

Releases marked pre-release on GitHub count too.

Only releases whose tag (or title) matches. * is any run of characters.

1–200 characters

e.g. "demo-*"

Which zip is which platform in those releases, when the names differ from the main release.

keys: web, linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64 · each up to 200 characters

Play a branch instead of releases. With the workflow, pushes to it publish to their own release, pushplay-<branch>. A channel follows a branch or releases, not both.

a branch name

e.g. "next"

launchobject

Arguments and environment variables for a native build, per platform.

keys: linux-x64, linux-arm64, windows-x64, darwin-arm64, darwin-x64 · each { args: string[], env: { NAME: value } }; no web

e.g. { "linux-x64": { "args": ["--fullscreen"], "env": { "NAME": "value" } } }

webobject

How the web build is served.

Serve the web build cross-origin isolated, which engine exports that use threads (SharedArrayBuffer) need. Everything the game loads must then be its own files.

artobject

The pictures players see first, in up to four shapes. A game with a web build gets them made from a screenshot when there are none; a game without one needs cover and hero.

More →

art.coverstring

The library tile. Must include the game's title, big and bold.

1–512 characters

e.g. "art/cover.svg"

More →

art.herostring

Wide places, such as the top of the game's page and Discover. No text: PushPlay writes the title over it.

1–512 characters

e.g. "art/hero.svg"

More →

Very wide places, such as the Continue banner. Drawn from the hero when not given.

1–512 characters

More →

Places near 16:9: phones, tablets, TVs. Drawn from the hero when not given.

1–512 characters

More →

art.screenshotsarray of stringsWritten for you

Written by the build, from the check's screenshot. Don't set it.

each up to 512 characters · up to 8 items

controlsstringAsked for

gamepad once the game works with a controller; keyboard-mapped for a game that has no controller support yet.

one of gamepad, keyboard-mapped

e.g. "gamepad"

tagsarray of strings

Up to 8 words from the curated list: mood, look, setting and play. A word on no list is dropped, and the check names it.

each a lowercase word or two · up to 8 items

e.g. ["space", "neon"]

More →

genresarray of stringsAsked for

1–3 genres from the fixed list, the main one first. Players browse the Library and Discover by them.

each a genre's slug · up to 3 items

e.g. ["sports", "party"]

More →

modesarray of strings

How the game is played together. Players filter by them under Players (Solo, Co-op, Versus, Party). A game that says nothing counts as Solo, or Party when it takes phones.

each one of single, local-coop, online-coop, local-versus, online-versus, phones · up to 6 items

e.g. ["single", "local-coop"]

More →

playersstring

How many can play: one number or a range. Players filter by it under How many.

up to 16 characters

e.g. "1-4"

More →

onlineboolean

An online multiplayer game on PushPlay's relay. It may then connect to the relay, and nowhere else.

More →

partyboolean

A party game: it runs on the TV and everyone plays from their phone. Adds the Party mode and the Phones as controllers label.

More →

phoneobject

The game is laid out for a phone. inputs must then include touch. Earns the Phone label once the phone pass passes.

e.g. { "orientation": "portrait" }

More →

phone.orientationstringRequired

portrait, landscape, or any for a game that lays itself out both ways. The app turns the game for you: don't lock it yourself.

one of portrait, landscape, any

inputsarray of stringsRequired by the check

What the whole game, menus included, plays with. The check plays the game with each one alone and holds it to exactly this list, and the game's Plays on and Plays with labels are earned from it.

each one of gamepad, keyboard, mouse, touch, phones, motion, camera · 1–7 items, no repeats

e.g. ["gamepad", "keyboard", "mouse", "touch"]

More →

camerastring

For a game that lists camera in inputs: where its camera is. device is the screen's own (a webcam), phones is each player's phone in a party game, and both takes either. Without it, camera with phones means the phones, and camera alone the device's.

one of device, phones, both

e.g. "phones"

More →

Entry, build and release

Platforms are named the same way everywhere: in entry, build.outputs, release and launch.

Key Is
web A web build: a folder with an HTML page. Plays everywhere: the launcher on every system, the app on phones, tablets and Android TV, and Discover.
linux-x64 Steam Deck and 64-bit Linux PCs
linux-arm64 Arm Linux
windows-x64 Windows, including Windows on Arm
darwin-arm64 Apple silicon Macs
darwin-x64 Intel Macs, and Apple silicon through Rosetta

Paths are relative, with forward slashes: no leading /, no \ and no ... Upper and lower case matter.

There are three ways to say where a build comes from. Pick one:

  • The repo is the game. entry alone: { "web": "index.html" }. With an npm build script, the workflow runs it and ships dist (or build.output).
  • Your build makes folders. build.outputs names each platform’s folder and entry the file inside it that starts the game. The folders can be committed, made by build.command, or handed over by a job of your own (Engines).
  • Your releases already have zips. release, with no build. Your own releases covers how files are matched.

A native entry must be a real program for its system: an ELF binary, an AppImage or a script starting with #! on Linux; an .exe on Windows; the binary inside Game.app/Contents/MacOS/ on a Mac. There is no Proton: a Windows-only game doesn’t play on a Steam Deck in PushPlay.

Channels

Players can add another version of your game beside the main one, from Versions on its page. Each version is its own game in their library, with its own saves, and updates by itself. channels names the ones you mean, and lists them first:

"channels": [
  { "id": "beta", "name": "Beta", "about": "Tested by me first.", "prerelease": true },
  { "id": "demo", "name": "Festival demo", "tag": "demo-*", "release": { "linux-x64": "StarDrift-demo-*.zip" } },
  { "id": "next", "name": "Next", "about": "Every push to the next branch. May break.", "branch": "next" }
]

A channel follows either a branch or releases (prerelease, tag, release), never both. Up to 8. Removing one leaves players’ copies as they are, with a note that it isn’t offered any more.

Things to know

  • Edits show up without a build. PushPlay reads pushplay.json from the default branch each time it looks at the repo, so a new description or genre reaches players within minutes.
  • The id is forever. Saves are kept under it (<id>-save-v1 in localStorage), and players’ copies follow it across updates and repo moves. Rename the game with name, never id.
  • version is a label. Every new build is an update, whatever its version. Change it when you want players to see a new number.
  • Studio wins. Once a game is published, the genres, tags and modes its maker sets in Studio replace the manifest’s on Discover.
  • Nothing else PushPlay-specific belongs in the repo. Only pushplay.json, the art and the workflow file. Anything you don’t want shipped (design files, tools) can be listed in a .pushplayignore, as in .gitignore.

Edit this page on GitHub · Something missing or wrong? Tell us.