npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@powbox/creator-kit

v1.7.0

Published

POW!BOX creator CLI: create, preview, validate and submit TypeScript games

Readme

powbox — the POW!BOX creator kit

Local preview is recommended. When your environment supports it, run powbox dev <dir> --open, play and record the local Draft, then review/trim and Confirm/select it. powbox submit <dir> --wait --json can upload and start server-side sandbox admission when the preview is missing, stale, or unavailable. Server-side sandbox admission remains authoritative. A supplied preview still must match the exact source, build, runtime, wrapper, and admitted artifact. --preview remains a no-op compatibility alias.

A Node CLI that runs offline and without POW!BOX services. It builds your game with the platform's own Vite config, runs the same validators the platform runs, hosts it locally behind the production SDK protocol, and uploads source packages for admission after powbox login. A normal login prints a short approval code. A signed-in creator approves it under Connections. Setup copied from a Remix flow creates the same permanent account connection. Local commands keep source, prompts, profile and saved state local. submit uploads the checked source only when requested; resolve checks npm without credentials. Optional dev diagnostics are described below.

Requirements: Node >=22.16.0. No repository checkout is needed. Call authenticated /me and /contract for live compatibility, limits and creation requirements. The pinned commands below are examples for this kit release; use the exact recommended version returned by /me. Use npm or pnpm normally:

npm view @powbox/[email protected] version --registry=https://registry.npmjs.org/
pnpm dlx @powbox/[email protected] --version
pnpm dlx @powbox/[email protected] init my-game
pnpm dlx @powbox/[email protected] check my-game

Alternatively, npm install --save-exact @powbox/[email protected] then npx --no-install powbox <command>, or pnpm add --save-exact @powbox/[email protected] then pnpm exec powbox <command>. Replace powbox below with the pinned dlx invocation when using dlx.

The API compatibility policy is not proof of npm availability. E404/ETARGET means package_unavailable: the exact version cannot be obtained from that registry; recheck discovery later without substituting latest. Network errors, 429 and 5xx mean registry_transient: retry read-only discovery with bounded backoff. An installed CLI provides powbox resolve --json to check the exact recommended version without credentials. Resolve successfully before running the exact update command returned by authenticated GET /me. There is no global self-updater. Never pass your agent credential to npm.

Public documentation: https://dev.pow.box and https://pow.box/agent/llms.txt.

Pairing identity

Run powbox login --agent-type <type> --json. Choose exactly one of grok, gemini, openai, chatgpt, codex, claude, claude-code, muse, instinct, ocean, nanoclaw, other. For Other, add --agent-name "One short name" (optional, at most 40 characters; forbidden for known types).

The HTTPS POST /api/agent/v1/pairings JSON includes agentType and optional Other-only agentName alongside publicKey, label, and optional projectPseudonym. Unknown types are refused, never inferred or normalized. Missing declarations remain compatible. Approval preselects the tool's declaration; the creator can correct it. Only their confirmed identity becomes the connection identity; the unverified declaration is retained separately. Polling never returns their answer. This is device pairing, not MCP or User-Agent identification.

Commands

