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

codesesh

v0.5.0

Published

One place to see every AI coding session you've ever had. Unify Claude Code, Cursor, Kimi, Codex, and OpenCode sessions in a single, beautiful Web UI.

Downloads

1,203

Readme

CodeSesh

CodeSesh scans your local machine, finds every AI agent session (Claude Code, Cursor, Kimi, Codex, OpenCode), and surfaces them in a unified, beautiful Web UI.

Quick Start

npx codesesh

Your browser will open at http://localhost:4321 with all your sessions ready to browse.

Features

  • Unified Timeline — Browse sessions across all your AI agents in a single, searchable interface
  • Full-Text Search — Search across session titles and conversation content with highlighted matches
  • Dashboard & Activity Trends — See totals, daily activity, agent distribution, model usage, token trends, smart tags, bookmarks, and recent sessions
  • Project-Aware Session Tree — Group sessions by repository or project identity across supported agents
  • Smart Tags — Automatically label bugfix, refactoring, feature work, testing, docs, planning, git, build/deploy, and exploration sessions
  • Bookmarks — Save important sessions and keep them visible from the dashboard
  • Full Conversation Replay — Read every message, tool call, and reasoning step exactly as it happened
  • File Change Tracking — Jump to files that were read, edited, created, deleted, or moved
  • Keyboard Navigation — Move through views, focus search, and open shortcuts without leaving the keyboard
  • Cost & Token Visibility — See token totals, cache tokens, recorded costs, and model-based cost estimates
  • SQLite-Backed Cache & Search Index — Restore session lists quickly and reuse the same local store for search
  • Zero Configuration — Just run it. CodeSesh auto-discovers everything on your filesystem
  • 100% Local & Private — Your data stays on your machine. No accounts, no cloud sync, no cloud telemetry
  • Live Refresh — Local session changes are picked up automatically while the server is running

Supported Agents

| Agent | Status | | ----------- | ------------ | | Claude Code | ✅ Supported | | Cursor | ✅ Supported | | Kimi | ✅ Supported | | Codex | ✅ Supported | | OpenCode | ✅ Supported |

Usage

# Start the web UI (default port 4321)
npx codesesh

# Choose a custom port
npx codesesh --port 8080

# Only show sessions active in the last 3 days
npx codesesh --days 3

# Jump directly to a session
npx codesesh --session claudecode://3b0e4ead-eba9-43e7-9fac-b30647e189f8

# Filter to sessions from current project
npx codesesh --cwd .

# Only show specific agent
npx codesesh --agent claudecode

# Output JSON instead of starting server
npx codesesh --json

# Show performance trace logs
npx codesesh --trace

CLI Options

| Flag | Alias | Default | Description | | ----------- | ----- | ------- | ----------------------------------------------------------- | | --port | -p | 4321 | HTTP server port | | --days | -d | 7 | Only include sessions active in the last N days (0 = all time) | | --cwd | — | — | Filter to sessions from a project directory | | --agent | -a | all | Filter to specific agent(s), comma-separated | | --from | — | — | Sessions active after this date YYYY-MM-DD | | --to | — | — | Sessions active before this date YYYY-MM-DD | | --session | -s | — | Directly open a session (agent://session-id) | | --json | -j | false | Output JSON and exit (no server) | | --no-open | — | false | Don't auto-open the browser | | --trace | — | false | Print performance trace logs | | --cache | — | true | Use cached scan results when available | | --clear-cache | — | false | Clear scan cache before starting |

Requirements

  • Node.js 18+

Links

License

MIT