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-search

v1.2.1

Published

Interactive TUI for searching Claude Code session history

Readme

ccs - Claude Code Search

npm version License: MIT

Like fzf or atuin, but for your Claude Code prompts.

ccs example

Why?

Your best prompts are buried across dozens of Claude Code sessions. This tool lets you instantly search and reuse them instead of rewriting from scratch.

Install

npm install -g claude-code-search

Usage

ccs                     # Launch interactive TUI
ccs -l                  # List recent prompts
ccs -s "refactor"       # Search for "refactor"
ccs -l -j               # Output as JSON
ccs -l -n 50            # List last 50 prompts
ccs -p /path/to/proj    # Filter by project path

Select a prompt and it's copied to your clipboard, ready to paste.

Pipe to Claude

Extract insights from your prompt history:

ccs -l | claude "what patterns do you see in how I prompt?"
ccs -s "refactor" -j | claude "summarize these prompts"

Features

  • Fuzzy search - Find prompts by any words they contain
  • Relevance ranking - Results sorted by match quality, not just date
  • Split-pane preview - See full content before selecting
  • Quick jump - Press 1-9 to instantly select
  • Filter modes - Search globally or within current directory
  • Non-interactive mode - Use with -l or -s for scripting
  • Color support - Respects NO_COLOR and FORCE_COLOR

CLI Options

Options:
  -l, --list            List all prompts (non-interactive)
  -s, --search <query>  Search prompts with query (non-interactive)
  -j, --json            Output as JSON (use with -l or -s)
  -n, --limit <n>       Limit number of results (default: 100)
  -p, --project <path>  Filter by project path
  -v, --version         Show version number
  -h, --help            Show help

Keyboard Shortcuts

| Key | Action | |-----|--------| | / or j / k | Navigate results | | 1-9 | Quick jump to result | | Enter | Copy & exit | | Ctrl+R / Shift+Tab | Toggle global/directory filter | | Esc / Ctrl+C | Quit |

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | General error | | 2 | Invalid arguments | | 3 | No results found |

Requirements

  • Node.js >= 18
  • Claude Code (reads from ~/.claude/projects/)

License

MIT - Matthew Blode