ข้ามไปยังเนื้อหา
InstaPlay
หัวข้อเอกสาร SDK

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
  • check validates the category and tags against the portal reference (check M03) before publishing. No network — a warning, publish will check them; --offline skips it.
  • publish is safe to repeat: the idempotency key is pub-<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จับคู่ 3
mahjongมาจอง
mergeเมิร์จ
idleไอเดิลและคลิกเกอร์
racingแข่งรถ
shootingยิงปืน
sportsกีฬา
strategyวางแผนกลยุทธ์
rpgRPG
simulationจำลองสถานการณ์
cardsไพ่
boardกระดาน
wordคำศัพท์
quizตอบคำถาม
two-playerสองผู้เล่น
io.io
parkourอ็อบบี้และปาร์กัวร์
horrorสยองขวัญ
logicตรรกะ
girlsแต่งตัวและทำอาหาร
kidsเด็ก
runnerวิ่งผจญภัย

แท็ก (tags)

คีย์ชื่อ
20482048
animalsสัตว์
arenaอารีน่า
auto-battlerออโต้แบทเทิล
ballลูกบอล
basketballบาสเกตบอล
beautyแต่งหน้า
blockyโลกบล็อก
brainฝึกสมอง
brainrotBrainrot
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เรียง 3
memoryความจำ
mergeรวมร่าง
militaryทหาร
minesทุ่นระเบิด
minesweeperมายสวีปเปอร์
motorbikesมอเตอร์ไซค์
mouseเมาส์
multiplayerผู้เล่นหลายคน
mysteryปริศนา
neonนีออน
numbersตัวเลข
obbyObby
offlineออฟไลน์
one-buttonปุ่มเดียว
paddleแป้นรับลูก
pairsจับคู่
parkingจอดรถ
physicsฟิสิกส์
pixelพิกเซล
pvpPvP
quick5 นาที
relaxingผ่อนคลาย
retroเรโทร
rpgRPG
shooterยิงปืน
singleplayerเล่นคนเดียว
sliding-puzzleปริศนาเลื่อนช่อง
snakeงู
solitaireโซลิแทร์
sortingจัดเรียง
spaceอวกาศ
stickmanสติกแมน
survivalเอาชีวิตรอด
tic-tac-toeXO
tilesไทล์
touchระบบสัมผัส
tower-defenseป้องกันหอคอย
trucksรถบรรทุก
two-player2 ผู้เล่น
tycoonเจ้าสัว
typingพิมพ์ดีด
vs-aiเล่นกับคอมพิวเตอร์
wordsคำศัพท์
zombieซอมบี้

ซีรีส์ (series)

คีย์ชื่อ
classic-arcadeClassic Arcade
brain-trainersBrain Trainers