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

claudeactivity

v0.1.4

Published

Activity visualizer for Claude Code — see which repos, files, and tools you use most

Readme

claudeactivity

Activity visualizer for Claude Code. Scans your local Claude session logs and generates a clean HTML report showing which repos, files, and tools you use most.

Usage

No install needed:

npx claudeactivity scan

Or install globally:

npm install -g claudeactivity
claudeactivity scan

The report opens in your browser automatically. If it doesn't, the path is printed — copy it and open manually.

The report is a tabbed dashboard with a date-range filter (7d / 30d / 90d / All) that recomputes every section live.

What it shows

Overview

  • Activity timeline — daily file accesses across the selected range
  • Tool breakdown — Read / Edit / Search / Exec proportions
  • Coding persona — inferred from your tool usage ratios

Projects

  • Project activity — all repos ranked by access count, sessions, and avg session depth
  • Repository breakdown — per-repo cards with session stats and top files

Files

  • Most accessed files and most edited files (edits/writes only)
  • Directory hotspots — most accessed directories
  • Language breakdown — share of activity by file extension

Sessions

  • Time-of-day heatmap — when you use Claude, by hour and day of week
  • Session duration — average, median, longest, and a length histogram

Tokens (read directly from session logs — no estimates)

  • Total tokens and cache hit rate
  • Tokens by model (Opus / Sonnet / Haiku) and by project
  • Token composition — fresh input / output / cache write / cache read
  • Token usage over time

Options

claudeactivity scan                        # scan all projects, open report
claudeactivity scan --no-open              # generate but don't open browser
claudeactivity scan --project              # scope to current directory only
claudeactivity scan --output /tmp/reports  # custom output directory
claudeactivity scan /custom/claude/path    # custom Claude projects directory

Reports are saved to:

.claudeactivity/latest-report.html                     # always overwritten
.claudeactivity/reports/report-YYYY-MM-DD-HH-MM.html  # timestamped copy

How it works

Reads JSONL session logs from ~/.claude/projects/ (or ~/.config/claude/projects/), extracts file accesses, tool usage, and token counts from each session, and renders a self-contained HTML report with no external dependencies. All filtering and charts run client-side, so the date filter works without regenerating the report.

Requirements

  • Node.js 18+
  • Claude Code installed and used at least once

Platform support

| Platform | Status | |---|---| | macOS | ✓ | | Linux | ✓ | | WSL | ✓ | | Windows | ✓ |