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

csessions

v1.1.0

Published

Browse and resume Claude Code CLI sessions — zero-dependency cross-platform CLI

Readme

csessions

Browse and resume Claude Code CLI sessions interactively. Zero dependencies. Cross-platform. Fast.

npm version npm downloads License

Features

  • Browse Claude Code sessions interactively
  • Resume any session instantly
  • Falls back to the first user prompt when no title exists
  • Hides internal memory/agent sessions by default
  • Works on Windows, macOS, and Linux
  • Zero runtime dependencies (Node.js built-ins only)

Installation

npm (Recommended)

npm install -g csessions

Resume sessions for the current project:

csessions

Show sessions from every project:

csessions --all

Bash (Linux / macOS / WSL)

sudo curl -L \
  -o /usr/local/bin/claude-sessions \
  https://raw.githubusercontent.com/Yashwanth-Kumar-26/claude-session/main/claude-sessions

sudo chmod +x /usr/local/bin/claude-sessions

Requirements

  • Bash 4+
  • jq

PowerShell (Windows)

curl -LO https://raw.githubusercontent.com/Yashwanth-Kumar-26/claude-session/main/claude-sessions.ps1

.\claude-sessions.ps1 -All

No additional dependencies required.


Usage

csessions

Browse sessions for the current directory.

csessions --all

Browse sessions across all projects.

csessions --with-mem

Include internal memory/agent sessions.

csessions deploy

Filter sessions containing "deploy".


Example

$ csessions

  Claude Code sessions → /home/user/project

  1  Give me Everything.md here in this folder...
     fbe1abe4-0945-4516-9c90-ee32e83b16a4 • 11d

  2  PRD v1 — Social for Builders
     3265e913-87fd-4b97-8947-a66644136712 • 13d

──────────────────────────────────────────

Pick a session (# / UUID / prefix / Enter = quit):
> 2

Resuming: 3265e913-87fd-4b97-8947-a66644136712

How It Works

Claude Code stores conversations as JSONL files under:

~/.claude/projects/<encoded-path>/<uuid>.jsonl

csessions:

  1. Finds available sessions.
  2. Reads sessions-index.json for labels.
  3. Falls back to the first user message when necessary.
  4. Lets you select a session interactively.
  5. Runs:
claude --resume <session-id>

Smart Features

  • Interactive session picker
  • Partial UUID matching
  • Session title extraction
  • Current-project or all-project browsing
  • Automatic filtering of internal Claude sessions
  • Safe non-interactive mode (lists sessions without prompting)
  • Case-preserving path encoding matching Claude Code

Requirements

npm version

  • Node.js 18+
  • No external dependencies

Bash version

  • Bash 4+
  • jq

PowerShell version

  • PowerShell 5+
  • Native ConvertFrom-Json

Links

  • npm: https://www.npmjs.com/package/csessions
  • GitHub: https://github.com/Yashwanth-Kumar-26/claude-session

License

This project is licensed under the MIT License.


Made for people who use Claude Code every day and want to jump back into any conversation in seconds.