Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿณโœจ CookSprite

Cook up game-ready sprites with AI. ๐ŸŽฎ๐Ÿ‘พ

Directional clips ยท sprite sheets ยท sprite pairs (diffuse + normal map) for real dynamic lighting.

License: Apache 2.0 Python 3.11+ TypeScript three.js FastAPI Docker ComfyUI export PRs welcome Status: v1 slice


CookSprite is AI-generation-first, not a hand-drawing pixel editor. ๐ŸŽจ Generate, preview, pixel-perfect, and regenerate individual frames โ€” then round-trip to editors like Aseprite via standard PNG sprite sheets when you want to hand-tune. ๐Ÿ–Œ๏ธ

๐Ÿงฉ Design in one picture

๐Ÿง  Model + Inference  โ”€โ”€[ /infer HTTP API ]โ”€โ”€โ–บ  atomic op ยท local OR docker
โš™๏ธ  Workflow           โ”€โ”€[ typed tool graph ]โ”€โ”€โ–บ  one minimal task
๐Ÿ–ฅ๏ธ  Frontend           โ”€โ”€[ triggers workflows ]โ”€โ”€โ–บ  Web toolbox (you) + CLI/skill (agents)

Four ABI-decoupled layers. ๐Ÿ”Œ Swap a model, add a workflow, or replace the UI without touching the rest. ComfyUI is supported as an export target (workflow โ†’ ComfyUI API JSON), not a dependency.

๐Ÿ’ก Concepts

  • ๐ŸŽฏ Task โ€” what you want (e.g. "a single sprite pair"). A DAG of workflow-nodes; each node runs one workflow from a list of candidates.
  • ๐Ÿ›ฃ๏ธ Workflow โ€” a flat tool graph that takes typed inputs and returns one typed artifact. Reusable across tasks; you never wire nodes by hand.
  • ๐Ÿ”ง Tool โ€” the smallest unit, with typed I/O. kind="inference" calls a model; kind="deterministic" runs locally (pixelize, crop, packโ€ฆ).

๐Ÿš€ Quick start

pip install -e .

# See what CookSprite can do
cspr list

# Cook a sprite (diffuse + normal pair) ๐Ÿณ
cspr run single_sprite --prompt "a small copper robot" --out ./out

# Export any workflow to ComfyUI API JSON ๐Ÿ”
cspr export single_sprite --out workflow.json

Prefer the web toolbox? ๐Ÿ–ฅ๏ธ cd web && npm install && npm run dev โ€” includes a three.js draggable-light preview so you can see your normal maps light up in real time. ๐Ÿ’ก

๐Ÿ“Š Status

v1 vertical slice โ€” green. โœ… Single-prompt โ†’ single-sprite pipeline runs end-to-end GPU-free (deterministic stub adapter), with a production vLLM-Omni inference path wired for real model weights. See docs/ for the full design.

๐Ÿค Contributing

PRs welcome! New workflows are just declarative YAML; new Tools/Ops are small typed Python functions. Start with docs/03_WORKFLOW.md.

๐Ÿ“œ License

Apache-2.0. Cook freely. ๐Ÿง‘โ€๐Ÿณ

About

๐Ÿณโœจ Cook up game-ready sprites with AI โ€” directional clips, sprite sheets & sprite pairs (diffuse + normal map) for real dynamic lighting. ABI-decoupled inference/workflow/frontend, GPU-free stub path, ComfyUI export, Web toolbox + agent CLI.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages