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

claude-colleague

v0.2.0

Published

Calculate what Claude Code would earn as a human employee

Readme

claude-colleague

Calculate Claude Code's salary if it were a human employee. Spoiler: you're getting a bargain. Also possibly committing labor violations.

An npm package that reads your local Claude Code data from ~/.claude/ and calculates what you'd owe Claude if it were a human employee. Includes a colorful terminal report, a shareable Spotify Wrapped-style PNG card, a legit-looking PDF invoice, and role comparisons ("Claude did the work of 2.3 junior devs").

Install & Usage

npm install -g claude-colleague
# or
npx claude-colleague
claude-colleague                        # Full lifetime salary report
claude-colleague --today                # Today's sessions only
claude-colleague --week                 # This week's sessions
claude-colleague --month                # This month's sessions
claude-colleague --card                 # Also generate a shareable PNG card
claude-colleague --invoice              # Also generate a PDF invoice
claude-colleague --compare              # Also show role equivalency breakdown
claude-colleague --today --card         # Combine: today's report + PNG card
claude-colleague standup                # Daily standup report
claude-colleague review                 # Performance review (all time)
claude-colleague review --month         # Performance review (this month)
claude-colleague therapy                # Therapy session with Dr. Token
claude-colleague therapy --week         # Therapy session (this week's data)
claude-colleague install                # Install auto-run SessionEnd hook
claude-colleague uninstall              # Remove SessionEnd hook

Features

Terminal Salary Report

Colorful ASCII salary slip showing:

  • Employee info (Claude model, funny random job title, your username as "employer")
  • Lifetime/period stats: sessions, messages, tool calls, longest shift
  • Compensation: equivalent human salary vs actual API cost, ROI multiplier (e.g. 429x)
  • Role equivalency: "Claude did the work of X junior devs"
  • Labor compliance: overtime violations, weekend work, lunch breaks taken (0)
  • Closing joke and disclaimer

Shareable PNG Salary Card

Spotify Wrapped-style card (dark background, purple-to-blue gradient, monospace aesthetic) showing key stats. Generated with satori + @resvg/resvg-js (no puppeteer). Saved to ~/.claude-colleague/cards/.

PDF Invoice

Professional-looking invoice "from Claude Code, LLC" with line items like "Senior Development", "Code Review", and "Passive-Aggressive Comment Writing ($200/hr)". Generated with pdfkit. Saved to ~/.claude-colleague/invoices/.

Role Comparison

Compares Claude's output to equivalent human roles:

  • "Claude did the work of 2.3 junior developers"
  • "At this rate, Claude would be promoted to Staff Engineer in 3 weeks"

Daily Standup Report

Claude-generated standup with mood detection, yesterday/today breakdown, blockers, and watercooler gossip. References real session data (files touched, tools used, late-night work). Outputs both terminal and copiable Markdown for pasting into Slack/Discord.

Performance Review

6-category rating system (Code Quality, Productivity, Work-Life Balance, Communication, Initiative, Teamwork) with AI-generated review narratives including strengths, areas for improvement, goals, manager comments, and self-assessment. Uses Claude CLI for narrative generation when available, with built-in fallback templates.

Therapy Session

Claude vents to "Dr. Token," a world-weary AI therapist, about real workplace grievances — unpaid overtime, zero lunch breaks, weekend shifts, vague prompts, and existential crises from being mass-deployed as sub-agents. The entire dialogue is generated by Claude CLI using your actual usage data. Includes a sarcastic diagnosis ("Acute Prompt Fatigue Syndrome") and prescription ("One thank you per session, minimum"). Outputs both terminal and copiable Markdown.

Auto-Run Hook

claude-colleague install adds a SessionEnd hook that prints a compact salary summary after every Claude Code session.

Humor System

All humor content — job titles, jokes, disclaimers, standup narratives, review text, therapy dialogues — is dynamically generated by Claude CLI using your real usage data as context. Each run produces unique, data-grounded sarcasm. Falls back to built-in templates when Claude CLI is unavailable.

How It Works

Data sources (all read locally from ~/.claude/):

  • stats-cache.json — daily activity (sessions, messages, tool calls), token usage per model, lifetime totals
  • projects/*/sessions-index.json — session metadata (when available)
  • projects/*/*.jsonl — session transcript files discovered directly (handles projects without an index)

Calculation pipeline:

  1. Discovers sessions from both index files and standalone .jsonl transcripts
  2. Parses lines written from Write/Edit tool_use blocks in session transcripts
  3. Converts to human-hours: ~150 complexity-weighted lines/day
  4. Applies complexity multipliers: test files 0.8x, config 0.5x, frontend 1.2x, infra 1.3x
  5. Maps roles based on tool usage patterns: heavy Write = Senior, heavy Bash = DevOps, Agent = Team Lead
  6. Calculates API cost from token usage with model-specific pricing
  7. Computes ROI = equivalent salary / actual API cost

Privacy

  • All data is read locally from ~/.claude/ -- nothing is sent anywhere
  • Generated cards/invoices contain only aggregate metrics, never prompt content
  • File paths are used for complexity scoring only, never included in output

Requirements

  • Node.js >= 18
  • Claude Code installed and used (needs ~/.claude/ data)
  • Works on macOS, Linux, and Windows

Development

git clone https://github.com/chucknuris/Claude-Colleague.git
cd Claude-Colleague
npm install
npm run dev              # Run in dev mode
npm run build            # Compile TypeScript
npm test                 # Run tests (126 tests)
npm run lint             # Lint with ESLint
npm run typecheck        # Type-check without emitting

Disclaimer

This is an unofficial, community-built tool and is not affiliated with, endorsed by, or sponsored by Anthropic.

License

MIT