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

@fredwsw/frontend-rules

v1.0.6

Published

Sync latest .cursor rules into project root

Readme

frontend-rules

一个用于将最新 .cursor 规则同步到当前项目根目录的小工具。

快速开始

在你的项目根目录执行:

pnpm dlx @fredwsw/frontend-rules@latest

使用前提

  • 已安装 Node.js >=18
  • 已安装 pnpm
  • 当前命令行所在目录是你希望应用规则的项目根目录

执行后会发生什么

  • 工具会引导你选择需要的规则模板
  • 将选中的规则文件写入当前项目(通常是 .cursor/rules 相关目录)
  • 如果目标文件已存在,按工具提示处理覆盖或更新

推荐用法

每次想同步最新规则时,直接重复执行:

pnpm dlx @fredwsw/frontend-rules@latest

这样无需全局安装,始终使用最新版本。

常见问题

1) 提示 pnpm 命令不存在

请先安装 pnpm:

npm i -g pnpm

2) 提示 Node 版本过低

请升级 Node.js 到 18 或更高版本后重试。

3) 我应该在什么目录执行命令?

在你要应用规则的项目根目录执行命令。
例如你的业务项目目录,而不是这个工具包源码目录。