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

scopeguard

v1.0.0

Published

Claude Code plugin that prevents AI scope creep — track what you asked for vs. what changed

Readme

ScopeGuard

Your AI assistant just modified 47 files. You asked it to fix one bug.

ScopeGuard is a Claude Code plugin that detects AI scope creep in real time. It watches what you ask for, tracks what actually changes, and gives you a clear report at the end of every session.

  • Tracks intent vs. reality -- parses your prompt to understand what you wanted, then monitors every file operation
  • Scores every session -- a 0-100 scope score tells you exactly how focused your AI stayed
  • Zero friction -- installs as a Claude Code plugin, runs silently in the background, reports when the session ends

Quick Start

1. Install the plugin

claude plugin add scopeguard

Or clone and install locally:

git clone https://github.com/Wittlesus/scopeguard.git
claude plugin add ./scopeguard

2. Use Claude Code normally

Just work as you always do. ScopeGuard runs in the background -- no configuration, no prompts, no interruptions.

3. See your scope report

When a session ends, ScopeGuard automatically displays a report:

ScopeGuard Report
==================================================
Prompt: "Fix the login validation bug in auth.js"
Intent: fix | Target files: src/auth.js
--------------------------------------------------
Operations tracked: 14
  Writes:  4 files modified
  Creates: 2 files created
  Reads:   8 files scanned

Scope Analysis:
  Focused operations:  3/6 (50%)
  Unexpected files touched:
    - src/database.js (write)
    - src/config/routes.js (write)
    - test/helpers/mock-db.js (create)

SCOPE SCORE: 45/100
--------------------------------------------------
Verdict: Moderate scope creep detected.
The session drifted into database and routing
changes beyond the original auth.js bug fix.
==================================================

Scope Score Explained

| Score | Meaning | |-----------|----------------------------------------------------------------| | 90 - 100 | Laser-focused. Only touched what you asked for. | | 70 - 89 | Mostly on track. Minor tangential changes. | | 50 - 69 | Noticeable drift. Several files changed beyond the request. | | 25 - 49 | Significant scope creep. The AI went exploring. | | 0 - 24 | Total creep. What you got barely resembles what you asked for. |

The score is calculated by comparing write operations against the intent parsed from your prompt. Penalties apply for unexpected file creation, touching new directories, and excessive file scanning.

Commands

| Command | Description | |--------------------------|------------------------------------------| | /scopeguard:report | View the most recent scope report | | /scopeguard:history | View scope scores across past sessions |

How It Works

ScopeGuard uses three Claude Code hooks:

  1. UserPromptSubmit -- captures your prompt, parses intent (target files, directories, action type)
  2. PostToolUse -- monitors every tool invocation (Edit, Write, Read, Bash, Glob, Grep) and classifies file operations
  3. Stop -- generates the scope report, calculates the score, saves to history, and displays results

All processing happens locally. No data leaves your machine. No API calls. No dependencies.

Configuration

ScopeGuard works out of the box with zero configuration. Advanced options are coming in a future release:

  • Exclude patterns (ignore test files, generated code, etc.)
  • Custom score thresholds
  • Team-shared baselines
  • CI integration for automated scope checks

Requirements

  • Node.js >= 18
  • Claude Code with plugin support

Related Tools

Building better AI coding workflows? Check out these complementary projects:

  • RulesForge -- Generate better .claude/rules files to reduce scope creep at the source
  • MyUru -- Orchestrate focused AI agents with clear task boundaries

License

MIT -- Copyright 2026 Wittlesus

See LICENSE for details.