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

load-rules

v1.0.0

Published

CLI tool to discover, search, and install AI coding rules for Claude Code, Cursor, Copilot, Codex, and more

Readme

load-rules

CLI tool to discover, search, and install AI coding rules for Claude Code, Cursor, Copilot, Codex, and more.

npm version License: MIT

load-rules aggregates coding rules from multiple sources into a single searchable registry, letting you install any rule with one command. No more cloning repos or manually copying .cursorrules files.

Quick Start

# Install a rule instantly (no install needed)
npx load-rules install nextjs

# Or install globally
npm install -g load-rules
load-rules install react-expert

Features

  • 50+ rules from curated and community sources, pre-indexed and ready to install
  • Multi-tool support — install rules for Claude Code, Cursor, Copilot, or Codex
  • Fast search — find rules by name, description, or tags
  • Auto-updater — update the registry from GitHub sources with load-rules update
  • Programmatic API — use as a library in your own tools

Commands

Install a rule

load-rules install <name>                # Install for Claude Code (default)
load-rules install <name> --tool cursor  # Install for Cursor
load-rules install <name> --tool copilot # Install for GitHub Copilot
load-rules install <name> --global       # Install globally (~/.claude/rules/)
load-rules install <name> -o ./my-path   # Custom output path
load-rules <name>                        # Shorthand for install

Search & browse

load-rules list                          # List all rules
load-rules list --source awesome-cursorrules  # Filter by source
load-rules list --tag frontend           # Filter by tag
load-rules list --tool cursor            # Filter by compatible tool

load-rules search react                  # Search by keyword
load-rules search react --tool cursor    # Search with tool filter
load-rules search "api design" --tag backend

load-rules info react-expert             # Detailed info about a rule
load-rules tags                          # Show all tags with counts
load-rules sources                       # Show all rule sources

Update registry

load-rules update                        # Fetch latest rules from GitHub
GITHUB_TOKEN=ghp_xxx load-rules update   # Use token for higher rate limits

JSON output

load-rules list --json                   # Machine-readable output
load-rules search react --json
load-rules info react-expert --json

Supported Tools

| Tool | Install Location (local) | Install Location (global) | |------|-------------------------|--------------------------| | Claude Code | .claude/rules/<name>.md | ~/.claude/rules/<name>.md | | Cursor | .cursor/rules/<name>.md | ~/.cursor/rules/<name>.md | | Copilot | .github/copilot-instructions.md | ~/.github/copilot-instructions.md | | Codex | .codex/rules/<name>.md | ~/.codex/rules/<name>.md |

Rule Sources

| Source | Repository | Type | |--------|-----------|------| | Awesome CursorRules | PatrickJS/awesome-cursorrules | Curated | | Cursor Directory | pontusab/cursor.directory | Community | | Awesome Cursor Rules | sanjeed5/awesome-cursor-rules | Community |

Programmatic API

const { findRule, searchRules, installRule } = require('load-rules');

// Search
const results = searchRules('react', { tag: 'frontend' });

// Get rule info
const rule = findRule('react-expert');

// Install programmatically
await installRule(rule, { tool: 'claude-code', global: true });

Rebuild the Registry

The scraper fetches rule metadata from all configured GitHub sources:

npm run scrape                          # Rebuild from GitHub
GITHUB_TOKEN=ghp_xxx npm run scrape     # With auth for higher rate limits

Contributing

  1. Fork the repo
  2. Add rules to data/rules-registry.json or add a new source in src/scraper/index.js
  3. Submit a PR

Adding a new rule source

Add an entry to the SOURCES array in src/scraper/index.js:

{
  id: 'your-source',
  repo: 'owner/repo',
  path: 'rules',
  type: 'community',
  url: 'https://github.com/owner/repo',
  compatible: ['cursor', 'claude-code', 'copilot'],
}

License

MIT