GrowBlocks Dev Kit
v1.4.0Build, play-test with screenshots, and ship three.js browser games on GrowBlocks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
growblocks_docs Read the Dev Kit API
The GrowBlocks Dev Kit API for writing game.js (llms.txt): the contract, every gb.* call, patterns and pitfalls. Read it before writing game code. Pass topic (e.g. "gb.physics", "gb.net", "Pitfalls") to get one section.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
topic | string |
growblocks_check Check and play the game
Run the Dev Kit checker on the game folder. play=false: static checks (syntax, unknown gb.* calls, blocked browser APIs, imports, file limits). play=true: also plays the game headless inside GrowBlocks for some seconds, reports every runtime error and returns a screenshot. Run it after every change; fix everything it reports.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
play | boolean | |
seconds | number |
growblocks_whoami Who is signed in
Who the GrowBlocks CLI is signed in as, and how many games they have. Fails with "Not signed in" if login is needed.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_login Sign in to GrowBlocks
Start signing in to GrowBlocks. Returns a link and a code: give both to the human, who opens the link, checks the code, signs in with Google and presses Allow. The sign-in finishes in the background; check it with growblocks_whoami.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_games List my games
The signed-in developer's games: status (draft, in review, live, changes needed), test and live builds with their links, and GrowBlocks' review note.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_status Game status and review note
The status of the game this folder is linked to (growblocks.json): builds, links, review state and note, and what to do next.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_create_game Create a game on GrowBlocks
Create a new game on GrowBlocks and link the folder to it. address: 3-32 lowercase letters, numbers and dashes (its URL, game.html?g=<address>). Ask the human for the name and address first. A logo (WebP, under 22 KB) and a description are needed before submitting.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
name * | string | |
description | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
logo | string | Path to a WebP logo. |
players | number | Players per room, 1-16. |
tagline | string |
growblocks_link_game Link folder to a game
Link the folder to one of your existing games (writes growblocks.json).
| Parameter | Type | Description |
|---|---|---|
address * | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_update_game Change game details
Change the linked game's name, tagline, description, studio (the name shown after "by"; empty = the developer's account name), players per room or logo.
| Parameter | Type | Description |
|---|---|---|
description | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
logo | string | Path to a WebP logo. |
name | string | |
players | number | |
studio | string | |
tagline | string |
growblocks_push Upload a test build
Run the static checks, then upload the folder as a new test build of the linked game. Returns the unlisted test link to play and share. Does not make anything public. At most 20 uploads per game a day, so push when a change is worth testing.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_submit Submit for review
Submit the latest test build to GrowBlocks for review (needs a logo and a description). Only do this when the human asks: GrowBlocks plays it and approves it or sends a note.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_coin The game's coin
The game's coin (any game, no plaza needed): with no arguments its status (none, held, raising on Mosh Trade with the raise's progress, launching, live, failed). name + symbol hold a name and ticker for the game. launch (a number) links a launch the human made on the GrowBlocks launchpad (checked on chain: theirs, carrying the held name). Launching itself is done by the human in the browser, from the game's card on devkit.html (Launch on Mosh Trade): never ask for keys or sign anything.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
launch | number | |
name | string | |
symbol | string |
growblocks_blocks Search blocks
Search the GrowBlocks blocks: parts of games other developers published (vehicles, game modes, enemy brains, level kits) that a game can add instead of writing them. Look here before building something common. Pass words to search names, descriptions and tags.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
query | string |
growblocks_block_info Block details
One block: what it does, its versions (and what it forked), its entry file and which live games use it.
| Parameter | Type | Description |
|---|---|---|
block * | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_add_block Add a block to the game
Add a block to the game: copies its files into blocks/<slug>/ and records it in growblocks.json. Then import it from ./blocks/<slug>/<entry> and read its code for how to use it. Do not edit the block files: GrowBlocks recognises the block by them and its author earns from the game (paid by GrowBlocks; the game keeps its 70%). To change one, publish a fork.
| Parameter | Type | Description |
|---|---|---|
block * | string | slug or slug@version |
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_publish_block Publish a block publicly
Publish the folder as a block. It needs block.json (slug, name, description, entry, tags, and forkOf if it started from another block). Others can then add it, and its author earns from every live game that ships it. Only when the human asks.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_pack Pack a 3D model
Make a 3D model game-ready (needs, in the game folder: npm i -D @gltf-transform/core @gltf-transform/extensions @gltf-transform/functions meshoptimizer sharp). mode "prop": dedup, prune, WebP textures (tex, default 512), Meshopt; tris or simplify cut triangles. mode "char": a rigged character, with clips (comma list of other GLBs of the same rig, merged by bone name, Name=file.glb to name one), textures 1024, Meshopt without position quantisation (it breaks skinned meshes). fix_winding flips inside-out meshes (dark in game) and smooths normals. Writes <name>.packed.glb unless out is given; pri…
| Parameter | Type | Description |
|---|---|---|
file * | string | |
mode * | string | |
base_color_only | boolean | |
clips | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
fix_winding | boolean | |
keep_textures | boolean | |
no_meshopt | boolean | |
out | string | |
simplify | number | Triangle ratio 0-1. |
tex | number | |
tris | number | Triangle budget. |
growblocks_glbinfo Inspect a GLB
What a GLB holds: triangles (and drawn, with instancing), vertices, draw calls, materials (with baked-lightmap roles), textures with sizes and bytes, skins, clips with lengths, compression; with warnings for the GrowBlocks limits (3 MB a file, Draco/KTX2 not supported, huge textures). No dependencies.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
growblocks_atlas Build an icon sheet
Put a folder of icon images into one WebP sheet plus a JSON map {icons:{name:[x,y,w,h]}} (a build holds at most 200 files). cell: px per icon (128); cols; key=true keys out a plain background. Needs sharp (npm i -D sharp).
| Parameter | Type | Description |
|---|---|---|
icons * | string | The folder of icons. |
cell | number | |
cols | number | |
dir | string | The game folder (default: the folder the assistant runs in). |
key | boolean | |
out | string |
growblocks_blender Run headless Blender
Run headless Blender (found via BLENDER or the usual install paths) with a GrowBlocks script. op "clean": a generated prop joined, decimated (tris), scaled (size in m along axis), pivot bottom/top/center, textures shrunk (tex). "ao": ambient occlusion baked into vertex colours (dist, rays). "voxelize": cells JSON (cell size, by material|object|kind). "export": a .blend to GLB with every action as a clip and custom properties as extras. "robot": builds a hard-surface robot or mech (bevelled curved armour shells with real panel gaps, drums, pistons, hoses, vents, one locked palette, AO + edge we…
| Parameter | Type | Description |
|---|---|---|
file * | string | The model or .blend; for robot the design (example:biped, example:spider, my_robot.py, preset.json). |
op * | string | |
dir | string | The game folder (default: the folder the assistant runs in). |
options | object | Script options, e.g. {"pivot":"bottom","size":1.8,"tris":5000}, {"cell":0.5} or for robot {"palette":"olive","budget":12000,"param":"pod=0"}. |
out | string |
growblocks_voxel Check, fix or render voxel art
Voxel art by the voxart kit rules (gb.use("voxart"): one locked palette of hue-shifted ramps, the rules every GrowBlocks voxel model is held to). file: a .vox (MagicaVoxel, Scenario Voxels, the toVox() of your generator) or the cells JSON of growblocks_blender voxelize with by "color" (a Meshy/Tripo GLB as voxels). op "check": score 0-100 and the issues (colours, floating pieces, glow share, symmetry for kind "character", speckle, thin tips, voxel budget, readability at 96 px). "fix": snaps to the palette, caps colours, drops floating bits, fills pinholes, cleans speckle (mirror left|right, si…
| Parameter | Type | Description |
|---|---|---|
file * | string | |
op * | string | |
colours | number | Most colours to keep (the style allows 24). |
dir | string | The game folder (default: the folder the assistant runs in). |
kind | string | |
mirror | string | |
out | string | |
px | number | View size in px (384). |
size | string | Resample to "64" or "48x64x32" voxels. |
growblocks_playtest Playtest headless
Play the game headless (like growblocks_check with play) with scripted input, and get screenshots over time plus the engine's own numbers each second (fps, draw calls, triangles from window.__gbtest). steps: e.g. "click 0.5,0.85; keys KeyW:1500,Space; drag 0.2,0.5>0.6,0.5; state boss; wait 2000" (positions under 1 are a share of the screen; state = a gb.dev.states name). shots: seconds to screenshot at ("3,12"). Returns the summary and the last screenshot; all shots and report.json are in a temp folder it names.
| Parameter | Type | Description |
|---|---|---|
dir | string | The game folder (default: the folder the assistant runs in). |
gpu | boolean | |
mobile | boolean | |
shots | string | |
size | string | WxH, default 1280x800. |
steps | string |
growblocks_new_game New game folder
Create a new game folder from the latest starter kit (game.js, play.html, check.mjs, llms.txt, gb.d.ts, this CLI and .mcp.json). Then pass that folder as dir to the other tools.
| Parameter | Type | Description |
|---|---|---|
folder * | string |