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

@harivilasp/mediautil

v0.1.2

Published

Local-first CLI for image/PDF utilities, OCR, QR codes, icons, data URIs, and base64 workflows.

Readme

mediautil

mediautil is a local-first command-line utility for everyday media chores that should not require uploading private files to web tools. It gives developers and power users one consistent CLI for images, PDFs, OCR, QR codes, icons, data URIs, and base64 workflows.

This npm package installs the mediautil Rust binary from the matching GitHub Release.

Install

npm install -g @harivilasp/mediautil

Other install options:

cargo install mediautil
pip install mediautil-cli
brew install harivilasp/tap/mediautil

What It Does

  • Resize, crop, convert, and inspect images.
  • Generate .ico files from source images.
  • Convert images to data: URIs for CSS, HTML, and prototypes.
  • Generate and read QR codes.
  • Encode and decode files with base64, including PDFs.
  • Extract text from images with local Tesseract OCR.
  • Extract, split, merge, crop, and convert PDFs through local PDF tools.

External Tools

Core image, QR, data URI, and base64 commands work without extra tools.

PDF and OCR commands use local command-line tools when needed:

  • tesseract for OCR
  • pdftotext from Poppler for PDF text extraction
  • qpdf for PDF split and merge
  • pdfcrop for PDF crop
  • mutool from MuPDF, or ImageMagick magick, for PDF conversion

Check your machine:

mediautil doctor

Examples

mediautil image resize input.png output.webp --width 1200 --height 800
mediautil image crop input.png crop.png --x 20 --y 20 --width 400 --height 300
mediautil image icon logo.png favicon.ico --size 256
mediautil image data-uri logo.png
mediautil qr gen "https://example.com" qr.png
mediautil qr read qr.png
mediautil base64 encode report.pdf --output report.pdf.b64
mediautil base64 decode report.pdf.b64 --output report.pdf
mediautil ocr screenshot.png --lang eng
mediautil pdf text document.pdf
mediautil pdf split document.pdf page-1.pdf --pages 1
mediautil pdf merge chapter1.pdf chapter2.pdf --output book.pdf
mediautil pdf crop document.pdf cropped.pdf
mediautil pdf convert document.pdf page-%d.png

Links

  • GitHub: https://github.com/harivilasp/mediautil
  • Releases: https://github.com/harivilasp/mediautil/releases