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

@yyyeader/claude-recall

v1.3.2

Published

Search and resume Claude Code sessions across all projects

Readme


The Problem

You've been deep in a Claude Code session — debugging, architecting, iterating. You close the terminal, switch projects, and when you come back:

$ claude --resume abc123
No conversation found with session ID: abc123

Claude Code's /resume only searches the current directory. If you're not in the exact same folder where the session was created, it's invisible.

You know the session exists somewhere in ~/.claude/projects/, but good luck finding it manually across dozens of encoded directories.

The Solution

npm install -g @yyyeader/claude-recall
claude-recall debug          # Find that debugging session from last week
claude-recall                # Browse everything with fzf
claude-recall -j | jq        # Pipe JSON to your own tools

claude-recall scans all your Claude Code sessions, lets you search by keyword, and gives you the exact command to resume — from any directory.

Quick Start

1. Install

npm install -g @yyyeader/claude-recall

2. Add the shell wrapper (recommended)

Add to your ~/.zshrc or ~/.bashrc:

cr() {
  local cmd
  cmd=$(claude-recall "$@" 2>/dev/null | tail -1)
  if [ -n "$cmd" ] && echo "$cmd" | grep -q "^cd "; then
    eval "$cmd"
  fi
}

3. Use it

cr                    # Browse all sessions with fzf
cr e2b                # Search + select + auto cd + resume
cr terraform          # Find that infra session from days ago

One command. Search, select, resume. Done.

All Options

claude-recall [keyword]         Interactive search (fzf)
claude-recall -l [keyword]      List mode (no interaction)
claude-recall -j [keyword]      JSON output (for scripting)
claude-recall -p <project>      Filter by project name
claude-recall -n <number>       Limit results (default: 50)
claude-recall -h                Help

How It Works

Claude Code stores sessions as JSONL files in ~/.claude/projects/, with directory names like:

-Users-you-projects-my-cool-app    →    /Users/you/projects/my-cool-app

The catch? - could be a path separator OR part of a directory name (e2b-infra, my-cool-app). Simple string replacement breaks.

claude-recall uses a greedy path resolution algorithm: it tries the longest possible directory name first, checks if it exists on disk, and falls back to shorter segments. This correctly resolves ambiguous paths like:

-Users-you-work-e2b-infra    →    /Users/you/work/e2b-infra      (not /work/e2b/infra)

Then it stream-parses each JSONL file, extracts user messages as summaries, and presents everything through fzf for instant fuzzy search.

Requirements

  • Node.js >= 18
  • fzf — optional but recommended (falls back to built-in selector)

Contributing

Issues and PRs welcome. This is a simple tool — the best contributions are bug fixes, platform compatibility improvements, and better session parsing.

License

MIT