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

cursor-rules-init

v0.1.2

Published

Scaffold opinionated .cursorrules starters for Cursor, Claude, ChatGPT, and any chat-based AI coding tool. Stack-aware, token-efficient, senior-dev defaults.

Readme

cursor-rules-init

Sponsor

npm ci license

Scaffold an opinionated .cursorrules starter for Cursor, Claude, ChatGPT, or any chat-based AI coding tool. Free, MIT, no signup, no telemetry.

demo

npx cursor-rules-init typescript
# wrote .cursorrules (typescript stack, 2014 bytes)

Why

Default AI assistant output is verbose, hedging, and over-eager to refactor. The fastest fix is a .cursorrules file at the repo root. But you don't want to write one from scratch every time. This is the starter set I've been using daily for ~18 months.

Stacks

npx cursor-rules-init --list

Currently:

| Stack | What it stacks | | - | - | | base | Senior-dev defaults, language-agnostic. | | typescript | base + TypeScript strict. | | react | base + TypeScript + React 18 hooks discipline. | | nextjs | base + TypeScript + React + App Router. | | python | base + Python 3.11+ types + pytest. | | node-server | base + TypeScript + Express/Fastify defaults. |

Usage

npx cursor-rules-init                    # base stack -> .cursorrules
npx cursor-rules-init typescript         # ts overlay  -> .cursorrules
npx cursor-rules-init react -o RULES.md  # custom path
npx cursor-rules-init --print python     # stdout only, no file write
npx cursor-rules-init --list             # list stacks

The CLI refuses to overwrite an existing .cursorrules. Move it aside or use a different -o path.

What's inside

Every stack starts with the base rules:

  • Cap output verbosity, no greetings or sign-offs.
  • Smallest diff that solves it. No speculative refactors.
  • Errors are nouns, never strings. Never catch-and-discard.
  • Security defaults: parameterized SQL, no header trust, no PII logs.
  • Debug methodology: reproduce > hypothesize > test > fix.
  • Code review order: bugs > risks > style. Skip empty categories.
  • Power-user mode: messages prefixed with :: get code-only replies.

Stack overlays add language-specific rules on top: TypeScript strict typing rules, React hooks discipline, Next.js App Router conventions, Python pytest patterns, etc.

Want the longer set

This CLI ships 6 stack starters. The full pack has 24 .cursorrules files plus 3 system prompts, including REST API design, Postgres + SQL, testing conventions for vitest/jest/pytest, accessibility defaults, Docker, GitHub Actions, monorepos, and a zero-output power-user mode:

depmedic Senior Dev Cursor Rules - $7 one-time, free updates within v1.x.

If you only want the system prompt, there's a $3 single-prompt SKU.

Companion tools

  • ci-doctor - audit GitHub Actions workflows for cost waste and security gaps.
  • depmedic - surgical npm vulnerability triage. npm audit fix is too aggressive; this finds the smallest set of bumps that close the real issues.

License

MIT.


Sponsor / support depmedic

If this saved you 10 minutes of CI debugging, consider one of these. All of them keep the free CLIs free:

More from depmedic

| | | | --- | --- | | ci-doctor | audit GitHub Actions for cost + security (16 rules) | | gitlab-ci-doctor | same engine for .gitlab-ci.yml (14 rules) | | bitbucket-ci-doctor | for bitbucket-pipelines.yml (8 rules) | | azure-pipelines-ci-doctor | for azure-pipelines.yml (8 rules) | | circleci-ci-doctor | for .circleci/config.yml (8 rules) | | gha-budget | $-denominated cost estimate of any GHA workflow | | pin-actions | one-shot SHA pinner for uses: blocks | | cursor-rules-init | scaffold .cursor/rules/ for your stack | | depmedic | all-in-one cli, finds outdated/risky deps | | depmedic/ci-doctor-action | composite GitHub Action: PR comment + SARIF |

In-browser scanners (no install): GitHub · GitLab · Bitbucket · Azure · CircleCI.

Newsletter (weekly, low-volume): https://depmedicdev-byte.github.io/newsletter.html?utm_source=npm&utm_medium=readme&utm_campaign=cursor-rules-init.