| Crates.io | pixelsrc |
| lib.rs | pixelsrc |
| version | 0.2.0 |
| created_at | 2026-01-21 05:28:17.732265+00 |
| updated_at | 2026-01-21 15:38:26.886049+00 |
| description | Pixelsrc - GenAI-native pixel art format and compiler |
| homepage | https://github.com/scbrown/pixelsrc |
| repository | https://github.com/scbrown/pixelsrc |
| max_upload_size | |
| id | 2058385 |
| size | 5,066,256 |
The first pixel art format designed for GenAI.
Pixelsrc is a semantic, human-readable text format for defining pixel art. Unlike traditional editors or hex-based formats, it's designed from the ground up for AI systems to generate reliably.
{"type": "palette", "name": "coin", "colors": {"{_}": "#00000000", "{gold}": "#FFD700", "{shine}": "#FFFACD"}}
{"type": "sprite", "name": "coin", "size": [8, 8], "palette": "coin", "grid": [
"{_}{_}{gold}{gold}{gold}{gold}{_}{_}",
"{_}{gold}{shine}{shine}{gold}{gold}{gold}{_}",
"{gold}{shine}{gold}{gold}{gold}{gold}{gold}{gold}",
"{gold}{gold}{gold}{gold}{gold}{gold}{gold}{gold}",
"{_}{gold}{gold}{gold}{gold}{gold}{gold}{_}",
"{_}{_}{gold}{gold}{gold}{gold}{_}{_}"
]}
{skin}, {gold}, {shadow} instead of single characters or hex codesbrew install scbrown/tap/pixelsrc
cargo install --git https://github.com/scbrown/pixelsrc
Pre-built binaries for Linux, macOS, and Windows are available on the Releases page.
hero.pxl:{"type": "palette", "name": "hero", "colors": {"{_}": "#00000000", "{skin}": "#FFD5B4", "{hair}": "#8B4513", "{shirt}": "#4169E1"}}
{"type": "sprite", "name": "hero", "size": [8, 8], "palette": "hero", "grid": [
"{_}{_}{hair}{hair}{hair}{hair}{_}{_}",
"{_}{hair}{hair}{hair}{hair}{hair}{hair}{_}",
"{_}{skin}{skin}{skin}{skin}{skin}{skin}{_}",
"{_}{skin}{skin}{skin}{skin}{skin}{skin}{_}",
"{_}{_}{shirt}{shirt}{shirt}{shirt}{_}{_}",
"{_}{shirt}{shirt}{shirt}{shirt}{shirt}{shirt}{_}",
"{_}{_}{skin}{_}{_}{skin}{_}{_}",
"{_}{_}{skin}{_}{_}{skin}{_}{_}"
]}
pxl render hero.pxl -o hero.png
pxl render hero.pxl -o hero.png --scale 8
pxl)| Command | Description |
|---|---|
pxl render <file> |
Render .pxl/.jsonl to PNG |
pxl render --gif |
Export animations to GIF |
pxl render --spritesheet |
Generate sprite sheets |
pxl fmt <files> |
Format files for readability |
pxl palettes list |
List built-in palettes |
pxl import <image> |
Convert PNG to .pxl |
This project uses just as a command runner:
just --list # Show all available commands
just build # Build the project
just test # Run tests
just check # Run format check, lint, and tests
just render coin # Render an example sprite
MIT - see LICENSE