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

rulepack

v0.4.3

Published

Pack the AI memory — one rulepack.json publishes versioned, installable memory (rules, context, plans) across every agent: Claude Code, Cursor, Cline, Windsurf, AGENTS.md, Gemini, Copilot.

Downloads

2,504

Readme

rulepack

Pack the AI memory.

Structure your AI coding sessions' memory — rules, context, plans, operating know-how — as one rulepack.json plus Markdown files, then publish, version, and install it across every project and agent with one command.

npx rulepack add nextjs

That single command drops the right memory files into your project for every agent the pack declares — AGENTS.md, CLAUDE.md, .cursor/rules/*.mdc, .clinerules, .windsurfrules, GEMINI.md, .github/copilot-instructions.md, plus any custom project memories.

Why

AI coding agents can read your project, but their working context doesn't survive across sessions, machines, or teammates — and each agent wants its own file. rulepack treats that memory the way npm treats libraries: published, versioned, addressable by name, reinstallable everywhere. Read someone's workflow, then pull it into your repo.

Install

You don't need to — just npx rulepack .... For a global binary:

npm install -g rulepack
# or: pnpm add -g rulepack

Requires Node.js >=22.0.0.

Commands

rulepack add <pack>          # install a pack's memory files into the project
rulepack update [pack]       # update installed packs to newer versions
rulepack init                # generate rulepack.json interactively
rulepack link                # link existing Markdown files into memories
rulepack memory add          # add one standard or custom memory
rulepack publish             # publish the current pack (login required)
rulepack search <query>      # search packs on the registry
rulepack login               # authenticate via browser (or set RULEPACK_TOKEN)
rulepack logout
rulepack whoami

House packs vs community packs

Packs under the @rulepack scope install by bare name — npx rulepack add nextjs resolves to @rulepack/nextjs. Community packs use the full form: npx rulepack add @yourname/your-pack.

Authoring a pack

mkdir my-pack && cd my-pack
npx rulepack init
# ...edit AGENTS.md / CLAUDE.md / .cursor/rules/*.mdc / custom memories...
npx rulepack login
npx rulepack publish

rulepack init does not require login — keep rulepack.json in a repo like package.json as a local manifest for AI memory, and sign in only when you publish. The manifest's memories map declares which files the pack ships (standard agent keys plus a free-form custom map), visibility sets the access policy (public / private / pay), and license is required. See the manifest reference for the full schema.

Configuration

The CLI reads ~/.rulepackrc (chmod 0600). Values can be overridden via environment variables:

| Variable | Meaning | | -------------------- | -------------------------------------- | | RULEPACK_REGISTRY | Registry base URL | | RULEPACK_TOKEN | Bearer token for publish (CI) | | RULEPACK_LANG | CLI language (en / ja) |

License

Proprietary — see the LICENSE file included in the npm package. This CLI is free to use; redistribution and derivative works require permission.