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

rulesync-cli

v0.1.60

Published

CLI to sync CLAUDE.md files across repos via RuleSync

Downloads

1,142

Readme

rulesync-cli

CLI to sync config files across repos via RuleSync.

The command is invoked as rsc (preferred) or rulesync-cli (legacy alias). Both names point at the same binary — pick whichever fits your muscle memory.

Installation

No install required — run directly with npx:

npx rulesync-cli

Or install globally and use the short rsc command:

npm install -g rulesync-cli
rsc --help

In a project that lists rulesync-cli as a dependency:

pnpm rsc pull
pnpm rsc push ./CLAUDE.md

Usage

rsc [command]

If no command is given, pull is run by default.

Version

rsc -v
rsc --version

Commands

| Command | Description | | -------- | ---------------------------------------------------------------------- | | login | Authenticate via browser-based login | | pull | Fetch files and write them locally | | push | Publish a local file (shows colored diff, auto-creates new rulesets) | | diff | Show differences between local and remote files | | list | List remote files and local file status | | status | Show auth status | | init | Deprecated: .rulesync.json is ignored |

Pull

Fetches your files and writes them locally. Shows diffs and prompts for approval before writing each file.

  • Syncs all files in your account.
  • Any local .rulesync.json file is ignored.

Diff

Shows the difference between local files and the current remote output.

  • Pass an optional [outputPath] argument to show only the diff for that file.
  • Does not write files — read-only comparison.

List

Lists your remote files and checks whether each local output file exists.

Push

Publishes a local file as a new version, showing a colored unified diff first so you can see exactly what's changing.

  • Colored diff before publishing: green = lines added, red = lines removed, cyan = hunk headers.
  • Auto-creates rulesets the first time you push a path the server hasn't seen. The slug is derived from the file path (e.g. ./ai/prompts/blog.mdai-prompts-blog).
  • Skips the API call entirely when local content already matches remote — no duplicate versions, no version-number churn.
  • Existing rulesets are matched against your local file path automatically.

Example:

$ rsc push ./ai/prompts/blog.md

--- ai/prompts/blog.md (remote)
+++ ai/prompts/blog.md (local)
@@ -3,3 +3,3 @@
 some context line
-old line being replaced
+new line that replaced it
 another context line

Published ai-prompts-blog@v3

Common Flags

| Flag | Applies to | Description | | --------------- | ------------------------------- | ------------------------------------------------- | | -y, --yes | pull | Skip interactive approval | | --dev | login, pull, push, diff, list | Use localhost instead of rulesync.dev | | --port <port> | login, pull, push, diff, list | Dev server port (default: 3000, requires --dev) |

Quick Start

# 1. Authenticate
rsc login

# 2. Pull files into your project
rsc pull

That's it. No install or init step required — pull works immediately and syncs all your files.

Auth config (~/.rulesync/auth.json)

Created automatically by rsc login.

Changelog

See CHANGELOG.md for release history.

License

MIT