Publishing a game on InstaPlay
Upload a game in the dashboard or with the instaplay CLI: it builds the zip, checks the metadata,
uploads the build, waits for the automatic checks and, with the --submit flag, sends a moderation
submission. Install the CLI into the project (npm install --save-dev instaplay) instead of running
it from the registry — installation, all commands and errors are in the
guide: CLI. Before publishing, run the game in the
emulator.
1. Studio key
Games are published by a studio: every studio has its own ipk_… keys. The studio owner or an
admin creates a key in the dashboard: “Settings” → “API keys”, the “Publish” scope (details — the
guide: API keys). The key is a secret: do not commit it to the game
repository. In CI pass it as the INSTAPLAY_API_KEY environment variable (API address —
INSTAPLAY_API_URL).
npx instaplay login --key ipk_… --api https://<portal>/api/v1
npx instaplay whoami # the studio of the current key
login checks the key against the API and stores it in ~/.config/instaplay/credentials.json.
2. instaplay.json metadata
instaplay.json sits next to the game: slug, category, tags, ru and en texts, cover, leaderboards.
Category and tags are keys from the reference below only: you cannot invent your own, or
publishing returns 400 validation_failed (“unknown tag …”). Text quality threshold — title 2–60
characters, SEO description 50–160, description 300–5000, “how to play” from 80, FAQ 3–6
questions, 2–10 tags, a 16:9 cover of at least 1280×720.
3. Check and publish
npx instaplay check ./my-game # threshold: meta, category and tags (M03), zip, SDK, cover
npx instaplay publish ./my-game --submit --note "…" # upload, checks and a moderation submission
npx instaplay status ./my-game # build checks and submission state later
checkvalidates the category and tags against the portal reference (check M03) before publishing. No network — a warning,publishwill check them;--offlineskips it.publishis safe to repeat: the idempotency key ispub-<slug>-<sha256 zip>by default, a repeat of the same build does not create a second one.- The portal test stand checks the build (start,
ready, JS errors, requests outside its own origin, a non-empty frame). Only--submit(or the “Submit” button on the dashboard's “Moderation” tab) creates a moderation submission: without it the build just updates the draft. A trusted studio's game is published right after the checks, without a submission (CLI: publishing). - Exit codes:
0— the build passed,1— the checks failed,2— an error (key, network, metadata).
Category and tag reference
Keys for the category and tags fields of instaplay.json (the portal name in brackets). The API
returns the same list: GET /api/v1/categories and GET /api/v1/tags (the key field).
分类(category)
| 键 | 名称 |
|---|---|
action | 动作游戏 |
adventure | 冒险游戏 |
arcade | 街机游戏 |
puzzle | 益智游戏 |
match3 | 三消游戏 |
mahjong | 麻将游戏 |
merge | 合成游戏 |
idle | 放置与点击游戏 |
racing | 赛车游戏 |
shooting | 射击游戏 |
sports | 体育游戏 |
strategy | 策略游戏 |
rpg | 角色扮演 |
simulation | 模拟经营游戏 |
cards | 纸牌游戏 |
board | 棋类游戏 |
word | 文字游戏 |
quiz | 问答游戏 |
two-player | 双人游戏 |
io | .io 游戏 |
parkour | 跑酷与闯关 |
horror | 恐怖游戏 |
logic | 逻辑游戏 |
girls | 换装与烹饪 |
kids | 儿童游戏 |
runner | 跑酷冲刺 |
标签(tags)
| 键 | 名称 |
|---|---|
2048 | 2048 |
animals | 动物 |
arena | 竞技场 |
auto-battler | 自动战斗 |
ball | 球 |
basketball | 篮球 |
beauty | 化妆 |
blocky | 方块世界 |
brain | 烧脑 |
brainrot | 脑腐 |
bricks | 砖块 |
bubble-shooter | 泡泡龙 |
cars | 汽车 |
casual | 休闲 |
clans | 公会 |
classic | 经典 |
colorful | 缤纷色彩 |
cooking | 烹饪 |
destruction | 破坏 |
drawing | 绘画 |
dress-up | 换装 |
educational | 益智教育 |
endless | 无尽模式 |
escape | 逃脱 |
fantasy | 奇幻 |
farm | 农场 |
fighting | 格斗 |
flappy | 飞扬小鸟 |
flying | 飞行 |
football | 足球 |
hardcore | 硬核 |
heroes | 英雄 |
hidden-objects | 找东西 |
high-score | 冲击高分 |
horror | 恐怖 |
jigsaw | 拼图 |
jumping | 跳跃 |
keyboard | 键盘 |
kids-friendly | 适合儿童 |
mahjong | 麻将 |
match-3 | 三消 |
memory | 记忆 |
merge | 合成 |
military | 军事 |
mines | 地雷 |
minesweeper | 扫雷 |
motorbikes | 摩托车 |
mouse | 鼠标 |
multiplayer | 多人 |
mystery | 推理 |
neon | 霓虹 |
numbers | 数字 |
obby | 障碍跑酷 |
offline | 离线 |
one-button | 单键操作 |
paddle | 挡板 |
pairs | 配对 |
parking | 停车 |
physics | 物理 |
pixel | 像素风 |
pvp | PvP |
quick | 5 分钟 |
relaxing | 解压放松 |
retro | 复古 |
rpg | 角色扮演 |
shooter | 射击 |
singleplayer | 单人游戏 |
sliding-puzzle | 滑块拼图 |
snake | 贪吃蛇 |
solitaire | 纸牌接龙 |
sorting | 分类 |
space | 太空 |
stickman | 火柴人 |
survival | 生存 |
tic-tac-toe | 井字棋 |
tiles | 方块 |
touch | 触屏 |
tower-defense | 塔防 |
trucks | 卡车 |
two-player | 双人 |
tycoon | 大亨 |
typing | 打字 |
vs-ai | 人机对战 |
words | 单词 |
zombie | 僵尸 |
系列(series)
| 键 | 名称 |
|---|---|
classic-arcade | 经典街机系列 |
brain-trainers | 大脑训练系列 |