Models About & Code

Standalone App & PWA

Install Sprite Forge from its dedicated origin as an offline desktop or mobile PWA with OS image/* file_handlers support for photo-to-silhouette pixelization and zero camera/microphone permissions.

Open sprites.webai.show ↗

Honest cache note: browsers isolate OPFS and Cache Storage per origin, so sprites.webai.show caches its own ~84.9 MB core ONNX weights (~80.3 MB PixelSprite Canvas v2 + 4.6 MB U-2-Netp). Staying on webai.show shares cached U-2-Netp and MiniLM weights with their model pages.

Preset 384-d
16×16 · Indexed 1024 · Cursor (8, 8) Tool: Pencil · Ready

Interactive 16 by 16 pixel-art canvas ready to generate sprites with PixelSprite Canvas v2 or paint custom silhouettes.

1× Native
2× HUD
4× Cartridge

Cartridge Reel (4 Slots)

Ready to forge 16×16, 24×24, or 32×32 sprites locally in CPU WASM. Click Download & Forge Sprite (~80.3 MB) or paint a silhouette directly on the canvas.

Model weights: ihor-umanets/pixelsprite-canvas-v2 (CC BY-NC 4.0 non-commercial · © 2026 Ihor Umanets) · Inference, presets, U-2-Netp & MiniLM: Apache-2.0.

Cartridge Exports

0 filled px · 0 colors

Cartridge Sampler

Split CFG · B=2
2.0
1.0
1.00

Hardware Palette Quantizer

Indexed 1024
Dither
Active Ink Swatches rgb(63 53 232)

Pixel Touch-Up

Undo 0 · Redo 0

Keyboard on canvas: Arrows move cursor · Space/Enter paint · E erase · M mirror · Z undo

Local AI Engine

Core pack (~84.87 MB CPU WASM · OPFS/Cache backed): PixelSprite Canvas v2 (80.30 MB, CC BY-NC 4.0) + U-2-Netp silhouette extraction (4.57 MB, Apache-2.0). Optional Stage 3 MiniLM-L12-v2 (+118.31 MB q8) loads only for custom free-form EN/RU/UK captions beyond the 15 presets.

Stage 1 · PixelSprite Canvas v2 (80.30 MB fp16→fp32 · CC BY-NC 4.0)

ihor-umanets/pixelsprite-canvas-v2 · onnxruntime-web 1.21.0 · OPFS via lib/model-store.mjs

Stage 2 · U-2-Netp Silhouette Extractor (4.57 MB fp32 · Apache-2.0)

BritishWerewolf/U-2-Netp · onnxruntime-web 1.21.0 · shared worker

Optional Stage 3 · Multilingual MiniLM-L12-v2 Caption Encoder (118.31 MB q8 · Apache-2.0)

Xenova/paraphrase-multilingual-MiniLM-L12-v2 · Transformers.js 3.7.5 · 384-d L2-normalized EN / RU / UK embeddings · Downloaded only when typing custom captions outside the 15 presets.

Stage 1 · PixelSprite Not run
Stage 2 · U-2-Netp Standby
Stage 3 · MiniLM-L12 Preset 384-d
Active Sprite 16×16 · 0 px
Integrity & Store 0 NaN · OPFS

How Sprite Forge Works

A 39.1M-parameter autoregressive CanvasGPT2 transformer writes pixel-art sprites token-by-token (1,024 OKLab colours + EMPTY) strictly inside off-main-thread Web Workers, paired with U-2-Netp photo silhouette extraction, real-time retro hardware quantization, and binary PNG / CSS / ICO export.

Non-Commercial Model Weights Notice (CC BY-NC 4.0)

The ihor-umanets/pixelsprite-canvas-v2 model weights (onnx/decoder.onnx, onnx/decoder.f16, onnx/embeddings.bin, palette.json) are © 2026 Ihor Umanets and licensed under CC BY-NC 4.0 (non-commercial use with attribution). Training datasets: Angais/pixel-art-atlas-1.4m (CC0 1.0, Krea 2 Turbo LoRA terms not waived) and azyg0s/pixelart-172k (MIT). Inference code, 15 preset prompt vectors (umanets/pixelsprite), BritishWerewolf/U-2-Netp, and sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 are licensed under Apache-2.0.

1. PixelSprite Canvas v2

ihor-umanets/pixelsprite-canvas-v2 (80.30 MB total; 76.64 MB decoder.f16 external data expanded to float32 in-worker, onnxruntime-web 1.21.0, CC BY-NC 4.0) predicts each pixel autoregressively with split shape/colour CFG and exact silhouette conditioning.

2. Photo Silhouette (U-2-Netp)

BritishWerewolf/U-2-Netp (4.57 MB fp32, onnxruntime-web 1.21.0, Apache-2.0) extracts a 320×320 foreground saliency mask from local or rights-cleared object photos, downsampled cleanly into an editable 16×16, 24×24, or 32×32 silhouette outline.

3. Custom EN / RU / UK Captions

15 starter captions use bundled Apache-2.0 384-d vectors for instant forging. Typing any custom caption activates optional Xenova/paraphrase-multilingual-MiniLM-L12-v2 (118.31 MB q8, shared Transformers.js 3.7.5, Apache-2.0) to encode live L2-normalized vectors on-device.

4. Hardware Quantize & Exports

Non-destructive OKLab quantization snaps any sprite onto Game Boy DMG (4), PICO-8 (16), NES 2C02 (54), CGA Mode 4 (4), or 1-Bit Ink palettes with optional Bayer 2×2 dithering, exporting nearest-neighbor PNGs, multi-scale sprite sheets, CSS box-shadow art, and dual-size 16+32 px .ico favicons.

Show the code — OPFS model fetch, float16 weight expansion & ORT 1.21.0 session creation
Show the code — Autoregressive KV-cached pixel loop with split CFG & live row streaming
Show the code — quantizeRgbaToPalette() perceptual OKLab quantization & Bayer 2×2 dithering
Show the code — extractSilhouetteFromSaliency() U-2-Netp saliency to centered pixel silhouette
Show the code — buildCssBoxShadowArt() & buildFaviconIcoBytes() binary ICO packaging
Show the code — StageWorkerClient FIFO lifecycle, live pixel streaming & cancel/dispose isolation

Multi-Scale Cartridge Sprite Sheet

Nearest-neighbor 1× / 2× / 4× / 8× PNG contact sheet with palette legend.

Single-Element CSS Pixel Art

Pure CSS box-shadow markup using modern rgb() colors — zero image requests.

/* Forge or paint a sprite to generate CSS box-shadow pixel art. */