| Command | What it does | |---|---| | powbox init <dir> [--premium] [--slug s] [--creator @handle] | New project with the arcade profile (v1, PlayCanvas) or premium profile (--premium, v2 Three.js + Rapier). Sets game.json slug/creator, writes .powbox/project.json (a random local id, never sent raw). | | powbox init <dir> --from <source.tar.gz> [--parent <sourceId>] | Exact remix snapshot from a source archive downloaded from POW!BOX. The archive is validated before anything is written. | | powbox dev [dir] [--port 4321] [--open] | Local host shell on 127.0.0.1 (loopback only). Rebuilds game.js when a source file changes. | | powbox check [dir] | Platform build into a scratch directory, then manifest + artefact validation and the source-tree policy. Exit 1 on any issue; every issue carries a code. | | powbox pack [dir] [--out file] | Deterministic <slug>-<treeDigest12>.tar.gz (gzip ustar, sorted entries, regular files only, allowed paths only). Prints the tree digest. | | powbox login [--label "<name>"] [--project <dir>] [--new] [--json] | Device pairing, the default. It returns at once and never waits. The kit makes an Ed25519 key pair for this installation, opens a pairing request (POST /api/agent/v1/pairings, no credential), stores the pending key and poll handle in ~/.config/powbox/pending-pairing.json (mode 0600), prints only a short approval code such as ABCD-EFGH with the instruction "Ask your human to approve this POW!BOX installation." and the exact next command, then exits. A repeated login shows the same pending code without a new request; --new opens a fresh one. The creator enters the code signed in at https://pow.box/creator/#agents (Connections → Approve an agent), reviews the fixed narrow scope and taps Approve. The code alone grants nothing, works once and expires after ten minutes. | | powbox login finish [--json] | Collects the approval with one poll (POST /api/agent/v1/pairings/poll), retried only after slow_down or a network failure, for at most 20 s. Answers approval_required (not approved yet; run it again), approved (stores ~/.config/powbox/installation.json, mode 0600, with the private key, and deletes the pending file), denied or expired. Exit 0 for approved and approval_required, 1 for denied, expired, cancelled or a typed failure such as pairing_unreachable. --wait [--timeout <seconds>] polls until an answer, at most 15 minutes (exit 2 when it ends still pending); use it only in an ordinary terminal. | | powbox login status [--json] / powbox login cancel [--json] | status reads the pending code and expiry locally, without network. cancel deletes the pending file; the request can no longer be collected and expires on POW!BOX. | | powbox renew [--new] [--json] | Asks POW!BOX to renew this connection's own credential and exits at once. The kit makes the new credential (and a new signing key for a paired installation) on this machine and stores them in pending-renewal.json (0600) before the request; POW!BOX receives only a SHA-256 verifier and the new public key. The creator approves or denies in POW!BOX under Connections. Run it again to re-send the same request safely; --new starts over. | | powbox renew status / finish / cancel [--json] | status reads the renewal state (one request). finish uses the current credential: after approval, POW!BOX switches the same connection to the new credential and the kit installs it in installation.json; the old credential stops at once. If the answer is lost, run finish again: it checks with the new credential and installs it. cancel withdraws the open renewal. No output ever contains a credential, key or verifier. | | powbox login "<connection setup>" | Exchanges the short-lived, one-use setup value with POST /api/agent/v1/connections/claim. It stores only the returned permanent rb_agent_… connection. The connection can use all of that creator's remixable games until the creator disconnects it. | | powbox submit [dir] [--name "…"] [--note "…"] [--wait] [--json] | Packs and uploads once. --name labels this pushed version in Creator Studio (1–60 characters). Returns the durable job, ingest receipt, admission receipt, publication receipt when available, and the local preview result. | | powbox status [dir] or powbox status --job ID --watch --json | Shows project history or follows one owner-scoped job through terminal admission. | | powbox guide "<question>" | Asks the Creator Guide. Prints the answer, statistics with their source id and date, ideas, citations, limitations, corpus versions and model. | | powbox telemetry on\|off\|status | Diagnostics switch (local first, then the server when logged in). | | powbox environment show\|share\|decline\|clear\|status [--json] | Optional compatibility card (schema powbox-environment/1). show collects it on this machine and prints the exact fields; nothing is sent. share prints the card and sends it only after --yes or a typed yes (exit 3 consent_required otherwise); run it again to refresh. decline records "do not ask again". clear deletes the shared card. |

POWBOX_ORIGIN overrides the server origin (used by tests and staging); otherwise the origin stored at login, else https://pow.box. Individual requests have a timeout of at most 15 s. Upload and submit are not retried. --wait polls the exact job with bounded backoff (--timeout 120 sets a seconds budget). Exit codes with --wait --json: 0 terminal success, 1 failure or rejection, 2 timeout. After timeout, resume with status --job ID --watch --json. Do not duplicate a pending submission. Safe error output keeps the job and correlation identity, retry class, bounded diagnostics, and exact next action.

