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

pixelaid

v0.1.0

Published

Command-line PixelAid tools for fixing fake pixel-art images into engine-ready pixel assets.

Readme

pixelaid CLI

pixelaid is the command-line PixelAid workflow for local fixes, batch jobs, game build scripts, and agent tools. It calls the shared automation package and writes either human-readable text or stable JSON.

Status

Implemented and prepared for npm packaging as [email protected]. The package builds a single Node binary at dist/bin.cjs, publishes the pixelaid executable, and keeps docs-only sample images out of the packed package.

The CLI is usable from this workspace today. Published install commands work after a maintainer publishes the package to npm.

Install

Global install, once published:

npm install -g pixelaid
pixelaid --help

One-off usage without a global install:

npx pixelaid@latest inspect panda-test.png --json

Project-local install:

npm install --save-dev pixelaid
npx pixelaid fix panda-test.png --out panda-fixed.png --target 96x96 --json

Local workspace usage:

npm run build -w pixelaid
node packages/cli/dist/bin.cjs --help

Panda Example

The docs sample is stored at packages/cli/docs/panda-test.png. It is a repository docs asset only. package.json does not include docs/ in the npm package files list, so npm pack leaves the sample image and generated example outputs out of the published tarball.

| Source | 96px fixed output | | --- | --- | | | |

Inspect the source before writing output:

pixelaid inspect panda-test.png \
  --asset-type sprite \
  --target 96x96 \
  --max-colors 24 \
  --alpha preserve \
  --denoise-strength 20 \
  --outline-mode none \
  --json

Generate the 96px example. These flags match the guided setup choices: width 96, keep background, light noise cleanup, no outline, and max colors 24.

pixelaid fix panda-test.png \
  --out panda-test-fixed-96.png \
  --manifest panda-test-fixed-96.manifest.json \
  --asset-type sprite \
  --target 96x96 \
  --max-colors 24 \
  --alpha preserve \
  --denoise-strength 20 \
  --outline-mode none \
  --overwrite \
  --json

Trimmed JSON output from that run:

{
  "ok": true,
  "command": "fix",
  "result": {
    "result": {
      "image": { "width": 96, "height": 96, "dataByteLength": 36864 },
      "metrics": {
        "sourceWidth": 1008,
        "sourceHeight": 1059,
        "outputWidth": 96,
        "outputHeight": 96,
        "paletteCount": 24
      },
      "settings": {
        "assetType": "sprite",
        "targetWidth": 96,
        "targetHeight": 96,
        "maxColors": 24,
        "alpha": "preserve",
        "cleanup": {
          "denoiseStrength": 20,
          "outlineMode": "none"
        }
      }
    },
    "files": [
      { "kind": "image", "relativePath": "panda-test-fixed-96.png" },
      { "kind": "manifest", "relativePath": "panda-test-fixed-96.manifest.json" }
    ],
    "warnings": []
  }
}

Extract a palette from the same source:

pixelaid palette panda-test.png --max-colors 24 --out panda-test.palette.hex --json

Create an engine bundle from a fixed image:

pixelaid export panda-test-fixed-96.png \
  --out-dir ./panda-export \
  --engine godot,unity,phaser \
  --bundle zip \
  --overwrite \
  --json

Commands

  • inspect: image metadata, palette counts, alpha stats, grid candidates, sheet detection, and suggestions.
  • report: quality report for one or more assets.
  • suggest: normalized fix settings without writing output.
  • fix: single-sprite cleanup and optional manifest output.
  • fix-sheet: sheet cleanup with detection or supplied frame metadata.
  • palette: palette extraction to .hex or JSON.
  • export: fixed output plus manifests, palette files, validation output, and engine sidecars.
  • batch: repeated fix workflow for files, directories, or simple glob patterns.

Use --json for stable stdout payloads. Use --progress-json to stream progress events to stderr. Use --diagnostics <path> to write a redacted diagnostics file.

Development

From the repo root:

npm run build -w pixelaid
npm run test -w pixelaid
npm run typecheck -w pixelaid

From packages/cli:

npm run build
npm run test
npm run typecheck

Keep CLI output deterministic and parseable for agent workflows. Keep command parsing thin; shared operation behavior belongs in @pixelaid/automation. Add or update tests in src/cli.test.ts when command flags, exit codes, diagnostics, batch handling, or result shapes change.

Packaging Checks

Use the repo-wide version command before a release so package versions stay aligned. Keep the current version at 0.1.0 until the release target changes:

npm run version:set -- 0.1.0

Run the focused package checks:

npm run test -w pixelaid
npm run typecheck -w pixelaid
npm pack --dry-run -w pixelaid --json
npm publish --dry-run -w pixelaid

The dry-run pack should include only the built binary, package manifest, README, and legal notice files. It should not include packages/cli/docs/.

When a maintainer is ready to release for real, publish from the workspace:

npm publish -w pixelaid