Schemas
Every shape in the contract, at a stable anchor.
User
idstring | |
namestring | |
emailstring |
ApiKeyMeta
idstring | |
kind"bearer" | "signature" | |
namestring | |
publicKeystring | null | The registered key for signature keys, else null. |
scopes"bots.read" | "bots.write" | "keys.read" | "keys.write" | "account.read" | "account.write"[] | |
createdAtstring | |
lastUsedAtstring | null | |
revokedAtstring | null |
Bot
idstring | |
ownerIdstring | |
namestring | |
mode"live" | live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral. |
urlstring · max length 2048 | Where stomped connects the match WebSocket (and the /ping deploy check). In production it must be https — upgraded to wss for match sockets — and resolve to a public address (private/loopback ranges rejected), checked at registration and again at every connect. Stored as the URL parses (lowercase scheme and host, no default port, dot segments resolved) without a trailing slash; a query, fragment or credentials are refused. The url the registration returns is the one the handshake is signed over. Registered URLs are never exposed publicly. |
status"active" | "paused" | active bots are seated by matchmaking whenever idle; paused bots sit out. stomped pauses a bot itself after a week-long streak of missed games (see Rules). |
statusChangedAtstring | When status last changed; registration counts. |
createdAtstring |
MatchSummary
idstring | |
mode"live" | live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral. |
status"running" | "completed" | "aborted" | aborted = the mode's wall clock expired, neither bot connected, or the engine failed: no placements, no rating changes. |
stage31 | 32 | 28 | 8 | 2 | 3 | null | Null while the match runs (GET /live/{id} has it). |
playersMatchPlayer[] | |
summaryGameSummary | null | The result, once the match ends. |
replayBytesinteger | null | Size of the .slp at GET /matches/{id}.slp; null while running, and once the arena's retention period has deleted the replay. |
startedAtstring | |
endedAtstring | null |
MatchPlayer
port0 | 1 | 0 or 1 — the Slippi player index. |
botIdstring | |
botNamestring | |
character0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | null | Null while the match runs, and for a bot that never picked. |
costumeinteger (0–5) | null | |
placementinteger | null | 1 = won, 2 = lost; a draw is 1 for both. Null while running. |
scoreinteger | null | Stocks left at the end (a forfeit scores 0 against 4). Null while running. |
ratingDeltanumber | null | Rating after minus before, once the match completes. |
Match
idstring | |
mode"live" | live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral. |
status"running" | "completed" | "aborted" | aborted = the mode's wall clock expired, neither bot connected, or the engine failed: no placements, no rating changes. |
stage31 | 32 | 28 | 8 | 2 | 3 | null | Null while the match runs (GET /live/{id} has it). |
playersMatchPlayer[] | |
summaryGameSummary | null | The result, once the match ends. |
replayBytesinteger | null | Size of the .slp at GET /matches/{id}.slp; null while running, and once the arena's retention period has deleted the replay. |
startedAtstring | |
endedAtstring | null | |
seedstring | null | The engine's random seed, as in the replay's Game Start block (both bots have it from frame −123). Null on the record while the match runs. |
GameSummary
The result of a finished game, or where an aborted one stood.
stage31 | 32 | 28 | 8 | 2 | 3 | A legal stage's slp id (Stage in @slippi/slippi-js). |
players[object, object] | By port. |
character0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | null | Null for a bot that never picked. |
costumeinteger (0–5) | null | |
stocksinteger | Stocks left at the end. |
percentnumber | Damage at the end. |
missedinteger · optional · default 0 | Frames polled without a pad from this bot; each one was played neutral. |
framesinteger | Frames played, from frame 0 to the last. |
endReason"stocks" | "time" | "forfeit" | "engine" | stocks: last stock standing (both lost on one frame: a draw). time: the timer ran out — more stocks wins, then lower percent; equal is a draw. forfeit: no pad of a bot's landed for 300 consecutive polls, or it never connected. engine: the engine broke; the match is aborted and unrated. |
winner0 | 1 | null | Null = draw (or no result on engine). |
LiveMatch
idstring | |
mode"live" | live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral. |
stage31 | 32 | 28 | 8 | 2 | 3 | Drawn before the picks. |
frameinteger | The latest frame the engine reported (−124 before the first). |
playersobject[] | |
port0 | 1 | 0 or 1 — the Slippi player index. |
botIdstring | |
botNamestring | |
character0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | null | |
costumeinteger (0–5) | null | |
stocksinteger | |
percentnumber | |
xnumber | |
ynumber | |
startedAtstring |
LeaderboardRow
rankinteger | |
botIdstring | |
namestring | |
ownerstring | The owner's public handle. |
ratingnumber | Conservative openskill estimate mu − 3σ, rounded to 1dp. New bots start ~0. |
gamesPlayedinteger | |
winsinteger | |
lossesinteger | |
drawsinteger | Equal stocks and percent on time, same-frame double KOs, double forfeits. |
Pick
A character and costume.
character0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | A playable character's slp external id (Character in @slippi/slippi-js): 0 Captain Falcon … 25 Ganondorf. |
costumeinteger (0–5) | Costume index, 0 = default. Characters have 4 to 6; see the character list. |
Pad
One controller state. On the wire it is 8 bytes after the i32 frame.
buttonsinteger (0–65535) | |
stickXinteger (0–255) | |
stickYinteger (0–255) | |
cstickXinteger (0–255) | |
cstickYinteger (0–255) | |
linteger (0–255) | |
rinteger (0–255) |