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

v0.1.2

Published

Browse and delete Claude Code chat sessions across all projects, from a terminal UI.

Readme

claude-code-cleaner

Browse and delete Claude Code chat sessions across all your projects, from a terminal UI. Sessions are shown by their title, not their opaque uuid, so you can actually tell what you're deleting.

Unofficial, community tool. Not affiliated with or endorsed by Anthropic.

Requirements

  • Node.js >= 22
  • macOS/Linux (uses lsof for a best-effort "is this session active" check; falls back gracefully if unavailable)

Install / run

npx claude-code-cleaner

or install globally:

npm install -g claude-code-cleaner
ccsc

What it does

Claude Code stores each chat session as a <uuid>.jsonl file under ~/.claude/projects/, grouped by project. This tool scans that directory, resolves each session's real title (and which project it belongs to, even if the mangled directory name is ambiguous), and lets you multi-select and delete sessions you no longer want — freeing disk space and cleaning up project/session lists.

Usage

ccsc                 # launch the interactive TUI
ccsc --json           # print all projects/sessions as JSON, no TUI
ccsc --dry-run         # (in the TUI) preview a delete without touching disk
ccsc --trash            # (in the TUI) move deleted sessions to ~/.claude/.trash instead of
                          # permanently removing them
ccsc --claude-dir <dir>  # point at a different projects directory (mainly for testing)

Keybindings

| Key | Action | | --- | --- | | ↑/↓, j/k | Navigate | | Enter | Open project / open delete confirmation for current selection | | A (project list) | Browse sessions across all projects at once | | / | Search/filter by title | | Esc | Clear search, or go back | | Space | Toggle selection | | a | Select all visible (filtered) sessions | | A (session list) | Select all sessions across all projects | | s | Cycle sort mode (date / size / title) | | d | Open delete confirmation for current selection | | r | Rescan | | ? | Toggle help | | q | Quit |

Safety

  • Deletion is permanent by default and requires an explicit confirmation step. Pass --trash to move sessions to ~/.claude/.trash/<timestamp>/ instead of deleting them outright, or --dry-run to preview without touching disk.
  • The session you're currently running ccsc from inside (if launched from within an active Claude Code session) is automatically detected and protected from deletion.
  • Sessions with a very recent modification time, or that another process appears to have open (best-effort lsof check), are flagged as "possibly active" in the list, and require typing DELETE to confirm rather than a single keypress.
  • This tool never modifies ~/.claude.json or any other Claude Code internal state — deleting a session only removes its own <uuid>.jsonl file (and sibling <uuid>/ subagent data, if present). Self-contained by design.

Development

npm install
npm run dev -- --claude-dir test/fixtures/claude-home/projects   # run against synthetic fixtures
npm test
npm run build

License

MIT