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-base-setup

v1.1.0

Published

A reusable .claude configuration for Claude Code projects with smart context injection, rules, and agents

Readme

claude-base-setup

A reusable .claude configuration for Claude Code projects with smart context injection, rules, agents, and slash commands.

Installation

npx claude-base-setup

This creates a .claude/ directory in your project with:

  • CLAUDE.md - Project context (auto-loaded by Claude)
  • hooks/ - Smart context injection on every prompt
  • rules/ - Behavioral guidelines injected into context
  • agents/ - Task workers (pre-code-check, package-checker, etc.)
  • commands/ - Slash commands (/review, /test, /commit)
  • settings.json - Hook configuration

CLI Options

# Initialize (interactive - prompts for API key)
npx claude-base-setup

# Initialize without API key prompt (CI/automation)
npx claude-base-setup --skip-api-key

# Overwrite existing .claude directory
npx claude-base-setup --force

# Remove .claude directory
npx claude-base-setup --remove

# Update specific components (preserves settings.json and CLAUDE.md)
npx claude-base-setup --update-hooks
npx claude-base-setup --update-agents
npx claude-base-setup --update-rules
npx claude-base-setup --update-commands

# Show help
npx claude-base-setup --help

What it does

  1. On every prompt: Analyzes your input and injects relevant rules
  2. On session start: Checks if project context is fresh, suggests refresh if stale
  3. Before creating code: Suggests running pre-code-check agent to avoid duplicates
  4. Before installing packages: Suggests running package-checker for version compatibility

Included Rules

| Rule | Trigger | Description | |------|---------|-------------| | code-standards | code keywords | No hardcoding, dynamic discovery | | announce-actions | always | Announce actions, track agent usage | | rule-format | "rule" keywords | How to create rules | | subagent-format | "agent" keywords | How to create agents | | command-format | "command" keywords | How to create slash commands |

Included Agents (23 specialized agents)

Core Agents

| Agent | Purpose | |-------|---------| | pre-code-check | Search for existing code before creating new | | package-checker | Check package versions and compatibility | | context-loader | Scan codebase and generate CONTEXT.md | | structure-validator | Validate project structure after file ops |

Planning & Requirements

| Agent | Purpose | |-------|---------| | intent-clarifier | Clarifies requirements before coding starts | | assumption-challenger | Reviews plans and lists hidden assumptions | | breaking-change-predictor | Predicts what might break from changes |

Code Quality

| Agent | Purpose | |-------|---------| | legacy-archaeologist | Explains why old code exists and its history | | dependency-detective | Investigates packages before adding them | | test-gap-finder | Finds untested code paths and logic gaps | | refactor-scope-limiter | Defines minimum safe scope for refactoring |

Workflow

| Agent | Purpose | |-------|---------| | pr-narrator | Writes PR descriptions from commits/diffs | | migration-planner | Plans safe database/API migrations | | incident-replayer | Traces errors through code to explain them |

Session Management

| Agent | Purpose | |-------|---------| | context-curator | Summarizes conversation and suggests compaction | | decision-logger | Records architectural decisions as ADRs | | session-handoff | Prepares summary for continuing later | | scope-creep-detector | Monitors if work is drifting from task |

Domain-Specific

| Agent | Purpose | |-------|---------| | api-contract-guardian | Ensures API changes don't break consumers | | accessibility-auditor | Checks UI code for a11y issues | | performance-profiler | Finds obvious performance issues | | error-boundary-designer | Suggests where to add error handling |

Thinking Partners

| Agent | Purpose | |-------|---------| | rubber-duck | Helps think through problems via questions | | devils-advocate | Argues against solutions to stress-test them | | 10x-simplifier | Challenges code to be radically simpler | | future-you | Reviews code as if maintaining it 6 months later |

Included Commands

| Command | Purpose | |---------|---------| | /review | Review current changes for issues | | /test | Run tests and fix failures | | /commit | Stage and commit changes |

Customization

After installation, modify files in .claude/ to fit your project:

  • Add project-specific rules in rules/
  • Customize keyword triggers in hooks/triggers.json
  • Add custom agents in agents/
  • Add custom slash commands in commands/
  • Update settings.json for permissions

License

MIT