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

@mrzacsmith/cursor-rules

v0.7.1

Published

Interactive CLI to install Cursor AI rules

Readme

@mrzacsmith/cursor-rules

Interactive CLI to install Cursor AI rules for your project.

Usage

Run with npx (recommended):

npx @mrzacsmith/cursor-rules

Or install globally:

npm install -g @mrzacsmith/cursor-rules
cursor-rules

Features

  • 🎯 Interactive rule selection
  • 📁 Organized by categories:
    • Setup
    • Code Style
    • Frontend
    • Backend
    • Database
    • Mobile
    • Desktop & Extension Development
    • MCP Servers
      • Browser Tools
  • 🔄 Safe installation - won't overwrite existing rules without permission
  • 📝 Each rule includes:
    • Description
    • Recommended glob patterns
    • Detailed guidelines

How it Works

  1. Run npx @mrzacsmith/cursor-rules
  2. Select a category using arrow keys
  3. Choose rules using space bar
  4. Navigate back to categories with enter
  5. Select "Done" when finished
  6. Rules are installed to .cursor/rules/

Available Rules

Setup

  • [✓] Create Feature PRD: Guide for generating a detailed Product Requirements Document (PRD) based on user prompts
    • Structured process for gathering requirements through clarifying questions
    • Standardized PRD format with 9 sections (Introduction, Goals, User Stories, etc.)
    • Targets junior developers as the audience
    • Saves files as prd-[feature-name].md in /tasks/ directory
    • Clear workflow from initial prompt to complete PRD
  • [✓] Generate Tasks: Guide for creating detailed task lists from Product Requirements Documents (PRDs)
    • Two-phase process: parent tasks first, then detailed sub-tasks
    • Requires user confirmation between phases for better control
    • Structured output format with relevant files section
    • Saves as tasks-[prd-file-name].md for easy tracking
    • Junior developer-friendly task breakdown
  • [✓] Linear Issue Management: Standardizes Linear issue creation with automatic project and team detection
    • Self-configuring setup on first use - builds .cursor/linear-config.md after prompting for defaults
    • Automatic team, project, and assignee detection from configuration
    • Manual setup trigger: say "initiate linear issue rule" or "setup linear config"
    • Simple single-file configuration (no complex directory structures)
    • Override defaults on a per-issue basis when needed
    • No maintenance required - static configuration
  • [✓] Process Task List: Guidelines for managing task lists in markdown files to track progress on completing a PRD
    • One sub-task at a time workflow with user approval gates
    • Clear completion protocol with checkbox marking system
    • File maintenance requirements and progress tracking
    • AI instructions for proper task execution
    • Structured approach to feature implementation
  • [✓] Semgrep MCP Security Scan: Mandatory security scanning of all generated code using Semgrep MCP server
    • Automatic security vulnerability detection in all generated code
    • Integration with Semgrep MCP server tools
    • Mandatory scan before task completion
    • Clear workflow for handling security findings
    • Support for multiple programming languages
    • Best practices for secure code generation

Code Style

  • [✓] Commit Messages: Standardized commit message format for consistent version control history
    • Enforces semantic commit messages
    • Includes type, scope, and description
    • Example: Feat(component): add new component
  • [✓] NPM Package Check: Best practices for checking and installing NPM packages before use
    • Package dependency verification
    • Automatic installation commands
    • Dependency management
    • Error handling
    • Development workflow optimization
  • [✓] Python Development: Modern Python development practices with type hints and testing
    • Type annotations and docstrings
    • Project structure and organization
    • Testing with pytest
    • Error handling and logging
    • Environment configuration
    • CI/CD with GitHub Actions
  • [✓] Terminal Path Verification: Best practices for verifying paths and locations before executing terminal commands
    • Directory verification with pwd and ls
    • Path existence checks
    • File operation safety
    • Error prevention
    • Automated verification in scripts
  • [✓] Yoda Quote Endings: End each Cursor chat with wisdom
    • Adds personality to coding sessions
    • Provides Yoda-style encouragement
    • Example: "Debug or debug not. There is no try-catch."

