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-audit-log

v1.0.0

Published

See what your Claude Code actually did. Human-readable audit trail from session transcripts.

Readme

cc-audit-log

See what your Claude Code actually did. Human-readable audit trail from session transcripts.

npx cc-audit-log

What it shows

  • Files created and modified
  • Bash commands executed
  • Git commits and pushes
  • Subagent spawns
  • Risk flags (force pushes, recursive deletes, sudo, etc.)
  • Timeline of key actions with timestamps

Sample output

  Claude Code Audit Log v1.0
  ═══════════════════════════════════════
  Scanning: ~/.claude/projects/

  ▸ Session: 2026-02-27 11:47 → 15:44 (3h 56m)
    Project: nursery-shift  |  7.1MB transcript

  ▸ Summary
    Tool calls:     201
    Files created:  4
    Files modified: 6
    Files read:     18
    Bash commands:  44
    Git commits:    1

  ▸ Key Actions
    11:48  T Spawned agent: Explore nursery-shift codebase
    11:51  + Created ~/projects/nursery-shift/src/nr_supply.py
    11:51  $ Syntax check nr_supply.py
    11:53  + Created ~/projects/nursery-shift/src/shift_milp.py
    11:54  ~ Modified ~/projects/nursery-shift/src/scheduler.py
    11:55  ~ Modified ~/projects/nursery-shift/src/schedule_optimizer.py
    12:10  G Git commit
    ...

  ▸ Risk Flags
    None detected

  ▸ Files Touched
    NEW  ~/projects/nursery-shift/src/nr_supply.py
    NEW  ~/projects/nursery-shift/src/shift_milp.py
    MOD  ~/projects/nursery-shift/src/scheduler.py
    MOD  ~/projects/nursery-shift/src/schedule_optimizer.py

Usage

# Most recent session (default)
npx cc-audit-log

# All sessions from today
npx cc-audit-log --today

# Sessions from a specific date
npx cc-audit-log --date 2026-02-27

# Last N sessions
npx cc-audit-log --last 5

# All sessions (can be slow for heavy users)
npx cc-audit-log --all

# Structured JSON output (for CI/scripts/programmatic use)
npx cc-audit-log --json

# Combine with other flags
npx cc-audit-log --today --json
npx cc-audit-log --last 5 --json

JSON output

Pass --json (or -j) to get structured JSON on stdout instead of the formatted terminal display. All other flags (--today, --date, --last, --all) combine with --json.

{
  "version": "1.0",
  "sessionsScanned": 1,
  "sessions": [
    {
      "project": "my-app",
      "start": "2026-02-27T11:47:00.000Z",
      "end": "2026-02-27T15:44:00.000Z",
      "duration": 237,
      "transcriptSize": 7450000,
      "summary": {
        "toolCalls": 201,
        "filesCreated": 4,
        "filesModified": 6,
        "filesRead": 18,
        "bashCommands": 44,
        "gitCommits": 1
      },
      "keyActions": [
        { "time": "2026-02-27T11:48:00.000Z", "type": "task", "detail": "Spawned agent: ..." },
        { "time": "2026-02-27T11:51:00.000Z", "type": "create", "detail": "Created ~/src/app.py" }
      ],
      "riskFlags": []
    }
  ]
}

| Field | Description | |-------|-------------| | version | Schema version ("1.0") | | sessionsScanned | Number of sessions in this output | | sessions[].project | Project directory name | | sessions[].start / end | ISO 8601 timestamps | | sessions[].duration | Duration in minutes | | sessions[].transcriptSize | Raw transcript file size in bytes | | sessions[].summary | Counts of tool calls, file ops, bash commands, git commits | | sessions[].keyActions | Timeline of notable actions (deduplicated) | | sessions[].riskFlags | Array of risk label strings (empty if clean) |

Risk detection

The tool flags potentially risky commands:

| Pattern | Flag | |---------|------| | rm -rf | Recursive delete | | git push --force | Force push | | git reset --hard | Hard reset | | npm publish | npm publish | | sudo | Sudo command | | curl -X POST | HTTP POST request | | DROP TABLE/DATABASE | Database drop |

How it works

  1. Scans ~/.claude/projects/ for session transcript files (.jsonl)
  2. Parses each line for tool_use events (assistant messages)
  3. Classifies actions: file writes, edits, bash commands, git operations
  4. Generates a human-readable timeline with risk flags
  5. Includes subagent sessions

Zero dependencies. No data sent anywhere. Runs entirely local.

The cc-toolkit trilogy

| Tool | What it checks | |------|---------------| | cc-health-check | Is your AI setup safe? | | cc-session-stats | How much are you using AI? | | cc-audit-log | What did your AI do? | | cc-cost-check | Cost per commit calculator | | cc-wrapped | Your AI year in review (Spotify Wrapped style) | | cc-roast | Your CLAUDE.md, brutally honest | | claude-code-hooks | Fix your score — 10 hooks + 5 templates |

License

MIT