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

cmdly

v0.1.0

Published

A drop-in replacement for the recently deprecated [`gh-copilot`](https://github.com/github/gh-copilot) with multi-provider support. Generate shell commands with natural language and get detailed explanation.

Readme

cmdly

A drop-in replacement for the recently deprecated gh-copilot with multi-provider support. Generate shell commands with natural language and get detailed explanation.

https://github.com/user-attachments/assets/d3dda9c8-e202-4d7a-bbc8-bac9b32f7ac7

Table of Contents

Installation

npm install -g cmdly

Quick Start

  1. Configure your AI provider:
cmdly configure
  1. Get command suggestions:
cmdly suggest "find all typescript files modified in the last week"
  1. Explain complex commands:
cmdly explain "find . -name '*.ts' -type f -mtime -7"

💡 Pro Tip: Create shell alias for easier access:

alias cm='cmdly' # or cly

Commands

suggest

Generate command suggestions from natural language descriptions.

Usage:

cmdly suggest [prompt] [options]

Arguments:

  • prompt (optional) - Natural language description of what you want to do. If omitted, you'll be prompted interactively.

Options:

  • -t, --target <type> - Target command type: shell (default) or git

Examples:

# Interactive mode
cmdly suggest

# Direct prompt
cmdly suggest "list all processes using port 3000"

# Direct prompt with target
cmdly suggest "show diff for the last merge commit" --target git

Interactive Actions:

After receiving a suggestion, you can:

  • Run - Execute the command immediately
  • Revise - Refine the suggestion with additional context
  • Explain - Get a detailed breakdown of how the command works
  • Copy - Copy the command to your clipboard
  • Cancel - Exit without taking action

Example Session:

$ cmdly suggest "find large files over 100MB"

find . -type f -size +100M

? What would you like to do? (Use arrow keys)
❯ Run
  Revise
  Explain
  Copy
  Cancel

explain

Get detailed explanations of shell commands with component breakdowns.

Usage:

cmdly explain [command]

Arguments:

  • command (optional) - The command to explain. If omitted, you'll be prompted to enter one.

Examples:

# Interactive mode
cmdly explain

# Direct command
cmdly explain "tar -xzf archive.tar.gz -C /destination"

Example Output:

$ cmdly explain "rm -rf /tmp/cache"

## Summary

Recursively deletes the /tmp/cache directory and all its contents without
prompting for confirmation.

## Breakdown

• `rm`: The remove command, used to delete files and directories
  • `-r` (recursive): Deletes directories and all their contents
  • `-f` (force): Skips confirmation prompts
    • `/tmp/cache`: The target directory path to be deleted

configure

Set up or update your preferences and authentication.

Usage:

cmdly configure

What you'll configure:

  1. AI Provider - Choose from OpenAI, Anthropic, Google, GitHub Models, or GitHub Copilot
  2. Authentication - API key or OAuth (GitHub Copilot)
  3. Default Model - Select from available models for your provider
  4. Syntax Theme - Choose your preferred highlighting theme
  5. Default Action - Set a default action to auto run after suggestions

Configuration

Default config (~/.config/cmdly/cmdly.json):

{
  "provider": "github-copilot",
  "model": "gpt-5-mini",
  "theme": "github-dark-default",
  "default_suggest_action": "copy"
}

Fields:

  • provider (string, required) - AI provider identifier
  • model (string, required) - Model identifier for the provider from models.dev
  • theme (string, optional) - Syntax highlighting theme from Shiki themes
  • default_suggest_action (string, optional) - run, revise, explain, copy, or cancel. Leave unset to always ask.