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

cc-delta

v1.0.0

Published

Analyze Claude Code edit sizes — surgical vs massive changes, expansion ratios, and file type breakdown across all your sessions

Readme

cc-delta

npm version npm downloads

Analyze Claude Code edit sizes — are you making surgical fixes or rewriting whole files? Measures old_string and new_string lengths from every Edit tool call.

npx cc-delta

Zero dependencies. Reads ~/.claude/projects/ directly.

Output

cc-delta — Edit Change Size Distribution
================================================
Sessions: 1,835 | Edits: 17,295 | Changed: 2,841K → 3,362K chars (+18.3%)

Edit size distribution (by old_string length):
  micro   (<20)        ████████████             4,120   23.8%
  surgical(20-99)      ████████████████         5,716   33.1%
  moderate(100-499)    █████████                5,189   30.0%
  large  (500-1999)    ████                     1,641    9.5%
  massive(2000+)       ██                         629    3.6%

Expansion ratio (new_len / old_len):
  Median : 1.12×  |  Mean: 1.18×  |  p90: 2.41×
  Shrink : 31.2%  |  Grow: 58.4%  |  Same size: 10.4%

Top file types:
  Ext       Edits   AvgSize  Expansion
  ─────────────────────────────────────────
  .py        5,842     312    1.22×
  .md        3,109     184    1.31×
  .html      2,847     428    1.19×
  .mjs       1,923     281    1.16×
  .json        891      89    1.04×
  .ts          734     203    1.21×
  .sh          312      97    1.11×
  .txt         183      62    1.08×

What it tells you

  • 57% of edits are small (micro + surgical) — most Claude Code edits are targeted fixes, not rewrites
  • Claude adds more than it removes (median 1.12×) — code grows with each edit session
  • Massive edits (2000+ chars) are only 3.6% but represent ~40% of total changed content
  • Markdown expands most (1.31×) — docs and READMEs grow the most when edited
  • JSON expands least (1.04×) — configuration changes are tight and precise
  • p90 ratio is 2.41× — 10% of edits more than double the original content

Dig into a specific file type

npx cc-delta --ext=py      # Python edit breakdown
npx cc-delta --ext=html    # HTML edit patterns
npx cc-delta --ext=json    # Config file edits
npx cc-delta --json        # raw JSON output

Browser version

yurukusa.github.io/cc-delta — drag and drop your projects folder. Includes histograms of edit sizes and expansion ratios.

Part of cc-toolkit — tools for understanding your Claude Code sessions.


Source: yurukusa/cc-delta