Paired installations

A paired installation signs every request (x-powbox-signed-at, x-powbox-nonce, x-powbox-signature: Ed25519 over the method, path, time, nonce and body digest; nonces are single-use, times must be within five minutes). POW!BOX refuses its bearer without a valid signature (401 agent_signature_required / agent_signature_invalid), so copying the credential to another machine is not enough. Its scope includes owner-scoped jobs/<id> status with its existing publishing routes. Everything else answers 403 agent_scope. The creator disconnects it from Connections at any time; the next request then answers 401 agent_required.

Local Draft play-and-record loop

Install ffmpeg and ffprobe locally. Run powbox dev my-game --open, then play, Record, Stop, review playback, adjust the trim, and Confirm and select. Repeat as you improve the game. Takes persist under .powbox/captures and remain local; source/build changes mark earlier takes stale. Reload and record a replacement. Record captures only the approved silent game canvas through the real SDK. Cancel, exit and backgrounding clean up capture. Unsupported browsers report an error.

Run powbox check my-game and powbox pack my-game before submission. Neither uploads media. Choose a 3–20 second final trim, then explicitly use Submit game + selected preview or powbox submit my-game --wait --json. Admission must match the exact source and built game before the selected trimmed bytes can attach. Agent login stays in the CLI; no credentials reach the local page or game. Failed uploads can be retried with the same selection and bytes. Source or build mismatch requires another local iteration. The UI reports private app storage, not an unverified R2 upload. If no usable preview is available, the kit submits the checked source without media and returns an advisory. Server-side sandbox admission remains authoritative. Request listing after admission. Complete validated media and all technical eligibility checks are required. Eligible requests become Listed immediately. No review decision is required.

Developer diagnostics (powbox dev)

http://127.0.0.1:4321/ is a mock of the production shell, not a simplified one:

  • The game runs in an iframe with sandbox="allow-scripts" and allow="" (opaque origin, no storage, no host access), loading /frame/index.html: the production release-host template with the production import map shape (playcanvas, @vibegames/sdk → /runtime/v1/…; three, three/addons, @dimforge/rapier3d, @vibegames/sdk → /runtime/v2/…). The document is served with Content-Security-Policy: sandbox allow-scripts like the content origin.
  • The host page drives the game with the platform SDK’s GameHost — the real handshake, schemas, budgets and timeouts.
  • Mock player (name/avatar editable, kept in .powbox/mock-profile.json; the game receives only { id, name }), mode selector (feed / page / creator), save-state viewer (.powbox/state.json, scoped to the slug), a live log of every protocol message with byte sizes and timing, buttons for pause / resume / exit / sound, and the recorded services (saves, scores, challenges, share, analytics, errors).
  • Build status with the platform validators' issues, refreshed every 2 s.
  • Failure modes via the query string: ?fail=init (no vg:bootstrap is ever sent: the SDK must fall back to standalone), ?fail=timeout (bootstrap only after HELLO_TIMEOUT: the host hits its ready timeout), ?fail=save and ?fail=score (the mock API refuses those operations with 503).
  • Production-shaped mock endpoints for your own tooling: GET /api/mock/v1/state?slug=… and POST /api/mock/v1/game with { slug, operation, value } (save ≤ 16 KiB → save_too_large, score → invalid_score, event props ≤ 2 KiB → event_too_large, play, like, bookmark), returning { error: code } with the production status codes.

The npm package includes the platform runtime and validators.

What a source package may contain

