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

claude-code-command

v1.1.3

Published

Transform natural language requests into OS-specific shell commands using Claude Code CLI

Readme

CCC - Claude Code Command

npm version npm downloads License: MIT

Natural language to CLI commands using Claude Code CLI. Transforms your plain English requests into OS-specific shell commands with an interactive workflow.

Features

  • 🗣️ Natural Language Input: Describe what you want in plain English
  • 🖥️ OS-Aware: Automatically generates macOS, Linux, or Windows specific commands
  • Interactive Menu: Execute, copy, refine, or exit
  • 🔄 Iterative Refinement: Refine your request to get the perfect command
  • 🛡️ Safe: Always shows the command before execution

Installation

npm install -g claude-code-command

Local Development Install

git clone https://github.com/Bigsy/claude-code-command.git
cd claude-code-command
npm install
npm run build
npm install -g .

Prerequisites

  • Node.js (with npm) - version 18 or higher
  • Claude Code CLI installed and authenticated
  • Active Claude Code subscription (uses your existing Claude Code account)

Usage

Basic Usage

ccc "see current processes running"
# Generated command: ps aux (on macOS/Linux) or tasklist (on Windows)

ccc "show memory usage"
# Generated command: vm_stat (on macOS) or free -h (on Linux)

ccc "find all javascript files"
# Generated command: find . -name "*.js"

ccc "create a backup of typescript files with today's date"
# Generated command: tar -czf typescript_backup_$(date +%Y%m%d).tar.gz $(find . -name "*.ts")

Model Selection

CCC uses Claude Sonnet by default for balanced speed and quality. You can specify a different model:

# Use default Sonnet (balanced)
ccc "list files"

# Use Opus for the most sophisticated commands
ccc -m opus "build a complex pipeline for log analysis with error detection"

Interactive Menu

After generating a command, you get these options:

  1. Execute command - Run the command immediately
  2. Copy to clipboard - Copy command for later use
  3. Refine request - Modify your request to improve the command
  4. Exit - Quit without doing anything

Refinement Workflow

The refinement feature allows you to iteratively improve the generated command:

ccc "show disk usage"
# ✨ Generated command: df -h
# 
# ? What would you like to do?
#   Execute command
#   Copy to clipboard
# ❯ Refine request
#   Exit

# Select "Refine request"
# Original request: "show disk usage"
# Current command: df -h
# 
# Refine your request (provide additional details, constraints, or modifications):
# Enter refined request: show disk usage sorted by percentage used
#
# 🔄 Regenerating with refined request...
# ✨ Generated command: df -h | sort -k 5 -nr

Complex Examples

CCC excels at generating sophisticated commands:

ccc "find duplicate files by content hash and show which take up most space"
# Generated: find . -type f -exec md5sum {} + | sort | uniq -w32 -dD | cut -c 35- | xargs -I {} du -h {} | sort -hr

ccc "monitor network traffic and show top 10 connections by data usage"
# Generated: sudo iftop -nNPB -L 10

ccc "find all files modified in last 7 days and show their sizes"
# Generated: find . -type f -mtime -7 -exec ls -lh {} \;

ccc "count lines of code in this project"
# Generated: find . -type f \( -name "*.py" -o -name "*.js" -o -name "*.ts" ... \) -exec wc -l {} + | awk '{total += $1} END {print total}'

OS-Specific Commands

CCC automatically detects your operating system and generates appropriate commands:

| Request | macOS | Linux | Windows | |---------|-------|--------|---------| | "show memory usage" | vm_stat | free -h | wmic OS get TotalVisibleMemorySize,FreePhysicalMemory | | "list processes by memory" | top -l 1 -o mem -n 10 | ps aux --sort=-%mem | tasklist /fo table | | "check network connections" | netstat -an \| grep LISTEN | netstat -tuln | netstat -an \| findstr LISTENING |

Development

# Install dependencies
npm install

# Run in development mode
npm run dev -- "your command request"

# Build
npm run build

# Run built version
npm start -- "your command request"

Tips

  • Be specific about what you want: "show CPU usage for last 5 minutes" vs "show CPU"
  • Use refinement to add constraints: "but exclude hidden files", "and sort by size", "only for Python files"
  • The tool works best with single commands, but can generate pipelines when needed
  • Always review commands before executing, especially those requiring sudo privileges