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

shellmate

v1.0.0

Published

Your smart AI companion for the command line

Readme

Shellmate

Shellmate is a CLI tool that uses AI to translate a description into a valid shell command. It supports local models using Ollama, or OpenAI models.

NOTE: AI models, especially less powerful ones running locally on your computer, may hallucinate and generate commands that are incorrect or invalid. You should verify the generated command is correct if there is a chance it could modify or delete something that you don't want it to.

Installation

npm install -g shellmate

Configuration

Create a file in your home directory called shellmate.json. It should contain a provider property. This is the AI provider to use. To use a local LLM with Ollama, set this to ollama. To use the OpenAI API, set this to openai.

See the sections below for provider configuration options.

Using Ollama

In shellmate.json, set provider to ollama. Then, add an ollama property to the configuration with the following properties:

  • model: The name of the model to use. Make sure you have already downloaded this model by running ollama pull <model>.

Note that Ollama must already be running for Shellmate to be able to communicate with it.

Here is an example shellmate.json configured to use Ollama:

{
    "provider": "ollama",
    "ollama": {
        "model": "llama3.2"
    }
}

Using OpenAI

In shellmate.json, set provider to openai. Then, add an openai property to the configuration with the following properties:

  • apiKey: Your OpenAI API key.
  • model: The name of the OpenAI model to use.

Here is an example shellmate.json configured to use OpenAI:

{
    "provider": "openai",
    "openai": {
        "apiKey": "<your-api-key>",
        "model": "gpt-4o-mini"
    }
}

Running Shellmate

Run the shellmate command, specifying a description of the command you'd like to generate enclosed in quotes:

shellmate "Generate a 2048-bit RSA ssh key"

Shellmate will talk to the model, then return the command for you to run.