npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vukovicpavle/pixon

v0.1.0

Published

CLI for turning JSON pixel art into engine-ready assets

Readme

Pixon

pixon is a Node.js CLI that turns schema-defined JSON into pixel art assets for game projects.

It takes a JSON document with name, description, metadata, and a 2D pixels matrix, then exports:

  • A PNG sprite/image that imports cleanly into Godot, Unity, and Unreal Engine
  • A manifest with dimensions, palette, and metadata
  • Engine preset JSON files with recommended import settings for each engine

Install

npm install

Run locally with:

node src/cli.js render examples/hero.json --out dist --target all

Try the larger background scene example with:

node src/cli.js render examples/background-meadow.json --out dist --target all

That example renders to an exact 1280x720 PNG.

Or install the CLI globally from this folder:

npm link
pixon render examples/hero.json --out dist

Commands

Validate input:

pixon validate examples/hero.json

Render a PNG plus presets:

pixon render examples/hero.json --out dist --target all

Render the larger background example:

pixon render examples/background-meadow.json --out dist --target all

Print the schema:

pixon schema

Write the schema to a file:

pixon schema --out pixel-art.schema.json

JSON shape

The schema lives at schema/pixel-art.schema.json.

Top-level fields:

  • name: asset name
  • description: human-readable description
  • metadata: free-form metadata object with useful common fields like scale, pixelsPerUnit, tileWidth, and tileHeight
  • pixels: rectangular 2D matrix of color values

Supported pixel color formats:

  • Hex strings: #RGB, #RGBA, #RRGGBB, #RRGGBBAA
  • "transparent"
  • RGBA objects like { "r": 255, "g": 0, "b": 0, "a": 255 }

Example:

{
  "name": "Hero Idle",
  "description": "An 8x8 hero portrait exported as pixel art.",
  "metadata": {
    "scale": 8,
    "pixelsPerUnit": 16
  },
  "pixels": [
    ["#000000", "#ffffff"],
    ["transparent", { "r": 255, "g": 0, "b": 0, "a": 255 }]
  ]
}

Additional example files:

  • examples/hero.json: small 8x8 character portrait
  • examples/background-meadow.json: 160x90 meadow scene exported at scale 8 for an exact 1280x720 output

Output files

For an asset named Hero Idle, rendering to dist/ generates:

  • dist/hero-idle.png
  • dist/hero-idle.manifest.json
  • dist/hero-idle.godot.import.json
  • dist/hero-idle.unity.import.json
  • dist/hero-idle.unreal.import.json

The PNG is the actual engine-importable asset. The preset files document import settings that preserve crisp pixel art in each engine.