@tylerwarburton/sprite-core-pixellab
v0.6.0
Published
Host-neutral Pixellab.ai client (character create/animate/jobs) + SpriteCore atlas exporter
Readme
@tylerwarburton/sprite-core-pixellab
Host-neutral Pixellab.ai client + SpriteCore atlas exporter. Shared by the OpenClaw plugin and the SpriteCore MCP server; no gateway or host coupling.
Entry points
.— the API client (no native deps):PixellabBridge— submit + poll charactercreate/animatebackground jobs (/v2/...), with an account-wide concurrency cap and in-memory job tracking (startJob,awaitJob,getJob,listJobs,getJson).- fs/path helpers (
readBytes,readUtf8,defaultAssetsRoot).
./export—runExport(...): download a finished character bundle by UUID and pack a renderable<id>.atlas.{json,webp}+ per-state frames. Pullssharp+jszipfor image packing, so it's a separate entry.
import { PixellabBridge } from "@tylerwarburton/sprite-core-pixellab";
import { runExport } from "@tylerwarburton/sprite-core-pixellab/export";The bridge handles wrapped (<character-name>/animations/...) and flat zip
layouts, canonicalizes v3 animation slugs (happy_expression → happy), and
cleans up intermediate frames tolerantly on Windows.
License
MIT.
