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

noisier

v1.0.1

Published

Per-pixel HSV jittering tool that adds subtle color noise to PNGs, ideal for Minecraft textures

Downloads

272

Readme

noisier

A Node.js CLI tool that takes flat PNG textures and makes them more interesting by applying per-pixel HSV jittering (randomized hue-saturation noise injection).

Built for Minecraft resource pack creators and other pixel artists who want gritty, weathered-looking textures without hand-painting every pixel.

Visual example of what inputs and outputs look like when using Noisier

How it works

Every pixel is processed independently:

  1. RGB is converted to HSV (hue, saturation, value).
  2. A small random offset is added to the hue and saturation:
    • H_new = (H_old + ΔH) mod 360°, where ΔH ~ U(-V_H, +V_H)
    • S_new = clamp(S_old + ΔS, 0, 1), where ΔS ~ U(-V_S, +V_S)
  3. The result is converted back to RGB and written out.

Brightness/value is left untouched, so the texture keeps its original shading. Fully transparent pixels are skipped, which keeps item sprites and cutout textures intact.

Because hue wraps around the color wheel and saturation is clamped, the effect stays subtle: pixels shift to nearby colors rather than jumping to random ones.

Installation

npm install -g noisier

Or run it directly without installing:

npx noisier <input.png> <output.png>

Usage

noisier <input.png> <output.png> [hueVarianceDeg] [satVariance]

| Argument | Description | Default | | ---------------- | --------------------------------------------- | ------- | | input.png | Source image | — | | output.png | Destination image | — | | hueVarianceDeg | Max random hue shift in degrees (±) | 8 | | satVariance | Max random saturation shift, 0.0–1.0 (±) | 0.08 |

Examples

Default subtle jitter:

npx noisier stone.png stone_noisy.png

Stronger weathering effect:

npx noisier dirt.png dirt_noisy.png 12 0.15

Nearly monochrome texture that just needs a hint of life:

npx noisier gravel.png gravel_noisy.png 4 0.05

Tuning tips

  • Start small. For 16×16 block textures, the defaults (8°, 0.08) are usually enough. Large values produce confetti, not grime.
  • Hue variance shifts the color itself (brown dirt gets reddish/yellowish patches).
  • Saturation variance shifts vividness (patches look more faded or more rich) — great for a dried-out or mossy feel.
  • Run the tool multiple times with different seeds of randomness and pick the best result; every run is unique.

Batch processing a resource pack

for f in resource_packs/my_pack/textures/blocks/*.png; do
  npx noisier "$f" "out/$(basename "$f")" 8 0.08
done

Programmatic use

import { jitter } from "noisier";
import fs from "node:fs";
import { PNG } from "pngjs";

const png = PNG.sync.read(fs.readFileSync("stone.png"));
jitter(png, 8, 0.08); // mutates the png in place
fs.writeFileSync("stone_noisy.png", PNG.sync.write(png));

Requirements

  • Node.js 24+
  • Single dependency: pngjs (pure JavaScript, no native builds)

Testing

npm test

Runs the built-in node:test suite in test/, which covers RGB↔HSV roundtrips, jitter invariants (alpha preservation, transparent-pixel skipping, variance bounds, value stability), and end-to-end CLI runs.

License

ISC