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

screenshot-renamer

v1.0.0

Published

A utility for thoughtful image renaming with clipboard integration

Readme

The Screenshot Renamer: A Quiet Utility

For the curiously organized. This small utility observes a designated folder for new screenshots, considers their content, and bestows upon them a more thoughtful name.

It transforms Screenshot 2024-06-23 at 12.30.00 PM.png into login_screen_with_error_message.png. And then, with a subtle gesture, it places the newly named image onto your clipboard.


Inviting the Utility to Your Workshop

To begin, a few preparations are in order. This utility relies on Node.js and, for cloud-based AI, an API key.

1. Get an API Key (Optional)

If you wish to use a cloud-based AI like Google Gemini, you must first acquire an API key. A visit to the Google AI Studio will provide one. For local models like LM Studio or Ollama, this step is not required.

2. Install the Utility

You can install this utility directly from npm, or by cloning the repository.

  • Method A: Install from npm (Recommended)

    npm install -g screenshot-renamer
  • Method B: Install from GitHub Invite the utility's source code to your local machine and install its dependencies.

    git clone https://github.com/maxmilneaus/Screenshot-Renamer.git
    cd Screenshot-Renamer
    npm install

3. Configure the Utility

Next, you must introduce yourself to the utility. It offers several methods to accommodate any environment. Choose the one that best suits your needs.

  • Method A: Interactive Setup (Recommended) For a guided experience, use the setup command. It will ask for the necessary details.

    npm run setup
  • Method B: Command-Line Setup For automated or non-interactive environments, you may provide the configuration directly.

    npm run setup -- --api-key "YOUR_KEY" --folder "/path/to/your/screenshots"
  • Method C: Quick Configuration For the fastest setup, you can use the configure.js script with just your API key.

    node configure.js YOUR_API_KEY

4. Test the Service

With the setup complete, you can awaken the service for a test run.

npm run dev

Drop a screenshot into your designated folder. The utility will notice and act accordingly.

The Inner Workings: How It Perceives

This utility employs an AI to discern the essence of your images. You are presented with three distinct approaches:

  • Gemini: A swift and capable intellect from Google, residing in the cloud. It requires an internet connection and a modest API key.
  • LM Studio: An intellect that resides upon your own machine, for those who prefer a local arrangement. It requires the LM Studio application.
  • Ollama: Another fine choice for local AI models. It is known for its light touch and ease of management.
  • Ollama is significantly slower then LM Studio - exploration as to why is welcome. I use only LM Studio.

These arrangements can be revisited at any time by invoking npm run setup.

For a More Permanent Arrangement

Should you find this utility agreeable, you may invite it to reside permanently. This will establish it as a background service, awakening automatically upon your login.

  • To Install: npm run install-service
  • To Uninstall: npm run uninstall-service
  • To Inquire: npm run status

The Finer Adjustments

For those who appreciate the precise calibration of their instruments, the utility's settings are housed within a simple ledger at ~/.screenshot-renamer-config.json. This file may be edited directly, or one may prefer the more refined approach of the config command.

# To observe the current settings
npx screenshot-renamer config --show

# To adjust the observed folder
npx screenshot-renamer config --folder "/path/to/your/folder"

A complete inventory of settings, generally self-explanatory, can be found within the configuration file itself.

Contributing

The workshop door remains open. The core mechanisms reside within src/index.js and src/folder-watcher.js. The AI integrations are housed in src/analyzers/. Engaging npm run dev will illuminate the inner workings with necessary detail for development. An extra set of hands is always appreciated.

graph TD
    A[User Takes Screenshot] --> B[Folder Watcher Detects File];
    B --> C{Selects AI Analyzer};
    C --> D[Gemini Cloud];
    C --> E[LM Studio Local];
    C --> I[Ollama Local];
    D --> F[File is Renamed];
    E --> F;
    I --> F;
    F --> G[Copied to Clipboard];
    F --> H[Notification Sent];

A quiet creation by Max Milne.

A Note on Performance

We conducted a few quiet observations on a MacBook Pro (M1 Max - 32gb - 24gpu) to discern the subtle differences between the two "brains." Your own results will, of course, exhibit their own unique character.

☁️ Cloud Processing (Google Gemini)

  • Model: gemini-2.5-flash-lite-preview-06-17
  • Speed: Approximately 4.5 seconds on average.
  • Quality: Tends to offer highly descriptive and precise naming.
  • Cost: The complimentary tier is quite accommodating, likely sufficient for many daily renames.

🏠 Local Processing (LM Studio)

  • Model: google/gemma-3-4b
  • Speed: Approximately 7 seconds on average.
  • Quality: Provides a good, foundational naming.
  • Cost: Free.

🦙 Local Processing (Ollama)

  • Model: google/gemma-3-4b
  • Speed: Approximately 27 seconds on average.
  • Quality: Provides a good, thought slower, foundational naming.
  • Cost: Free.

This utility is designed to be shared. Here are a few notes for those who wish to distribute it or contribute to its development.

Distribution Options

  • **GitHub Repoe, once the local arrangement is established.

Built with help from Claude Code, Roo Code and Gemini 2.5 pro