본문으로 건너뛰기
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-player2인용
io.io 게임
parkour옵비 & 파쿠르
horror공포
logic논리
girls드레스업 & 요리
kids어린이
runner러너

태그 (tags)

키이름
20482048
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매치3
memory메모리
merge머지
military밀리터리
mines지뢰
minesweeper지뢰찾기
motorbikes오토바이
mouse마우스
multiplayer멀티플레이
mystery미스터리
neon네온
numbers숫자
obby오비
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-toe틱택토
tiles타일
touch터치
tower-defense타워 디펜스
trucks트럭
two-player2인용
tycoon타이쿤
typing타자
vs-ai컴퓨터와 대결
words단어
zombie좀비

시리즈 (series)

키이름
classic-arcade클래식 아케이드
brain-trainers브레인 트레이너