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

prompt-charter

v0.1.0

Published

CLI tool to install curated AI coding rule sets from Prompt Charter

Readme

Prompt Charter CLI

Install curated AI coding rule sets to guide GitHub Copilot, Claude, and other AI tools

Installation

Global Installation (Recommended)

npm install -g prompt-charter

One-Time Use (npx)

npx prompt-charter install

Usage

Interactive Installation

Install a RULES.md file to your project:

prompt-charter install

This will:

  1. Show available domains (frontend, backend, etc.)
  2. Guide you through subdomain selection
  3. Download RULES.md to .prompt-charter/RULES.md
  4. Display usage examples

Example session:

? Select a domain: frontend
? Select a stack/option: mst_react_mui
✅ Successfully downloaded RULES.md
📍 Location: .prompt-charter/RULES.md
   (311 lines)

List Available Rule Sets

See all available rule sets:

prompt-charter list

Output:

📋 Available Rule Sets

frontend/
  └─ mst_react_mui

backend/
  (coming soon)

Getting Help

prompt-charter --help
prompt-charter install --help

Local Testing (Development)

For testing unpushed changes or development:

cd cli
node src/index.js list --local        # Show local rule sets
node src/index.js install --local     # Install from local filesystem

See LOCAL_TESTING.md for details.

What Gets Installed

The CLI downloads a RULES.md file to:

your-project/
├── .prompt-charter/
│   └── RULES.md       ← Downloaded here
├── src/
└── package.json

If .prompt-charter/RULES.md already exists, the installer will skip with a message.

Using the Rules

After installation, use the rules in your AI prompts:

1. Code Generation

"Load and obey all rules in .prompt-charter/RULES.md.
Task: Implement UserService with createUser() method."

2. Validation

"Load .prompt-charter/RULES.md.
Validate src/services/UserService.ts for rule compliance."

3. Refactoring

"Follow .prompt-charter/RULES.md rules.
Refactor ScheduleStore to use ScheduleService instead of direct API calls."

Available Rule Sets

Currently available:

  • frontend/mst_react_mui - React 18 + MobX-State-Tree + Material-UI + Zod architecture

More coming soon:

  • Backend API patterns
  • Data engineering workflows
  • Security baselines
  • Conversation tone guides

Learn More

Requirements

  • Node.js 14.0.0 or higher
  • Internet connection (fetches rules from GitHub)

Troubleshooting

"Failed to fetch domains"

Check your internet connection. The CLI uses GitHub API to fetch rule sets.

"RULES.md already exists"

The installer won't overwrite existing files. To update:

  1. Remove .prompt-charter/RULES.md
  2. Run prompt-charter install again

GitHub API Rate Limit

Unauthenticated requests are limited to 60/hour. If you hit the limit:

  • Wait an hour
  • Or authenticate with a GitHub token (future feature)

Development

Local Testing

cd cli
npm install
npm link
prompt-charter install

Repository Structure

cli/
├── src/
│   ├── commands/
│   │   ├── install.js    # Interactive installer
│   │   └── list.js       # List command
│   ├── utils/
│   │   └── github.js     # GitHub API wrapper
│   └── index.js          # CLI entry point
├── package.json
└── README.md

License

MIT

Contributing

See the main prompt_charter repository for contribution guidelines.