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

@oorn/dot-claude

v1.3.0

Published

Global Claude Code configuration installer — statusline, settings, rules, and CLAUDE.md

Readme

dot-claude

Global Claude Code configuration installer — statusline, settings, rules, and CLAUDE.md for ~/.claude/.

Install

npx @oorn/dot-claude init

jq is required for the statusline. The installer will attempt to install it automatically via the available package manager on your system (Homebrew, apt, dnf, yum, pacman, zypper, apk, winget, Chocolatey, or Scoop). If auto-install fails, you'll be shown the manual command.

To update to the latest version:

npx @oorn/dot-claude@latest init

What gets installed

| File | Destination | Description | |------|-------------|-------------| | settings.json | ~/.claude/settings.json | Claude Code preferences | | statusline-command.sh | ~/.claude/statusline-command.sh | Status line script |

Statusline

The status line is mode-aware — it adapts based on whether you're on a subscription plan or using an API key.

Subscription (Pro/Max):

Claude Sonnet 4.6 | [████                ] 42% | 84k/200k | 5h:37% (1h22m) 7d:15%

Anthropic API key (claude-* models):

Claude Sonnet 4.6 | [████                ] 42% | 84k/200k | ~$0.5544

3rd-party API (Gemini, MiniMax, etc.):

Gemini 2.5 Pro | [███████████         ] 55% | 550k/1000k

| Segment | Description | |---------|-------------| | Model name | Current model display name | | [████ ] | Context window usage bar (green < 50%, yellow < 80%, red ≥ 80%) | | 42% | Context used percentage | | 84k/200k | Used tokens / total context window size | | 5h:37% (1h22m) | 5-hour rate limit usage + countdown to reset (subscription only) | | 7d:15% | 7-day rate limit usage (subscription only) | | ~$0.5544 | Estimated session cost (Anthropic API only) |

Cost is estimated using a 70/30 input/output token split with per-model pricing:

| Model | Input | Output | |-------|-------|--------| | Opus 4.x | $15/MTok | $75/MTok | | Sonnet 4.x / 3.7 | $3/MTok | $15/MTok | | Haiku 4.x / 3.x | $0.8/MTok | $4/MTok |

For 3rd-party models the right section is omitted — token usage is already visible in the bar.

How it works

Claude Code invokes statusline-command.sh after each response, passing a JSON payload via stdin. The script parses the JSON with jq and prints a formatted line with ANSI colors.

The script is wired up in settings.json:

"statusLine": {
  "type": "command",
  "command": "bash ~/.claude/statusline-command.sh"
}

Available JSON fields

The full payload Claude Code sends to the script includes:

{
  "model": { "id": "claude-sonnet-4-6", "display_name": "Sonnet 4.6" },
  "context_window": {
    "used_percentage": 21,
    "remaining_percentage": 79,
    "context_window_size": 200000,
    "total_input_tokens": 44,
    "total_output_tokens": 7202,
    "current_usage": {
      "input_tokens": 1,
      "output_tokens": 28,
      "cache_creation_input_tokens": 219,
      "cache_read_input_tokens": 34414
    }
  },
  "rate_limits": {
    "five_hour": { "used_percentage": 18, "resets_at": 1775725200 },
    "seven_day": { "used_percentage": 17, "resets_at": 1776067200 }
  },
  "cost": {
    "total_cost_usd": 0.67,
    "total_lines_added": 86,
    "total_lines_removed": 79
  },
  "cwd": "/Users/you/project",
  "version": "2.1.97"
}

Updating the config

  1. Edit files in .claude/
  2. Bump version in package.json
  3. Update this README to reflect the change
  4. Publish and push:
    npm publish --access public && git push