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

cursor2claude

v0.1.1

Published

CLI that syncs Cursor rules into Claude Code’s CLAUDE.md

Readme

cursor2claude

Translate Cursor IDE rules into a single, tidy CLAUDE.md so Claude Code understands your project.


✨ Why?

Cursor lets you write granular .mdc rules that keep its AI agent on‑brand.
Claude Code only looks at one Markdown file – CLAUDE.md. Keeping those in sync is a chore.

cursor2claude is a tiny CLI that:

  1. Scans .cursor/rules/**/*.{md,mdc} at any depth
  2. Categorizes rules (always‑apply • context‑specific • other)
  3. Decides whether to inline short / critical rules or import long ones
  4. Writes / updates CLAUDE.md, preserving any notes below a marker
  5. Offers sync, watch, and status commands for smooth DX.

Write a rule once ⇒ both AIs follow it.


🚀 Quick Start

One-off (no install required)

# pnpm
pnpm dlx cursor2claude sync

# npm
npx cursor2claude sync

# Yarn (≥2 / Berry)
yarn dlx cursor2claude sync

Install as a dev-dependency

# pnpm
pnpm add -D cursor2claude
pnpm cursor2claude sync

# npm
npm install --save-dev cursor2claude
npx cursor2claude sync   # or add to package.json scripts

# Yarn
yarn add -D cursor2claude
yarn cursor2claude sync

📋 Commands

cursor2claude sync    # One-time sync of rules to CLAUDE.md
cursor2claude watch   # Watch for changes and auto-sync
cursor2claude status  # Check current sync status

🔧 How It Works

  1. Discovers all .md and .mdc files in .cursor/rules/
  2. Parses YAML frontmatter to understand rule properties
  3. Categorizes rules based on alwaysApply and description fields
  4. Generates a clean CLAUDE.md with:
    • Auto-generated header
    • Organized rule imports
    • Preserved user content below marker

Rule Types

  • Always-Apply Rules: Global context rules (alwaysApply: true)
  • Agent-Selected Rules: Context-specific rules with descriptions
  • Other Rules: Manual or auto rules without descriptions

How It Works

cursor2claude transforms your Cursor rules into a single CLAUDE.md file:

📁 .cursor/rules/                    ➜    📄 CLAUDE.md
├── 📁 core-rules/                        ┌─────────────────────────────┐
│   └── 📄 code-quality.mdc               │ ## 🌍 Always-Apply Rules    │
│       (alwaysApply: true)               │ @.cursor/rules/core-rules/  │
│                                         │   code-quality.mdc          │
└── 📁 tool-rules/                        │                             │
    ├── 📄 git-commit-assistant.mdc       │ ## 🤖 Agent-Selected Rules  │
    │   (agent-selected)                  │ @.cursor/rules/tool-rules/  │
    └── 📄 task-list-management.mdc       │   git-commit-assistant.mdc  │
        (agent-selected)                  │ @.cursor/rules/tool-rules/  │
                                          │   task-list-management.mdc  │
                                          └─────────────────────────────┘

🛠 Tech Stack

| Tool | Purpose | | --------------------------- | --------------------------- | | Node 22+ (TypeScript 5) | Runtime & language | | Commander | CLI surface | | yaml | Robust front‑matter parsing | | chalk | Colourised logs | | Jest 30 | Unit tests | | pnpm | Package manager | | ESLint 9 + Prettier 3 | Code quality |