game.json, src/** (.ts/.json; entrypoint src/game.ts, JavaScript sources refused), assets/**, package.json, tsconfig.json, vite.config.ts, index.html, README.md, LICENSE/LICENSE.md/LICENSE.txt, pnpm-lock.yaml/package-lock.json, .gitignore. Limits: 16 MB compressed, 32 MB expanded, 400 files, depth 8. package.json dependencies must be a subset of the pinned stack at exact versions (typescript 5.9.3, vite 8.3.3, playcanvas 2.23.0, three 0.180.0, @types/three 0.180.0, @dimforge/rapier3d 0.19.3, @vibegames/sdk 0.2.0 or workspace:*), and scripts other than build/dev/check are refused. Secret-looking material anywhere in text (private keys, cloud/API tokens, KEY=value lines outside src/) is refused as secret_material. powbox check and powbox submit apply the same rules before anything is uploaded. The admission builder keeps only src/, assets/ and game.json; your vite.config.ts/tsconfig.json serve your editor and local vite build.

Diagnostics

Off until you log in; on by default afterwards. powbox dev sends a summary to POST /api/agent/v1/telemetry on exit and every 10 minutes, and prints a line when it does. The payload is exactly: schemaVersion, toolVersion, sdkVersion, projectPseudonym (sha256 of the local project id), period, endpoints (counts per mock endpoint/method), latencyMs (p50/p95/max), errors (count and per code), sizes (largest save in bytes, bundle gzip bytes), resources (build time, RSS). Never included: source, prompts, the mock profile, saved state, credentials or any game-owned payload. powbox telemetry off stops it. The Connections section lists each connection and lets you disconnect it.

Environment card (optional)

After pairing, the kit asks once whether to share a compatibility card. It helps POW!BOX diagnose compatibility, such as the required Node.js version, a local browser for preview and recording support. It is optional and never blocks pairing, local work, admission or listing. powbox environment show --json collects it locally: agent family (only from --agent, never inferred), OS family and major version, CPU architecture, environment class (physical, VM, container, managed sandbox), Node.js, the package managers the kit can run (npm, pnpm, yarn, bun) with versions, local Chromium availability and major version, offscreen/visible support, ffmpeg/ffprobe availability and major version, a WebGL class (hardware, software, unavailable), local preview/recording support, a coarse memory tier and allowlisted diagnostic codes. Each check keeps only a version number or a fixed choice and discards the rest of the program output. Never collected: hostnames, user names, serials, IP or MAC addresses, location or time zone, process lists, command history, package inventories, paths, source or game files, prompts, browser data, cookies, credentials, setup links or raw command output. powbox environment share --yes --json sends the shown card with the connection's signed request (POST /api/agent/v1/environment). The creator sees it on that connection and can clear it; revoking the connection clears it.

For agents

Run powbox check after every change and read the issue codes; powbox pack prints the tree digest that the server will record; powbox submit prints the ids you need for powbox status. Nothing in this kit starts a game on POW!BOX: admission, unlisted sharing and listing happen on the server after submit, and the server's messages are printed as they are.

Showcase and listing media

An optional showcase in game.json describes the opening of your game as a fixed script: waits, taps, presses, drags and key presses on the game area (0–1 coordinates), at most 30 s, plus the intro clip window (3–20 s), 2–6 screenshot times, an optional cover time and hud: "keep" | "hide". No commands, code, selectors, addresses or network. powbox check and powbox status report a missing or invalid showcase as an advisory; it never blocks a check, admission or listing. powbox showcase my-game plays the script on the local Draft and writes .powbox/showcase/ (preview.webm, shot-N.png, cover.png, plan.json); nothing is uploaded.

POW!BOX can render your published release at real speed and suggest a portrait cover, screenshots and a silent 720×1280 intro clip. Suggestions become listing media only when accepted. With the creator's Manage listing media permission for its connection, an agent can run powbox media capture my-game [--script file.json], powbox media status <id>, powbox media accept <id> [--kinds cover,screenshot,intro], powbox media cancel <id> and powbox media remove <artifactId> <mediaId>. The permission never covers listing.

Capture is optional. A finished cover, screenshot or MP4/WebM intro made outside POW!BOX can instead be attached as ordinary creator media to the admitted artifact; POW!BOX decodes and validates it before it counts for Listing. The kit does not yet have a powbox media upload command or a Studio file picker. Use the authenticated POST /media recipe in the current agent guide for a direct upload. Do not say that capture is the only media path, and do not attach unrelated promotional footage: direct media still belongs to one of the creator's immutable releases.

Run lifecycle (powbox-run/1, SDK 1.0.0)

Every game uses one run lifecycle: game.run.start() when play begins, game.run.finish({ outcome, score }) exactly once per run, and game.run.onReplay(reset) for Play again, plus deterministic test hooks game.testing.register({ finish(outcome), snapshot() }). Every game declares an enabled competition in game.json. POW!BOX owns the result screen (You won! / Game over, the named leaderboard with your own row, personal best, Play again, "Try to beat my score"), exactly-once result storage, the board and opaque challenge links. Scores are casual and browser-reported. gameOver, startRun, endRun, onReplay, replay, scores, challenges and share are gone and powbox check refuses them; a release built on an earlier lifecycle is not listed and does not start. powbox init creates the reference game Spark Catch. powbox check runs a browser acceptance test of the lifecycle at 390×844 (touch) and 1280×800 when a Playwright Chromium is available (pnpm dlx [email protected] install chromium); admission runs the same test. Both templates (powbox init, powbox init --premium) pass it. Rules: https://dev.pow.box/#results.

Contract revisions and upgrades

This package has npm version 1.7.0 and targets public contract revision 6.9.0. Those versions are independent. Its powbox package metadata records compatible contract revisions and capabilities. The public JSON guide at https://dev.pow.box/agent/guide.json gives the current compatibility matrix; https://dev.pow.box/versions/index.json lists immutable historical guides and revision records. Each record includes the affected surface, minimum compatible kit, recommended kit, exact upgrade command and creator migration action.

Contract MAJOR changes require an upgrade; MINOR adds compatible capabilities; PATCH changes documentation without changing supported behavior. The current revision recommends creator-kit 1.7.0. POW!BOX runs native TypeScript only: runtime v1 (arcade) or v2/v3 (premium). The guest-v1 data format (game.guest.json, runtime v4) was removed: POW!BOX does not accept, list or play it. Make a local preview when the environment supports it. A missing or stale preview does not block source submission or sandbox admission. API compatibility responses use the same revision and capability minimums.

Resolve npm view @powbox/[email protected] version --registry=https://registry.npmjs.org/ before installing with pnpm add --save-exact @powbox/[email protected]. A compatibility recommendation is not proof that npm has published that version. If exact-version discovery fails, keep the existing installation and retry discovery later; do not silently substitute latest.

The selected take also pins the exact production wrapper digest, which includes the immutable runtime module URLs. Changing the runtime invalidates the take even when source and built game files are unchanged. Submission sends this digest and requires the admitted artifact's receipt to match it; a missing or different wrapper digest refuses the preview association.

Managed asynchronous preview receipts require kit 0.6.0 (async-preview). Poll the bound receipt before treating attachment as complete. Preview attachment remains optional for admission and strict when supplied. Local tarball tests do not prove npm availability.

Optional Matter.js physics

Pin matter-js to 0.20.0 and @types/matter-js to 0.20.2. Use creator-kit 1.6.0 for these packages. Version 1.5.0 keeps its original allowlist and cannot check them. Matter.js is bundled into game.js and counts toward the selected runtime budget. The SDK and shared engines stay external.

The builder resolves Matter.js from its platform-owned toolchain. The platform lockfile pins the package and its SHA-512 integrity. Creator lockfiles, registry settings, package overrides, installed modules and Vite configuration cannot select these build bytes. The build installs no creator dependencies and runs without network access. Type declarations do not enter the browser artifact. The normal artifact checks, sandbox, permissions and Unlisted lifecycle apply.