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

v0.1.1

Published

Recover Claude Code sessions abandoned by a crash, reboot, or IDE kill — an interactive TUI picker over the live registry, reboot survivors, and IDE scrollback, with auto-offer on terminal restore. macOS.

Downloads

142

Readme

claude-revive

Recover Claude Code sessions abandoned by a crash, reboot, or IDE kill — not just a session browser, but a crash-recovery tool. An interactive TUI picker over everything that was live when things went sideways, with auto-offer on terminal restore.

macOS only (for now). Node ≥ 18.

npx claude-revive          # interactive picker over all recoverable sessions → resume the one you pick

Why

Claude Code's --resume lists past sessions, but after a Mac reboot or an IDE crash the sessions that were open in your terminals are easy to lose. claude-revive reconstructs them from three sources and unions them:

  • reboot mtime-burst — every running claude flushes its transcript at shutdown; files in a tight window before boot were live;
  • IDE terminal scrollback — VSCode/Cursor persist each terminal's buffer, which holds the --resume <id> line of idle tabs;
  • a live registry — optional hooks record every interactive session and what was cleanly closed (so closed/dropped ones are never re-offered).

It filters out compaction artifacts, temp-dir scratch sessions, and empty ones; shows custom /rename titles; and groups by project.

Use

claude-revive               # pick over all recoverable sessions, grouped by project
claude-revive --here        # only the current project directory
claude-revive --active      # currently-LIVE sessions (a pre-restart backup)
claude-revive --grep TERM   # pick among sessions that mention TERM
claude-revive 900           # widen the reboot mtime window to 900s

Keys: ↑↓/jk move · enter resume · d drop (never offer again) · r refresh · q quit. The picker auto-refreshes when sessions are resumed/closed in other terminals.

Full crash-recovery (init)

For the complete experience — a live registry, clean-close detection, and auto-open-on-restore — install globally and run init:

npm i -g claude-revive
claude-revive init --shell
  • Adds SessionStart/SessionEnd hooks to ~/.claude/settings.json (maintains the registry + tombstones cleanly-closed sessions).
  • --shell adds a block to ~/.zshrc that snapshots live sessions and auto-opens the picker in restored IDE terminals (within 30 min of boot). Set CLAUDE_REVIVE_OFF=1 to disable.

Reverse it: claude-revive init --uninstall. Both files are backed up (*.claude-revive.bak) before any change.

How resume works

claude --resume is cwd-scoped, so the picker cds into the session's project directory before resuming, and refuses to re-resume one that's already live in another terminal.

License

MIT