pixelkiln 0.108.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -69
- package/docs/PIXELLAB.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
package
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/gfargo/pixelkiln/main/website/public/brand/kiln-mark-v3.png" alt="The PixelKiln kiln mark" width="112" height="112"></p>
|
|
2
|
+
<h1 align="center">pixelkiln</h1>
|
|
3
|
+
<p align="center"><strong>Generate pixel art from a manifest, review it locally, recover paid work,<br>and package the accepted files for a game engine.</strong></p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://www.npmjs.com/package/pixelkiln"><img src="https://img.shields.io/npm/v/pixelkiln?color=ff6b35&label=npm" alt="npm version"></a>
|
|
6
|
+
<a href="https://github.com/gfargo/pixelkiln/actions/workflows/ci.yml"><img src="https://github.com/gfargo/pixelkiln/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI status"></a>
|
|
7
|
+
<a href="./LICENSE"><img src="https://img.shields.io/github/license/gfargo/pixelkiln?color=ff6b35" alt="MIT license"></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/pixelkiln"><img src="https://img.shields.io/node/v/pixelkiln?color=ff6b35" alt="Node version"></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/pixelkiln"><img src="https://img.shields.io/npm/dm/pixelkiln?color=ff6b35" alt="npm downloads per month"></a>
|
|
10
|
+
</p>
|
|
11
|
+
<p align="center"><a href="https://pixelkiln.griffen.codes">Website</a> · <a href="https://pixelkiln.griffen.codes/docs/getting-started">Quickstart</a> · <a href="https://pixelkiln.griffen.codes/docs">Documentation</a> · <a href="https://pixelkiln.griffen.codes/effects">Effects</a> · <a href="https://github.com/gfargo/pixelkiln/issues">Issues</a></p>
|
|
9
12
|
|
|
10
13
|
PixelKiln treats generated art as build output. Declare assets once, inspect the
|
|
11
14
|
cost and changed work, generate only what is missing, choose candidates in a
|
|
@@ -22,7 +25,7 @@ Scenario has passed CU preflight, generation, human review, and durable restore
|
|
|
22
25
|
with BFL Flux 2 Dev.
|
|
23
26
|
|
|
24
27
|
Styles may use different providers with separate budget ceilings. The
|
|
25
|
-
[provider comparison](
|
|
28
|
+
[provider comparison](https://pixelkiln.griffen.codes/docs/provider-notes) lists the tested limits and best routes.
|
|
26
29
|
`FakeProvider` covers the shared contract in automated tests.
|
|
27
30
|
|
|
28
31
|
## Why PixelKiln
|
|
@@ -53,7 +56,7 @@ Released on npm through Semantic Release and npm Trusted Publishing, with signed
|
|
|
53
56
|
| Generate and review | Resumable submit/poll/pick/fetch pipeline, exact next-step hints, candidate or atomic frame-set review, and a provenance gallery that can edit intent, generate under a budget, and compare records. |
|
|
54
57
|
| Hand edits | Touch-ups in your own editor or a pinned in-browser Pixelorama, kept beside the generated art with the generation still the record; frame and tile sets member by member. |
|
|
55
58
|
| Controlled inputs | Hashed revision lineage (image-to-image and inpaint; on PixelLab also palette reduction, pixel cleanup, animation, skeleton posing, interpolation, and animation edits), fail-closed parent approval, source-versus-candidate review, and content-addressed per-asset ComfyUI bindings. |
|
|
56
|
-
| Characters | A base in 4 or 8 directions from a prompt or your own sprite (four PixelLab engines), poses, loops, portraits, and outfit transfers as dependent assets generated in waves, free mirrored directions (one `directions` list declares a loop and mirrors the rest), account adoption and salvage, and SpriteFrames export. [Paperdoll layers](
|
|
59
|
+
| Characters | A base in 4 or 8 directions from a prompt or your own sprite (four PixelLab engines), poses, loops, portraits, and outfit transfers as dependent assets generated in waves, free mirrored directions (one `directions` list declares a loop and mirrors the rest), account adoption and salvage, and SpriteFrames export. [Paperdoll layers](https://pixelkiln.griffen.codes/docs/paperdoll) put outfits, hats and held items over one bare character as transparent layers, a PNG per frame of every animation, each drawn by one masked inpaint over a sheet of all the frames or, for a rigid item, pinned to the hand from a sprite for free (`attach`, with `grasp` to close the hand around it), nudged by the pixel with `offset`, with loop cleaning that strips animation ghosts at download. |
|
|
57
60
|
| PixelLab utilities | `unzoom` returns upscaled reference art to its native grid, `pixelate` turns a photo or render into pixel art (Image to Pixel Art Pro Flash, 6 generations, or `--pro` for 20), `normal-map` makes a sprite's or a loop strip's normal map for lighting (0.1 generation, or 0.5 on pro), `vfx` builds animated effects such as explosions and auras with PixelLab's free VFX workbench (or renders them locally from the [pixelfx](https://github.com/patch-gg/pixelfx) library with `--lib pixelfx`), `font` generates a `.ttf` and glyph atlas, `music` makes a song (two MP3 takes, with optional seamless loops and loop points) and `sfx` a sound effect (WAV), `ui` splits a generated UI panel into elements, draws their hover and pressed states, sets 9-slice insets, and pulls every piece with a record, `asset` imports your own sprite as an object (or your own tileset sheet or tiles), saves edited pixels back over a stored asset with an undo, expands an object to 8 directions, resizes its canvas, and exports it as a spritesheet, `.aseprite` file or GIF, `talk` draws a portrait's mouth positions once and then lip-syncs any line to a GIF or a frame plan for free, `estimate-skeleton` starts a keypoints file for skeleton animation, and `skeleton-preview` draws its poses over the sprite for free. |
|
|
58
61
|
| Existing-art onboarding | Manifest scaffolding, exact-hash account adoption, and prompt recovery. |
|
|
59
62
|
| Recovery | Safe stale-output replacement, validated caches, durable references, resumable paid jobs, and per-asset generation history with free restores. |
|
|
@@ -69,25 +72,25 @@ Released on npm through Semantic Release and npm Trusted Publishing, with signed
|
|
|
69
72
|
`pixelkiln pick` opens a local candidate sheet with native aspect ratios and
|
|
70
73
|
crisp small sprites. No model chooses artwork for you.
|
|
71
74
|
|
|
72
|
-

|
|
73
76
|
|
|
74
77
|
Left/Right inspects alternatives, Enter or 1–9 selects, 0 leaves a row
|
|
75
78
|
unresolved, and closing without **Apply selections** applies nothing
|
|
76
|
-
([CLI reference](docs/
|
|
79
|
+
([CLI reference](https://pixelkiln.griffen.codes/docs/cli/pick)). [`pixelkiln gallery`](https://pixelkiln.griffen.codes/docs/cli/gallery)
|
|
77
80
|
is its companion: every generation at integer zoom with its prompt, cost, hashes,
|
|
78
81
|
lineage, and quality record, side-by-side comparison, and a `--workspace` view
|
|
79
82
|
across projects. `--edit` changes prompts, sizes, tags, and style fields (with the
|
|
80
83
|
blast radius shown first) and adds assets; `--budget` generates, regenerates, and
|
|
81
84
|
reviews from the page under that ceiling.
|
|
82
85
|
|
|
83
|
-

|
|
84
87
|
|
|
85
|
-
Hand edits live beside the art, not in place of the record. [`pixelkiln edit`](docs/
|
|
88
|
+
Hand edits live beside the art, not in place of the record. [`pixelkiln edit`](https://pixelkiln.griffen.codes/docs/cli/edit)
|
|
86
89
|
opens a copy in your own editor; with `--edit` the gallery does the same, or opens
|
|
87
|
-
it in a pinned, hash-verified [Pixelorama](docs/
|
|
90
|
+
it in a pinned, hash-verified [Pixelorama](https://pixelkiln.griffen.codes/docs/cli/tools) build right in the page
|
|
88
91
|
and saves it back with its layers kept, one file per member for frame and tile sets.
|
|
89
92
|
|
|
90
|
-

|
|
91
94
|
|
|
92
95
|
## Install
|
|
93
96
|
|
|
@@ -145,12 +148,12 @@ pixelkiln adopt --write-prompts
|
|
|
145
148
|
pixelkiln plan
|
|
146
149
|
```
|
|
147
150
|
|
|
148
|
-
See [Getting started](
|
|
149
|
-
Use [Set up PixelLab](
|
|
150
|
-
[Set up Retro Diffusion](
|
|
151
|
-
[Set up ComfyUI](
|
|
152
|
-
[Set up Scenario](
|
|
153
|
-
manifest examples, and current limits. See [Mixed-provider projects](
|
|
151
|
+
See [Getting started](https://pixelkiln.griffen.codes/docs/getting-started) for new and existing projects.
|
|
152
|
+
Use [Set up PixelLab](https://pixelkiln.griffen.codes/docs/pixellab),
|
|
153
|
+
[Set up Retro Diffusion](https://pixelkiln.griffen.codes/docs/retro-diffusion),
|
|
154
|
+
[Set up ComfyUI](https://pixelkiln.griffen.codes/docs/comfyui), or
|
|
155
|
+
[Set up Scenario](https://pixelkiln.griffen.codes/docs/scenario) for provider-specific configuration,
|
|
156
|
+
manifest examples, and current limits. See [Mixed-provider projects](https://pixelkiln.griffen.codes/docs/mixed-providers)
|
|
154
157
|
when styles in one manifest need different backends.
|
|
155
158
|
|
|
156
159
|
## Agent skill
|
|
@@ -197,11 +200,11 @@ Each style re-derives the same asset ids into separate lock keys. Generator
|
|
|
197
200
|
choice, reference-image bytes, dimensions, palette, seed, and
|
|
198
201
|
prompt settings participate in deterministic spec identity. A manifest may
|
|
199
202
|
select another provider and pass namespaced `providerOptions`; see
|
|
200
|
-
[Set up PixelLab](
|
|
201
|
-
[Set up Retro Diffusion](
|
|
202
|
-
[Set up ComfyUI](
|
|
203
|
-
[Set up Scenario](
|
|
204
|
-
[provider comparison](
|
|
203
|
+
[Set up PixelLab](https://pixelkiln.griffen.codes/docs/pixellab),
|
|
204
|
+
[Set up Retro Diffusion](https://pixelkiln.griffen.codes/docs/retro-diffusion),
|
|
205
|
+
[Set up ComfyUI](https://pixelkiln.griffen.codes/docs/comfyui), and
|
|
206
|
+
[Set up Scenario](https://pixelkiln.griffen.codes/docs/scenario). The
|
|
207
|
+
[provider comparison](https://pixelkiln.griffen.codes/docs/provider-notes) covers costs,
|
|
205
208
|
current confidence, and limitations. ComfyUI works best as a composition tool:
|
|
206
209
|
start with 48–128px native components and build larger scenes from accepted
|
|
207
210
|
parts. Supported still styles and ComfyUI frame sets can declare a `quality`
|
|
@@ -211,10 +214,10 @@ stale. Changing the profile never schedules another provider generation.
|
|
|
211
214
|
|
|
212
215
|
Versioned recipes capture tested workflows, model hashes, license links, and
|
|
213
216
|
manifest-ready styles with quality boundaries. Start with `pixelkiln recipe install comfyui/pixel-art-xl-environment@1.0.0`.
|
|
214
|
-
Recipes install no models and make no provider calls. See [Versioned recipes](
|
|
217
|
+
Recipes install no models and make no provider calls. See [Versioned recipes](https://pixelkiln.griffen.codes/docs/recipes).
|
|
215
218
|
|
|
216
219
|
The schema rejects unknown fields and invalid generator combinations before
|
|
217
|
-
planning. See the [Manifest reference](
|
|
220
|
+
planning. See the [Manifest reference](https://pixelkiln.griffen.codes/docs/manifest).
|
|
218
221
|
|
|
219
222
|
## Everyday workflow
|
|
220
223
|
|
|
@@ -262,13 +265,13 @@ Start with the required capability, not the most expensive endpoint. Twenty-five
|
|
|
262
265
|
re-rolls cost the same as one 64×64 `1dir` call; conversely, `map` cannot replace a
|
|
263
266
|
hard palette or reference-image constraint. PixelLab has eight more generators
|
|
264
267
|
(`imagePro`, `imageProFlash`, `terrain`, `isometricTile`, `objectPro`, `uiAsset`,
|
|
265
|
-
`uiElement`, and `vfx` for free animated effects); see [Generator selection](
|
|
268
|
+
`uiElement`, and `vfx` for free animated effects); see [Generator selection](https://pixelkiln.griffen.codes/docs/generators) and the [measured endpoint reference](https://pixelkiln.griffen.codes/docs/endpoints).
|
|
266
269
|
|
|
267
270
|
Generator names describe PixelKiln workflows; their exact capabilities and prices
|
|
268
271
|
depend on the selected provider. Retro Diffusion also supports the provider-specific
|
|
269
272
|
`animation` generator. ComfyUI supports `map` plus atomic still-image `frames` through
|
|
270
273
|
an operator-supplied workflow. Scenario supports `map` with a required offline CU
|
|
271
|
-
ceiling and a live quote before each paid call. Compare the adapters in the [provider comparison](
|
|
274
|
+
ceiling and a live quote before each paid call. Compare the adapters in the [provider comparison](https://pixelkiln.griffen.codes/docs/provider-notes).
|
|
272
275
|
|
|
273
276
|
## Derived artifacts
|
|
274
277
|
|
|
@@ -286,8 +289,8 @@ profile they consume only its current approved PNGs; a hand edit stands in for
|
|
|
286
289
|
its generation. Unowned output is adopted only when byte-identical; manual edits
|
|
287
290
|
stop the write unless `--force` takes ownership. Changing members stage before
|
|
288
291
|
promotion, ordinary failures roll back, and abrupt termination leaves a journal
|
|
289
|
-
the next invocation finishes. See [Derived artifacts](
|
|
290
|
-
[Tiles and engine exports](
|
|
292
|
+
the next invocation finishes. See [Derived artifacts](https://pixelkiln.griffen.codes/docs/artifacts) and
|
|
293
|
+
[Tiles and engine exports](https://pixelkiln.griffen.codes/docs/tiles).
|
|
291
294
|
|
|
292
295
|
## Recovery and shared accounts
|
|
293
296
|
|
|
@@ -318,7 +321,7 @@ pixelkiln salvage --workspace pixelkiln.workspace.json
|
|
|
318
321
|
A registered project's missing or unreadable lockfile is a hard error for
|
|
319
322
|
`workspace claims` and `salvage --workspace`; missing claims are never skipped.
|
|
320
323
|
Purge only targets objects already tagged discard and asks first.
|
|
321
|
-
See [Recovery and account safety](
|
|
324
|
+
See [Recovery and account safety](https://pixelkiln.griffen.codes/docs/recovery).
|
|
322
325
|
|
|
323
326
|
## Automation
|
|
324
327
|
|
|
@@ -333,7 +336,7 @@ Pipeline stages exit nonzero after partial failures or timeouts. JSON modes
|
|
|
333
336
|
separate machine output from human diagnostics where necessary. Generation
|
|
334
337
|
should remain an explicit budgeted action; CI should prove committed state and
|
|
335
338
|
artifacts agree rather than regenerate them. See
|
|
336
|
-
[Quality and automation gates](
|
|
339
|
+
[Quality and automation gates](https://pixelkiln.griffen.codes/docs/quality).
|
|
337
340
|
|
|
338
341
|
## TypeScript library
|
|
339
342
|
|
|
@@ -354,46 +357,42 @@ The package also exports audit and image-regression gates, quality-profile
|
|
|
354
357
|
inspection and refinement, revision-readiness checks, lock/output helpers, the
|
|
355
358
|
gallery snapshot and server, hand edits and the editor install, provider contracts,
|
|
356
359
|
sprite packing/mounting, tile exporters, managed artifact writes, and provenance
|
|
357
|
-
verification. See [Library API](
|
|
360
|
+
verification. See [Library API](https://pixelkiln.griffen.codes/docs/library).
|
|
358
361
|
|
|
359
362
|
## Documentation
|
|
360
363
|
|
|
361
364
|
| Guide | Covers |
|
|
362
365
|
|---|---|
|
|
363
|
-
| [Documentation index](
|
|
364
|
-
| [Getting started](
|
|
365
|
-
| [Set up PixelLab](
|
|
366
|
-
| [Set up Retro Diffusion](
|
|
367
|
-
| [Set up ComfyUI](
|
|
368
|
-
| [Set up Scenario](
|
|
369
|
-
| [Versioned recipes](
|
|
370
|
-
| [Controlled revisions](
|
|
371
|
-
| [CLI reference](
|
|
372
|
-
| [Manifest reference](
|
|
373
|
-
| [Mixed-provider projects](
|
|
374
|
-
| [Agent workflows](
|
|
375
|
-
| [Generators](
|
|
376
|
-
| [Characters](
|
|
377
|
-
| [Paperdoll layers](
|
|
378
|
-
| [Environment provider benchmark](
|
|
379
|
-
| [Derived artifacts](
|
|
380
|
-
| [Recovery](
|
|
381
|
-
| [Quality gates](
|
|
382
|
-
| [Architecture](
|
|
383
|
-
| [Library API](
|
|
384
|
-
| [Tiles](
|
|
385
|
-
| [Endpoint research](
|
|
386
|
-
| [Provider comparison](
|
|
366
|
+
| [Documentation index](https://pixelkiln.griffen.codes/docs) | All user, workflow, reference, and architecture guides. |
|
|
367
|
+
| [Getting started](https://pixelkiln.griffen.codes/docs/getting-started) | First project, existing-art onboarding, everyday workflow, and what to commit. |
|
|
368
|
+
| [Set up PixelLab](https://pixelkiln.griffen.codes/docs/pixellab) | Production-provider credentials, manifest, generators, and account workflows. |
|
|
369
|
+
| [Set up Retro Diffusion](https://pixelkiln.griffen.codes/docs/retro-diffusion) | Experimental-provider credentials, styles, formats, cost checks, and limits. |
|
|
370
|
+
| [Set up ComfyUI](https://pixelkiln.griffen.codes/docs/comfyui) | Self-hosted stills, revisions, ordered frame sets, per-asset inputs, and quality limits. |
|
|
371
|
+
| [Set up Scenario](https://pixelkiln.griffen.codes/docs/scenario) | Experimental hosted models, two-part credentials, CU preflight, reference-image edits, multi-model chains, measured findings, and durable downloads. |
|
|
372
|
+
| [Versioned recipes](https://pixelkiln.griffen.codes/docs/recipes) | Pinned workflow packs, model hashes, manifest templates, and quality contracts. |
|
|
373
|
+
| [Controlled revisions](https://pixelkiln.griffen.codes/docs/revisions) | Image-to-image, inpaint, palette cleanup, animation, and interpolation from a parent; masks, fail-closed readiness, provenance, and ComfyUI bindings. |
|
|
374
|
+
| [CLI reference](https://pixelkiln.griffen.codes/docs/cli) | Every command, flag, JSON mode, and exit contract. |
|
|
375
|
+
| [Manifest reference](https://pixelkiln.griffen.codes/docs/manifest) | Style/asset fields, quality profiles, and generator constraints. |
|
|
376
|
+
| [Mixed-provider projects](https://pixelkiln.griffen.codes/docs/mixed-providers) | Per-style routing, provider-keyed budgets, recovery, and account commands. |
|
|
377
|
+
| [Agent workflows](https://pixelkiln.griffen.codes/docs/agents) | Official skill install, operating model, and provider-aware safety. |
|
|
378
|
+
| [Generators](https://pixelkiln.griffen.codes/docs/generators) | Capability choice, measured costs, palettes, style references, and tiles. |
|
|
379
|
+
| [Characters](https://pixelkiln.griffen.codes/docs/characters) | Bases, states, loops, mirrors, portraits, outfits, the `directions` shorthand, and per-engine costs. |
|
|
380
|
+
| [Paperdoll layers](https://pixelkiln.griffen.codes/docs/paperdoll) | Outfits, hats and held items as transparent layers over one bare character, frame for frame. |
|
|
381
|
+
| [Environment provider benchmark](https://pixelkiln.griffen.codes/docs/provider-benchmark) | Thirty provider outputs plus native-grid and final-palette results comparing large scenes, transparency, palette size, and file readiness. |
|
|
382
|
+
| [Derived artifacts](https://pixelkiln.griffen.codes/docs/artifacts) | Refine, pack, mount, export, provenance, ownership, transactions, and recovery. |
|
|
383
|
+
| [Recovery](https://pixelkiln.griffen.codes/docs/recovery) | Restore, caches, adopt, salvage, claims, and purge safety. |
|
|
384
|
+
| [Quality gates](https://pixelkiln.griffen.codes/docs/quality) | Image baselines, plan, doctor, refine, audit, cache, human approval, JSON, and CI. |
|
|
385
|
+
| [Architecture](https://pixelkiln.griffen.codes/docs/architecture) | State model, lockfile, providers, concurrency, and output identity. |
|
|
386
|
+
| [Library API](https://pixelkiln.griffen.codes/docs/library) | Public TypeScript contracts and examples. |
|
|
387
|
+
| [Tiles](https://pixelkiln.griffen.codes/docs/tiles) | Structural outputs and generic/Tiled/Godot formats. |
|
|
388
|
+
| [Endpoint research](https://pixelkiln.griffen.codes/docs/endpoints) | Measured PixelLab API behavior and recipes. |
|
|
389
|
+
| [Provider comparison](https://pixelkiln.griffen.codes/docs/provider-notes) | Provider selection, costs, supported workflows, confidence, and limitations. |
|
|
387
390
|
|
|
388
391
|
The [public documentation site](https://pixelkiln.griffen.codes/docs) is built from these Markdown
|
|
389
|
-
files by [`website/`](./website/README.md), so the site and the package share one source
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
## Scope
|
|
393
|
-
|
|
394
|
-
Cross-project cache reuse and `workspace find` are not implemented; see the
|
|
395
|
-
open [issues](https://github.com/gfargo/pixelkiln/issues).
|
|
392
|
+
files by [`website/`](./website/README.md), so the site and the package share one source;
|
|
393
|
+
the Markdown for each guide is in [`docs/`](./docs/).
|
|
394
|
+
Policies: [Contributing](https://pixelkiln.griffen.codes/docs/contributing), [Security](https://pixelkiln.griffen.codes/docs/security).
|
|
396
395
|
|
|
397
|
-
##
|
|
396
|
+
## Scope and license
|
|
398
397
|
|
|
399
|
-
[MIT](./LICENSE)
|
|
398
|
+
Cross-project cache reuse and `workspace find` are not implemented; see the open [issues](https://github.com/gfargo/pixelkiln/issues). PixelKiln is released under the [MIT license](./LICENSE).
|
package/docs/PIXELLAB.md
CHANGED
|
@@ -138,7 +138,7 @@ joints, and `skeleton-preview` draws them over the sprite before you spend:
|
|
|
138
138
|
without a description.
|
|
139
139
|
- Each billed exactly 3 generations for 8 frames, measured live. The sentence
|
|
140
140
|
loop came back at 96×96 from a 64px character; the posed one stayed 64×64.
|
|
141
|
-
[The providers page](https://pixelkiln.griffen.codes/providers
|
|
141
|
+
[The providers page](https://pixelkiln.griffen.codes/providers/updates) shows both.
|
|
142
142
|
- Each direction of a sentence loop is its own request, but the first
|
|
143
143
|
direction leads and every later one is sent into its animation group, so all
|
|
144
144
|
directions are drawn from one motion (a live append billed 3 and joined the
|