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.65

Published

CLI to sync CLAUDE.md files across repos via RuleSync

Readme

rulesync-cli

CLI to sync config files (like CLAUDE.md, AGENTS.md, and prompt 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 [file] | Fetch files and write them locally (optionally just one file/slug) | | push <file> | Publish a local file (shows colored diff, auto-creates new rulesets) | | diff [path] | Show differences between local and remote files | | list | List remote files and local file status | | clean | Strip RuleSync boilerplate comments from local files | | status | Show auth status | | init | Deprecated: .rulesync.json is ignored |

Login

Authenticates via a browser-based flow and writes credentials to ~/.rulesync/auth.json.

rsc login

Pull

Fetches your files and writes them locally. By default it syncs all files in your account, showing a per-ruleset table (with a local-existence indicator) before writing.

# Pull everything
rsc pull

# Pull a single file by output path...
rsc pull CLAUDE.md

# ...or by ruleset slug
rsc pull ai-prompts-blog
  • Single-file pulls: pass an output path or ruleset slug to fetch just that one file.
  • Pull types: each file is either replace (overwrite local content, the default) or ask (show a diff and prompt before overwriting).
  • Boilerplate is stripped automatically — Managed by RuleSync, Last synced, and Rulesets comment headers are removed on write.
  • Symlinks: any symlinks configured for a file are (re)created automatically.
  • Any local .rulesync.json file is ignored.
  • Use -y, --yes to skip interactive approval and write all files.

Push

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

rsc push ./ai/prompts/blog.md
  • 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

Diff

Shows the difference between local files and the current remote output. Read-only — it never writes files.

# Diff all files
rsc diff

# Diff a single output path
rsc diff CLAUDE.md

List

Lists your remote files and checks whether each local output file exists, rendered as an aligned, color-coded table.

rsc list

Clean

Removes RuleSync boilerplate comment headers (Managed by RuleSync, Last synced, Rulesets) from your local files in place, reporting how many were cleaned vs. skipped.

rsc clean

Status

Shows your current authentication status.

rsc status

Common Flags

| Flag | Applies to | Description | | --------------- | ------------------------------------------- | ------------------------------------------------- | | -y, --yes | pull | Skip interactive approval, write all files | | --dev | login, pull, push, diff, list, clean | Use localhost instead of rulesync.dev | | --port <port> | login, pull, push, diff, list, clean | 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