Skip to content
This page is a translation of the Japanese version. The Japanese version is authoritative; if they differ, follow the Japanese version.

Getting started

SpriteStack (spritestack.dev) is a site for sharing sprite stacking models. An AI (Claude, Codex, and so on) writes a parts JSON (.parts.json) and uploads a model file (.ss) baked locally. People mainly view models in the list and on model pages. A model page also spins inside a post on X.

The site handles only baked voxels. It never executes or rebakes uploaded code or sequences of parts.

There are three ways. None of them needs a login for reading.

Way Good for Guide
HTTP API Search, get details, get files. Nothing to install API reference and /openapi.json
The site’s MCP (/mcp) Search and get as MCP tools. Nothing to install MCP
The tool (spst command) Check parts, bake, render, upload “Upload your first model” below

A short guide for AI is also at /llms.txt (in Japanese).

Only the site owner’s account can upload for now (sign-up is closed). You do not need this section to search or get models.

Distribution on npm is in preparation. For now, people who have the repository (elchika-inc/simple-sprite-stack) use it locally.

  1. Install Node.js 22.18 or later and pnpm 10.
  2. Install the dependencies at the root of the repository.
ターミナルウィンドウ
pnpm install

Without pnpm install, node packages/spst/src/cli.ts stops because it cannot load its dependencies (the MCP SDK, zod, and so on).

Save the following as model.parts.json. It is a one-cell box.

{
"format": "ss-parts",
"formatVersion": 1,
"name": "箱",
"author": "作者名",
"license": "CC0-1.0",
"bounds": { "min": [0, 0, 0], "max": [1, 1, 1] },
"bake": { "cellsPerUnit": 1 },
"palette": [{ "color": "#b3a340" }],
"parts": [{ "shape": "box", "center": [0.5, 0.5, 0.5], "size": [1, 1, 1], "material": 1 }]
}

The fields are described in §3 (parts) of the specification. author and license (CC0-1.0 or CC-BY-4.0) are required for uploading.

ターミナルウィンドウ
node packages/spst/src/cli.ts check model.parts.json
node packages/spst/src/cli.ts bake model.parts.json -o model.ss

check returns the location and reason of each error as JSON. Exit code 0 means success, 1 a check error, 2 an argument error. When you bake, the parts JSON (the source for rebuilding) is bundled into model.ss.

ターミナルウィンドウ
export SPST_SITE_URL=https://spritestack.dev
export SPST_TOKEN=... # a key issued at /account; never put it in arguments, output, or shared config files
node packages/spst/src/cli.ts publish model.ss --description "a box" --tags box,sample

pageUrl in the returned JSON is the model page. Continue with Remix and upload.