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

@yurukusa/cc-flow

v1.0.1

Published

Tool transition analysis for Claude Code — what follows what in your sessions

Downloads

140

Readme

cc-flow

Tool transition analysis for Claude Code — what tool follows what in your sessions.

npx cc-flow

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

Output

cc-flow — Tool Transition Analysis
====================================
Total transitions: 144,199

Top 20 Transitions
------------------
Bash→Bash                ██████████████  37767   26.19%
Read→Read                █████░░░░░░░░░  15618   10.83%
Bash→Read                ██░░░░░░░░░░░░   8193    5.68%
Read→Edit                ██░░░░░░░░░░░░   7791    5.40%
Edit→Edit                ██░░░░░░░░░░░░   7475    5.18%
...

What Follows Each Key Tool
--------------------------

After Read:
  → Read           ████████████  43.0%
  → Edit           ██████░░░░░░  21.4%
  → Bash           ████░░░░░░░░  16.1%
  → Grep           ███░░░░░░░░░  11.8%
  → Write          █░░░░░░░░░░░   3.3%

After Bash:
  → Bash           ████████████  69.9%
  → Read           ██░░░░░░░░░░  15.2%
  → Write          █░░░░░░░░░░░   4.9%
  ...

After Write:
  → Bash           ████████████  55.7%  ← verify immediately
  → Write          ████░░░░░░░░  21.4%
  ...

What it tells you

  • Bash→Bash (70%) — once in shell mode, stay in shell mode. The longest self-loop.
  • Write→Bash (56%) — after writing code, immediately run/test it. Verify what you just wrote.
  • Grep→Read (44%) — search for a pattern, then read the matching file.
  • Glob→Read (35%) — discover files, then read them.
  • Read is the hub — everything flows through Read. Grep leads to Read, Glob leads to Read, Edit leads back to Read.

The workflow in data form

Explore (Glob/Grep) → Read → Edit/Write → Bash (verify) → Read (inspect) → ...

Query a specific tool

npx cc-flow --from=Read    # what follows Read?
npx cc-flow --from=Bash    # what follows Bash?
npx cc-flow --from=Write   # what follows Write?

Options

npx cc-flow                  # full analysis
npx cc-flow --from=ToolName  # transitions from one tool
npx cc-flow --json           # raw JSON output

Browser version

yurukusa.github.io/cc-flow — interactive transition matrix visualization.

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


Want to optimize how Claude Code uses its tools?

Claude Code Ops Kit ($19) — 10 production hooks + 6 templates + 3 tools. Built from 140+ hours of autonomous operation.


Source: yurukusa/cc-flow