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

howsh

v0.1.0

Published

Turn English into bash commands with AI-powered suggestions

Readme

howsh

Turn English into bash commands with AI-powered suggestions.

howsh provides always-on suggestions that appear as you type, similar to zsh-autosuggestions or Cursor's tab completion. Just describe what you want in plain English, and accept the suggestion with Tab.

Installation

Global Install (Recommended)

npm install -g howsh

One-time Use

npx howsh "list all files larger than 100MB"

Requirements

  • Node.js 18+ or Bun

Quick Start

  1. Set your API key:
howsh config set api-key YOUR_ANTHROPIC_KEY
  1. Try it out:
howsh "find all python files modified today"
# Output: find . -name "*.py" -mtime 0
  1. Enable always-on suggestions:
howsh setup   # Add to your shell
source ~/.zshrc  # Reload shell config
howsh on      # Enable suggestions

Now just type in plain English and press Tab to accept suggestions!

Usage

Direct Translation

howsh "find all files larger than 100MB"
# Output: find . -size +100M

howsh "show disk usage sorted by size"
# Output: du -sh * | sort -h

howsh "find processes using port 3000"
# Output: lsof -i :3000

Always-On Suggestions

When enabled, howsh shows grayed-out suggestions as you type:

  1. Start typing an English description
  2. A suggestion appears in gray after your cursor
  3. Press Tab or Right Arrow to accept
  4. Press any other key to continue typing
# Enable suggestions
howsh on

# Disable suggestions
howsh off

Cheat Sheets

Browse built-in bash cheatsheets:

# List all cheatsheets
howsh list

# View a specific cheatsheet
howsh list tar
howsh list git

# Search across all cheatsheets
howsh list --search "network"

Available cheatsheets:

  • file-operations - find, copy, move, compress
  • text-processing - grep, sed, awk, sort
  • networking - curl, ssh, ports, dns
  • git - branches, commits, remotes
  • process-management - ps, kill, jobs, services

Configuration

# View current config
howsh config

# Set provider (anthropic or openai)
howsh config set provider anthropic

# Set API key
howsh config set api-key sk-ant-...

# Set model (optional, uses fast default)
howsh config set model claude-3-haiku-20240307

Providers

howsh supports multiple LLM providers:

| Provider | Default Model | Env Variable | |----------|--------------|--------------| | Anthropic (default) | claude-3-haiku | ANTHROPIC_API_KEY | | OpenAI | gpt-4o-mini | OPENAI_API_KEY |

You can set the API key either through the config command or environment variable:

# Via config (stored securely)
howsh config set api-key YOUR_KEY

# Via environment variable
export ANTHROPIC_API_KEY=your_key

Shell Integration

howsh integrates with Zsh to provide always-on suggestions:

# One-time setup (adds to ~/.zshrc)
howsh setup

# Reload your shell
source ~/.zshrc

# Enable suggestions
howsh on

The shell integration:

  • Monitors your input as you type
  • Detects when you're typing English (not bash commands)
  • Fetches suggestions in the background
  • Shows grayed-out hints that you can accept with Tab

Examples

# File operations
howsh "delete all node_modules folders"
# find . -name "node_modules" -type d -exec rm -rf {} +

howsh "find duplicate files"
# find . -type f -exec md5sum {} + | sort | uniq -d -w32

# Text processing
howsh "count lines of code in all javascript files"
# find . -name "*.js" -exec wc -l {} + | tail -1

howsh "replace foo with bar in all python files"
# find . -name "*.py" -exec sed -i 's/foo/bar/g' {} +

# System administration
howsh "show largest files in current directory"
# du -sh * | sort -rh | head -10

howsh "kill all node processes"
# pkill -f node

Development

# Clone the repo
git clone https://github.com/AdamRamberg/howsh
cd howsh

# Install dependencies
bun install

# Run in development
bun run dev "your query here"

# Build for distribution
bun run build

License

MIT