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

instruction-lint

v0.2.0

Published

Catch stale commands, context bloat, duplication, and broken references in coding-agent instructions.

Readme

Coding agents can load several layers of repository instructions before they touch the code. The same rule may live in AGENTS.md, CLAUDE.md, Copilot instructions, and editor-specific files. Those files quietly grow, drift, and spend context on repeated text.

Instruction Lint makes that cost visible before it becomes permanent. It also checks documented npm scripts against the repository, so an agent does not waste a run discovering that npm run verify never existed.

Try it

Run directly from npm:

npx --yes instruction-lint .

Scan with a hard total budget and fail on warnings:

npx --yes instruction-lint . \
  --max-tokens 8000 \
  --strict

Machine-readable output is available for agents and scripts:

npx --yes instruction-lint . --json

What it checks

| Rule | Finding | |---|---| | budget/total | All discovered instructions exceed the repository budget | | budget/file | One instruction file is unusually large | | content/duplicate | The same substantial rule block appears in multiple files | | reference/missing | A relative Markdown link points to a file that does not exist | | command/missing-script | An instructed npm run script is absent from the relevant package.json | | discovery/empty | No supported instruction files were found |

Commands such as cd packages/web && npm run build are checked against the package in that directory. Commands outside the scanned repository are ignored.

Token estimates use a transparent heuristic: about four ASCII characters per token and one token per non-ASCII character. The number is a budget signal, not a tokenizer claim.

Supported files

  • AGENTS.md at the root or in nested packages
  • CLAUDE.md and .claude/rules/*.md
  • GEMINI.md
  • .github/copilot-instructions.md
  • .github/instructions/*.instructions.md
  • .cursor/rules/*.md and .cursor/rules/*.mdc
  • .cursorrules and .windsurfrules

Generated folders such as .git, node_modules, dist, build, target, and vendor are ignored.

GitHub Action

Add the audit to pull requests so instruction growth is reviewed like code:

name: Instruction budget

on: [push, pull_request]

permissions:
  contents: read

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: howong217-ui/[email protected]
        with:
          max-tokens: 8000
          strict: true

The Action writes the same findings to the GitHub job summary. It does not post comments or request additional permissions.

Human and agent interfaces

The terminal report is designed for a quick review: total budget, file costs, and exact findings. --json returns a schema-versioned report with stable rule IDs, file paths, severities, and exit status so a coding agent can inspect the same evidence without parsing prose.

Instruction Lint does not call a language model, upload repository content, or rewrite rules automatically. The first release stays deliberately boring in the best way: the same files produce the same findings.

CLI

instruction-lint [path] [options]

--max-tokens <number>       Total estimated token budget (default: 12000)
--max-file-tokens <number>  Per-file estimated token budget (default: 4000)
--json                      Print machine-readable JSON
--strict                    Fail on warnings as well as errors
--version                   Print the installed version
-h, --help                  Show help

Development

npm install
npm run check
npm run demo

The analyzer uses only the Node.js standard library. Contributions should keep checks deterministic and include a focused test fixture.

Roadmap

  • [x] Multi-agent instruction discovery
  • [x] Context budgets and duplicate-block detection
  • [x] Broken relative-link checks
  • [x] JSON output and GitHub job summaries
  • [ ] Budget comparison against the base branch
  • [ ] SARIF output for GitHub code scanning
  • [ ] Safe suggestions for consolidating duplicated rules

License

MIT