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

@vineethnkrishnan/claude-sessions

v0.1.7

Published

Interactive session manager for Claude Code — browse, search, delete, and resume past conversations

Readme

claude-sessions

npm CI License: MIT

Documentation · npm · GitHub

Interactive session manager for Claude Code. Browse, search, delete, and resume past conversations from your terminal.

Claude Code provides --resume <session-id> and --continue, but no way to browse or search through your session history. This tool fills that gap.

demo

Features

  • Browse all Claude Code sessions sorted by most recent
  • Shows date, project, git branch, message count, and first message preview
  • Session preview — press p to peek into a conversation before resuming
  • Fuzzy search/filter to find sessions quickly
  • Delete old sessions you no longer need
  • Optional fzf integration for power users
  • Animated splash screen on startup
  • Works on macOS and Linux

Installation

npm install -g @vineethnkrishnan/claude-sessions

Or run without installing:

npx @vineethnkrishnan/claude-sessions

Usage

claude-sessions              # Interactive TUI
claude-sessions --fzf        # Use fzf for selection
claude-sessions --delete     # Delete mode
claude-sessions --no-splash  # Skip splash screen

Keybindings

| Key | Action | |-------------|--------------------------------| | Up/Down | Navigate | | Page Up/Down | Jump 10 | | / | Search / filter | | Enter | Resume session (or end search) | | p | Preview session conversation | | d | Delete selected session | | Esc | Clear search / close preview | | q | Quit |

Architecture

Vertical-slice hexagonal architecture with modular domain structure:

src/
├── domain/session/              # Session domain module
│   ├── domain/                  # Pure business logic (zero deps)
│   │   ├── session.model.ts     # Session entity + filtering
│   │   ├── session-detail.model.ts  # Conversation detail model
│   │   └── session.error.ts     # Domain errors
│   ├── application/             # Use cases + ports
│   │   ├── ports/               # Interface contracts
│   │   ├── list-sessions.use-case.ts
│   │   ├── delete-session.use-case.ts
│   │   ├── resume-session.use-case.ts
│   │   └── get-session-detail.use-case.ts
│   ├── infrastructure/          # Adapters (fs, spawn)
│   │   ├── fs-session-repository.adapter.ts
│   │   ├── fs-session-storage.adapter.ts
│   │   ├── cli-process-launcher.adapter.ts
│   │   └── jsonl-parser.ts
│   ├── presenters/              # UI layer (Ink/React)
│   │   ├── components/
│   │   ├── hooks/
│   │   ├── formatters/
│   │   └── app.tsx
│   └── session.module.ts        # Module wiring (DI)
├── common/helpers/              # Cross-domain utilities
│   └── path.helper.ts
└── cli.tsx                      # Entry point

Dependency flow: presenters → application → domain ← infrastructure

Tests are co-located with source files (*.spec.ts).

Development

git clone https://github.com/vineethkrishnan/claude-sessions.git
cd claude-sessions
npm install
npm run build
npm test

# Run locally
node dist/cli.js

Scripts

| Command | Description | |---------|-------------| | npm run build | Compile TypeScript | | npm test | Run all tests | | npm run test:watch | Run tests in watch mode | | npm run lint | Lint source files | | npm run lint:fix | Lint and auto-fix | | npm run format | Format with Prettier |

CI/CD

  • ci.yml — Lint, test (Node 20/22), build on every push and PR
  • quality.yml — Dead code detection, duplication check, strict type safety
  • security.yml — CodeQL, dependency review, Trivy filesystem scan
  • commitlint.yml — Validates Conventional Commits format on PR titles
  • release.yml — Automated semantic versioning, npm publish, docs deploy

Commit Convention

Follows Conventional Commits:

feat(session): add fuzzy search filtering
fix(parser): handle array content format in JSONL
chore: update dependencies

Requirements

Documentation

Full documentation is available at claude-sessions.vineethnk.in.

License

MIT