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

cursing-rulez

v0.1.2

Published

A CLI tool for managing Cursor editor rules, similar to a package manager but specifically for Cursor rules.

Readme

Cursing Rulez

A CLI tool for managing Cursor editor rules, similar to a package manager but specifically for Cursor rules.

Overview

Cursing Rulez (rulez) is a command-line utility that simplifies the process of setting up, sharing, and managing Cursor editor rules across projects. It provides commands for initializing a project with a standard .cursor structure, adding community rules from Cursor Directory, and handling local overrides for individual developers.

What Are Cursor Rules?

Cursor rules are configuration files that guide how the Cursor AI coding assistant behaves within a project. They act like custom system prompts, shaping AI responses to follow your project's conventions and coding style. Cursor supports two levels of rules:

  • Global rules - Set by each user (via Cursor's settings) and apply to all projects
  • Project-specific rules - Live in the code repository and apply only to that project

With Cursing Rulez, you can easily initialize, manage, and share project-specific rules while also supporting local developer customizations.

Installation

You can install Cursing Rulez using either npm or Bun:

# Using Bun (locally)
bun add cursing-rulez
npm install -g cursing-rulez
# Using Bun (globally)
bun add -g cursing-rulez
# Verify installation
rulez --version

Note for Bun Users

This package is fully compatible with Bun! If you see any warnings about postinstall scripts during installation, these are from dependencies and won't affect the functionality of the tool.

Usage

Initialize a Project with Cursor Rules Structure

# Initialize the current directory with a Cursor rules structure
rulez init

# Force overwrite existing files (use with caution)
rulez init --force

This command creates:

  • .cursor/rules/ directory for shared project rules
  • .cursor/local/ directory for user-specific local overrides
  • Updates .gitignore to exclude local overrides

Add Rules from Cursor Directory

# Add a community rule to project rules
rulez add <rule-name>

# Example: Add Next.js best practices rule
rulez add nextjs-best-practices

# Add a rule directly from a cursor.directory URL
rulez add https://cursor.directory/front-end-cursor-rules

# Force overwrite if the rule already exists
rulez add react --force

Add Local Override Rules

# Add a rule to local overrides (not tracked by git)
rulez add <rule-name> --local

# Example: Add a personal preference rule locally
rulez add my-style-preferences --local

Command Reference

rulez init

Initializes a project with the necessary structure for Cursor rules.

Options:

  • --force - Overwrite existing files if they exist

rulez add <rule-name|url>

Adds a rule from the Cursor Directory to your project.

Options:

  • --force - Overwrite existing rule file if it exists
  • --local - Add to local overrides instead of project rules
  • --offline - Use simulated content when offline or for testing

You can provide either a rule name or a cursor.directory URL. For more details on using URLs, see url-based-rules.md.

Understanding Local Overrides

Project-specific rules in .cursor/rules/ are meant to be shared and committed to version control. However, individual developers might want to customize their AI behavior without affecting teammates.

The .cursor/local/ directory provides a place for personal rule files that aren't tracked by git. Developers can add their custom rules here using rulez add --local.

To apply these local overrides:

  1. Add rules to .cursor/local/ using rulez add <rule-name> --local
  2. Consider copying the content of those rules into your global Cursor settings

Project Structure

After initialization, your project will have this structure:

your-project/
├── .cursor/
│   ├── rules/        # Shared project rules (tracked by git)
│   │   └── *.mdc     # Individual rule files
│   └── local/        # Local overrides (not tracked by git)
│       └── *.mdc     # Personal rule files
└── .gitignore        # Updated to exclude .cursor/local/

Troubleshooting

Q: Rules aren't being applied in Cursor
A: Make sure your rule files have the .mdc extension and are placed in the correct directory.

Q: My local overrides aren't working
A: Remember that local rules must be manually copied to your global Cursor settings or applied through Cursor's UI.

Development Status

This project is currently under active development. See tickets.md for implementation progress.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT