API Docs

Publisher SDK

AdminUpdated Sep 19, 2026

Publisher SDK

import { ArcadeyClient } from "@portal/publisher-sdk";

const arc = new ArcadeyClient({
  apiKey: process.env.ARCADEY_API_KEY!,
  baseUrl: "http://localhost:5001", // optional
});

// One-shot: create → upload → wait for the moderation verdict.
const { slug, status, playUrl } = await arc.publish({
  title: "My Game",
  category: "arcade",
  description: "a polished little arcade game",
  files: [{ path: "index.html", content: "<!doctype html>…" }],
  // realtime: true,  // opt into multiplayer
});
console.log(status, playUrl);

// Or step by step:
const game = await arc.createGame({ title: "My Game", category: "arcade" });
await arc.uploadVersion(game.id, files);      // waits for review by default
await arc.listGames();
await arc.summary();
await arc.game(game.id);                       // manage view + moderation feedback

files is an array of { path, content } (content is a string or Buffer). The SDK zips them for you and polls until the game is published or rejected.


Was this page helpful?
Publisher SDK