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

@creating-cat/fuzzy-dot-refiner

v0.1.1

Published

Fuzzy Dot Refiner - Convert AI-generated images to pixel-perfect pixel art

Readme

Fuzzy Dot Refiner

This tool converts AI-generated pixel art-like images into proper pixel art. It optimizes AI-generated images with smooth gradients and noise into pixel-perfect pixel art style.

Features

  • Convert images to pixel art style
  • Automatic detection of appropriate dot size
  • Automatic color palette optimization (prioritizing frequently used colors)
  • Background removal with transparency threshold setting
  • Three different conversion approaches to choose from
  • PNG format output support

Installation

npm install -g @creating-cat/fuzzy-dot-refiner

Usage

Basic usage

fdr <input_image> <output_image> [options]

Options

| Option | Short | Description | |------------|--------|------| | --size <number> | -s | Manually specify output size (e.g., 32, 48, 64, 32x48). If not specified, it will be automatically detected. | | --colors <number> | -C | Number of colors after color reduction (e.g., 16, 32, 64). Default is 32 colors. Specify 0 to disable color reduction. | | --dot-size <number> | -d | Manually specify dot size (e.g., 8, 16, 32). If not specified, it will be automatically detected. | | --scale <number> | | Output scale factor (e.g., 1, 2, 3). Each dot is output as N×N pixels. Default is 1 (actual size). | | --mode <mode> | -m | Processing mode (resize/dot/grid/all). Default is dot. | | --silent | -S | Silent mode (no log output). Disabled by default. | | --mcp | | Start as MCP server | | --help | -h | Show help |

About modes

  • resize: Resize processing. Simple processing that can be handled relatively quickly.
  • dot (default): Dot-by-dot processing. Aims to generate high-quality pixel art by analyzing each dot's boundaries individually.
  • grid: Grid-based reconstruction processing. Attempts to convert to pixel art by correcting grid misalignments.
  • all: Processes with all modes, generating images for each mode. The mode name is added to the output file name (e.g., output_dot.png).

Examples

# Basic conversion
fdr input.png output.png

# Convert with resize mode
fdr input.png output.png --mode resize

# Convert with specified size
fdr input.png output.png --size 32x64

# Convert with limited color count
fdr input.png output.png --colors 16

# Convert with specified dot size
fdr input.png output.png --dot-size 16

# Convert with scale factor (2x, 3x, etc.)
fdr input.png output.png --scale 2
fdr input.png output.png --scale 3

# Convert with combined options
fdr input.png output.png --scale 2 --size 32 --colors 16
fdr input.png output.png --scale 3 --mode dot --dot-size 8

# Convert with all modes
fdr input.png output.png --mode all

# Run in silent mode (no log output)
fdr input.png output.png --silent

Environment Variables

This tool also supports configuration via environment variables. To use a configuration file, copy the .env.local.example file to .env.local and enable the necessary settings.

For detailed explanations of environment variables, please refer to the .env.local.example file in the repository.

Sample Gallery

The following are sample images converted using Fuzzy Dot Refiner. Each image is an AI-generated pixel art-like image converted to pixel-perfect pixel art using each mode of this tool. Please note that the conversion doesn't always turn out well.

MCP (Model Context Protocol) Support

This tool can also function as an MCP server, allowing other AI tools to call the image conversion feature.

MCP Configuration Example

{
  "mcpServers": {
    "fuzzy-dot-refiner": {
      "command": "npx",
      "args": [
        "-y",
        "@creating-cat/fuzzy-dot-refiner",
        "--mcp"
      ]
    }
  }
}

Provided MCP Tools

  • convert_image: Convert images to pixel art style
    • Input: input_path, output_path, mode (optional), size (optional), colors (optional), scale (optional)
    • Output: Success/failure of conversion result and file path information
    • Modes: dot (default), resize, grid, all
    • Scale: 1 (actual size, default), 2 (2x), 3 (3x), etc.

License

MIT