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

wallpaper-organizer

v1.0.2

Published

CLI tool to organize wallpapers into folders by aspect ratio and resolution

Readme

🖼 Wallpaper Organizer

A fast CLI tool that scans a folder of wallpaper images and sorts them into subfolders based on resolution (default) or aspect ratio.

No exact resolution matching is required — it groups images into logical tiers or brackets using the nearest standard sizes.

🚀 Installation

Install globally using npm:

npm install -g wallpaper-organizer

or

# Since the package is not published yet, you can link it locally
git clone https://github.com/mkamran67/wallpaper-organizer.git
cd wallpaper-organizer
npm install
npm run build
npm link   # makes `wo` available globally

Or run directly without installing:

npx tsx src/cli.ts <source> [output] [options]

🛠 Usage

The CLI command is simply wo:

wo <source> [output] [options]

| Argument | Description | | ---------- | -------------------------------------------------------------- | | <source> | Directory containing your wallpapers | | [output] | Where to put organized folders (default: <source>/organized) |

⚙️ Options

| Flag | Description | Default | | ------------------------- | ---------------------------------------------------------------------- | ------- | | -m, --mode <copy\|move> | Copy or move files | copy | | -r, --recursive | Recurse into sub-directories to find images | off | | --dry-run | Preview without writing anything | off | | --by-ratio | Group by aspect ratio instead of resolution (e.g. wide, ultrawide) | off | | --count | Count images in the source directory and exit (no organizing) | off | | -v, --verbose | Log every file as it processes | off | | --list-categories | Print all possible output folders and exit | — |

💡 Examples

# Preview what would happen (safe — no files written)
wo ~/Pictures/Wallpapers --dry-run

# Copy into organized subfolders, recursing into subfolders
wo ~/Pictures/Wallpapers --recursive

# Count all wallpapers recursively (fast analysis)
wo ~/Pictures/Wallpapers --recursive --count

# Group by aspect ratio instead of resolution
wo ~/Downloads/walls ~/Wallpapers --mode move --by-ratio

📂 Folder Structure

Images are placed directly into the category folders.

By Resolution (Default)

Images are grouped by the closest resolution tier (based on the largest dimension):

organized/
├── 5K+/
├── 4K/
├── 1440p/
├── 1080p/
├── 720p/
└── SD/

By Aspect Ratio (--by-ratio)

Images are grouped by aspect ratio brackets (width / height):

organized/
├── superwide/     (≥ 3.2:1)
├── ultrawide/     (2.1:1 - 3.2:1)
├── wide/          (1.65:1 - 2.1:1)
├── standard/      (1.4:1 - 1.65:1)
├── classic/       (1.1:1 - 1.4:1)
├── square/        (~ 1:1)
└── portrait/      (< 0.9:1)

🖼 Supported Formats

The tool uses sharp under the hood and automatically detects sizes for: jpg, jpeg, png, webp, tiff, tif, bmp, gif, avif

👨‍💻 Development

npm install       # Install dependencies
npm run dev       # Run using tsx
npm test          # Run unit tests (vitest)
npm run build     # Compile TypeScript → dist/