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 🙏

© 2025 – Pkg Stats / Ryan Hefner

picthis

v0.2.15

Published

This CLI tool converts images to WebP format and auto-updates all references for better web performance

Readme

Installation

npm install -g picthis

Usage

npx picthis [directory] [options]

Converts images to WebP format and automatically updates file references in your codebase.

| Flag | Description | |------|-------------| | -w, --write | Directly perform the conversion (default: preview mode) | | -r, --replace | Replace original files instead of keeping them (default: keep original files) |

Examples

npx picthis                    # Preview conversion in current directory
npx picthis --write            # Convert all images in current directory  
npx picthis ./assets --write   # Convert images only from the assets folder
npx picthis --write --replace  # Convert and remove original files

Full Execution Output

aryank@mac aryankeluskar.com % npx picthis

🔍 Finding images in: /Users/aryank/Developer/aryankeluskar.com

📸 Found 11 convertible image file(s):

┌────────────────────────────┬────────┬────────────┬────────────┬────────────┐
│ File                       │ Type   │ Original   │ WebP       │ Savings    │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/some pfp.jpg        │ JPG    │ 8.34 KB    │ 2.95 KB    │ 65%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/professional.jpg    │ JPG    │ 168.74 KB  │ 57.17 KB   │ 66%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/pfp.jpg             │ JPG    │ 74.28 KB   │ 25.57 KB   │ 66%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/buildspace.jpg      │ JPG    │ 12.53 KB   │ 4.01 KB    │ 68%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/hometowns/dadar.jpg │ JPG    │ 6.13 KB    │ 2.35 KB    │ 62%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/rcv.jpeg            │ JPEG   │ 10.98 KB   │ 3.79 KB    │ 65%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/healthgc.jpeg       │ JPEG   │ 6.51 KB    │ 2.34 KB    │ 64%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/mag.png             │ PNG    │ 275.56 KB  │ 15.25 KB   │ 94%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/good pfp blur.png   │ PNG    │ 3.62 MB    │ 185.14 KB  │ 95%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/cropped-asu-icon.p… │ PNG    │ 27.34 KB   │ 1.58 KB    │ 94%        │
├────────────────────────────┼────────┼────────────┼────────────┼────────────┤
│ public/banner.png          │ PNG    │ 203.85 KB  │ 14.06 KB   │ 93%        │
└────────────────────────────┴────────┴────────────┴────────────┴────────────┘

📝 Summary:
   Total original size: 4.39 MB
   Total WebP size: 314.21 KB (predicted)
   Total space saved: 4.08 MB (93%)


? Do you want to proceed with converting these files? Yes

Starting conversion...

📸 Converting images...

   ✅ public/some pfp.jpg → public/some pfp.webp (-7% smaller)
   ✅ public/professional.jpg → public/professional.webp (60% smaller)
   ✅ public/pfp.jpg → public/pfp.webp (-6% smaller)
   ✅ public/buildspace.jpg → public/buildspace.webp (57% smaller)
   ✅ public/hometowns/dadar.jpg → public/hometowns/dadar.webp (38% smaller)
   ✅ public/rcv.jpeg → public/rcv.webp (66% smaller)
   ✅ public/healthgc.jpeg → public/healthgc.webp (72% smaller)
   ✅ public/mag.png → public/mag.webp (89% smaller)
   ✅ public/good pfp blur.png → public/good pfp blur.webp (94% smaller)
   ✅ public/cropped-asu-icon.png → public/cropped-asu-icon.webp (59% smaller)
   ✅ public/banner.png → public/banner.webp (73% smaller)

Updating image references in code files...
📋 Found 48 code files to check for references
   ✅ Updated 1 reference(s) in src/app/gcsp/index.html
   ✅ Updated 2 reference(s) in src/app/gcsp/furi.html
   ✅ Updated 1 reference(s) in src/app/gcsp/fse150.html
   ✅ Updated 4 reference(s) in src/data/resume.tsx
   ✅ Updated 1 reference(s) in src/components/hometown-section.tsx
   ✅ Updated 2 reference(s) in src/app/layout.tsx

Total references updated: 11

✅ Processing complete!