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

@masyv/enhance

v0.1.1

Published

MASYV Enhance Engine — AI-powered image enhancement CLI

Readme

@masyv/enhance

AI-powered image enhancement, upscaling, and vectorization for developers.

Features

  • Smart Pipeline — auto-detects image type (photo, logo, text, illustration) and routes to the optimal processing pipeline
  • AI Upscaling — Real-ESRGAN super-resolution via ONNX Runtime (2x, 4x, 8x)
  • SVG Vectorization — raster-to-vector conversion for logos and icons
  • Multi-format Export — PNG, JPEG, WebP, SVG
  • Claude Plugin — callable as an MCP tool

Install

npm install -g @masyv/enhance

Usage

# Smart enhance (auto-detect image type)
masyv enhance photo.jpg --smart

# AI upscale 4x
masyv enhance photo.jpg --mode upscale --scale 4

# Vectorize a logo to SVG
masyv enhance logo.png --mode vectorize --format svg

# Batch process a folder
masyv enhance ./images/ --batch --format webp

# High-quality JPEG export
masyv enhance photo.png --format jpeg --quality 95

CLI Options

masyv enhance <input> [options]

Options:
  --smart              Auto-detect image type and route to best pipeline
  --mode <mode>        Processing mode: smart, upscale, vectorize, enhance
  --scale <n>          Upscale factor: 2, 4, 8 (default: 4)
  --format <fmt>       Output format: png, jpeg, webp, svg (default: png)
  -o, --output <path>  Output file path
  --quality <n>        JPEG quality 1-100 (default: 90)
  --batch              Process all images in a directory
  --model-dir <path>   Path to ONNX model directory
  --verbose            Enable debug logging

Smart Pipeline

The engine automatically classifies your image and applies the best processing:

| Detected Type | Pipeline | |--------------|----------| | Photo | Denoise → AI Upscale → Sharpen | | Logo | Threshold + Cleanup → Vectorize / Upscale | | Text | Contrast Boost → Edge Sharpen | | Illustration | Gentle Denoise → AI Upscale |

AI Models

For AI-powered upscaling, download the Real-ESRGAN model (~67MB):

# From the project repo
./scripts/download-models.sh

# Or manually
curl -L -o models/realesrgan_x4plus.onnx \
  https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/resolve/main/Real-ESRGAN-x4plus.onnx

Without the model, the engine gracefully falls back to high-quality Lanczos3 interpolation.

Tech Stack

| Layer | Technology | |-------|-----------| | Core Engine | Rust | | AI Inference | ONNX Runtime | | Upscaling | Real-ESRGAN x4plus | | Vectorization | VTracer | | Image Processing | image + imageproc | | CLI | clap (Rust) + commander (Node) |

Links

License

MIT