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 🙏

© 2025 – Pkg Stats / Ryan Hefner

claude-docs

v1.0.7

Published

Claude Code research workflow tool that auto-configures library-specific sub-agents via Context7

Downloads

862

Readme

claude-docs

License: MIT npm version

Claude Code research workflow tool that auto-configures library-specific sub-agents via Context7.

Requirements: Claude Code CLI installed

Quick Start

cd your-project
npx claude-docs
claude /sync-docs

What It Does

claude-docs sets up your project for AI-powered documentation research:

  1. Configures Context7 MCP server automatically
  2. Installs slash commands (/sync-docs, /research)
  3. Creates base research agents for codebase exploration

Then claude /sync-docs:

  • Scans package.json / requirements.txt for dependencies
  • Validates each library against Context7
  • Generates @research-{library} agents with Context7 patterns

Installation

cd your-project
npx claude-docs

You'll be prompted for a Context7 API key (optional, increases rate limits). Get one free at context7.com/dashboard.

This creates:

  • .mcp.json - Context7 MCP server configuration
  • .claude/commands/ - /sync-docs and /research commands
  • .claude/agents/ - Base research agents

Usage

Generate Library Agents

After setup, run:

claude /sync-docs

This scans your dependencies and creates agents like:

  • @research-react - React documentation specialist
  • @research-stripe - Stripe documentation specialist
  • @research-next - Next.js documentation specialist

Research Libraries

Direct invocation:

@research-react how do I use useEffect cleanup?

Via router:

/research stripe webhook signature verification

Base Agents

Always available after setup:

| Agent | Purpose | |-------|---------| | @codebase-locator | Find WHERE code lives | | @codebase-analyzer | Understand HOW code works | | @codebase-pattern-finder | Find EXAMPLES in the codebase | | @web-search-researcher | Research topics not in Context7 |

CLI Options

Usage: claude-docs [options]

Options:
  -V, --version   output the version number
  --skip-mcp      Skip Context7 MCP configuration
  -h, --help      display help for command

How It Works

Step 1: npx claude-docs

  • Prompts for Context7 API key (optional)
  • Runs claude mcp add to configure Context7 MCP server
  • Creates .claude/commands/sync-docs.md and research.md
  • Creates base agent templates in .claude/agents/

Step 2: claude /sync-docs

  • Reads package.json / requirements.txt
  • Queries Context7 to validate each library
  • Creates @research-{library} agents with Context7 search patterns
  • Updates /research router with agent list

Context7 API Key

An API key is optional but increases rate limits.

Get one free: context7.com/dashboard

The key is stored in .mcp.json as a header for the Context7 MCP server.

Troubleshooting

Context7 MCP not configured

If you skipped MCP setup or it failed, configure manually:

claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp

With API key:

claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp \
  --header "CONTEXT7_API_KEY: your-key"

Library not found in Context7

Not all libraries have Context7 coverage. The agent will be skipped. Use @web-search-researcher for libraries not in Context7.

Rate limiting

Get a free API key at context7.com/dashboard.

License

MIT