Frontend

  • [✓] Tailwind Standards: Best practices for Tailwind CSS v4+ implementation
    • Version compatibility and migration
    • Performance optimization
    • React integration
    • Accessibility and internationalization
  • [✓] React GraphQL Apollo: Best practices for React development with GraphQL and Apollo Client
    • Project structure and organization
    • Apollo Client setup and configuration
    • Custom hooks and components
    • GraphQL operations and caching
    • Error handling and performance
  • [✓] Mobile First Web Development: Best practices for mobile-first web development using Tailwind, React, and Firebase
    • Mobile-first design principles
    • Responsive component patterns
    • Firebase integration and security
    • Performance optimization
    • Accessibility and animations
  • [✓] Next.js App Router: Best practices for Next.js App Router development with TypeScript, Shadcn UI, and Tailwind
    • Server and Client Components
    • TypeScript and component patterns
    • Performance optimization
    • State management with nuqs
    • Shadcn UI integration
  • [✓] Next.js Supabase Auth: Guidelines for writing Next.js apps with Supabase Auth
    • Modern SSR authentication patterns
    • Correct cookie handling
    • Middleware implementation
    • Browser and server client setup
    • Security best practices
  • [✓] Modern React Next.js: Best practices for modern React and Next.js development with TypeScript, Tailwind CSS, and accessibility
    • Component design patterns
    • Custom hooks and utilities
    • Accessibility best practices
    • Performance optimization
    • Type-safe development
  • [Coming Soon] React Best Practices: Guidelines for React component development
  • [Coming Soon] TypeScript Standards: TypeScript configuration and usage patterns
  • [Coming Soon] CSS/SCSS Conventions: Styling standards and organization

Backend

  • [✓] Firebase Integration: Best practices for Firebase services
    • Authentication setup and security
    • Firestore data structure
    • Storage organization
    • Cloud Functions architecture
  • [Coming Soon] API Design: RESTful and GraphQL API standards
  • [Coming Soon] Security Guidelines: Backend security best practices

Database

  • [Coming Soon] MongoDB Patterns: Schema design and query optimization
  • [Coming Soon] PostgreSQL Standards: Database structure and performance
  • [Coming Soon] Redis Caching: Caching strategies and patterns

Mobile

  • [✓] Flutter Development: Best practices for Flutter development using clean architecture and BLoC pattern
    • Project structure and organization
    • Clean architecture implementation
    • BLoC pattern and state management
    • Widget guidelines and testing
    • Performance optimization
    • Error handling and logging
  • [✓] React Native Expo: Best practices for React Native development using Expo SDK and TypeScript
    • Project structure and TypeScript setup
    • Component design patterns
    • Navigation and state management
    • Asset and notification handling
    • Error boundaries and testing
    • Performance optimization
  • [✓] SwiftUI Development: Modern SwiftUI development practices with clean architecture and MVVM pattern
    • Project structure and organization
    • MVVM pattern implementation
    • Modern layout and navigation
    • Animations and transitions
    • State management
    • Accessibility best practices
  • [✓] Jetpack Compose: Modern Android development practices using Compose and clean architecture
    • Project structure and organization
    • Material Design 3 implementation
    • ViewModel and state management
    • Navigation and routing
    • Reusable components
    • Testing and performance
  • [Coming Soon] Native iOS: Best practices for native iOS development

Desktop & Extension Development

  • [✓] Chrome Extension Development: Best practices for modern Chrome Extension development using TypeScript and Manifest V3
    • Project structure and organization
    • TypeScript integration and type safety
    • Manifest V3 configuration
    • Security best practices
    • Performance optimization
    • Cross-browser compatibility
  • [✓] Electron Development: Best practices for building cross-platform desktop applications
    • Project architecture and security
    • IPC communication patterns
    • PouchDB offline support
    • Performance optimization
    • UI/UX best practices
    • Auto-updates and deployment
  • [Coming Soon] Firefox Add-on Development: Guidelines for Firefox extension development
  • [Coming Soon] Web Extension APIs: Cross-browser extension development patterns

MCP Servers

Browser Tools

  • [✓] Debug Commands: This tool performs debugging steps for applications
    • Console log collection
    • Error tracking
    • Network request monitoring
    • Screenshot capture
    • Automated analysis
    • Specialized debugging commands

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Add your rule to src/rules/
  4. Submit a pull request

Adding a New Rule

Rules should be added as JSON files in src/rules/ following this structure:

{
  "category": "category_name",
  "title": "Rule Title",
  "description": "Brief description",
  "recommended_globs": ["glob patterns"],
  "content": [
    "# Rule Title",
    "",
    "// Description: Brief description",
    "// Recommended Globs: glob patterns",
    "",
    "## Section",
    "- Guideline 1",
    "- Guideline 2"
  ]
}

The rule will be transformed into an MDC file with frontmatter:

---
description: Brief description
globs: glob patterns
---

# Rule Title

// Description: Brief description
// Recommended Globs: glob patterns

## Section
- Guideline 1
- Guideline 2

Rule Components

  • category: One of setup, code_style, frontend, backend, database, mobile, desktop_extension, mcp_servers_browser_tools
  • title: Clear, concise title in Title Case
  • description: Single sentence explaining the rule's purpose
  • recommended_globs: Array of glob patterns for file matching (e.g., ["**/*.{js,ts}"])
  • content: Array of markdown strings forming the rule documentation

License

MIT

Author

mrzacsmith