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 🙏

© 2025 – Pkg Stats / Ryan Hefner

instruction-hub

v1.3.0

Published

CLI tool to manage GitHub Copilot instructions

Downloads

48

Readme

instruction-hub

A CLI tool to manage GitHub Copilot instructions from multiple repositories, including GitHub Enterprise.

Tired of manually copying and pasting instructions from various GitHub repositories?

instruction-hub simplifies the process by allowing you to pull copilot instructions from any repo.

Features

  • 🏢 GitHub Enterprise Support: Works with private GitHub Enterprise repos as well as public GitHub (detects gh cli auth token)
  • 🔐 Automatic Authentication: Uses GitHub CLI authentication when available
  • 📦 Interactive Installation: Browse and install instructions with an interactive CLI interface
  • 🚀 Direct URL Installation: Install instructions directly from a GitHub file URL with a single command
  • 🗑️ Easy Uninstallation: Remove managed instructions with interactive selection
  • 📋 Updates: Pull the latest versions of installed instructions from their source repositories

Usage:

# Quick start: Install directly from a GitHub file URL
npx instruction-hub add https://github.com/owner/repo/blob/main/instructions/my-instruction.md
# This automatically adds the repo to config and installs the instruction!

# Or add repositories first, then install interactively
npx instruction-hub config add https://github.com/owner/my-copilot-instructions
npx instruction-hub config add owner/repo
npx instruction-hub config add https://ghe.company.com/company-org/company-copilot-instructions

# Install instructions interactively
npx instruction-hub install
# (or add, or just i)

# List managed instructions
npx instruction-hub list

# Update managed instructions
npx instruction-hub update

# Uninstall instructions
npx instruction-hub uninstall
# (or remove, or rm)

Shorthand Command

For convenience, ih is available as a shorthand alias for instruction-hub:

If installed globally (npm i -g instruction-hub), you can use it directly:

# Direct install from URL
ih add https://github.com/owner/repo/blob/main/file.md

# Or use the traditional way
ih config add owner/repo
ih i
ih rm

Authentication

GitHub Enterprise & Private Repositories

For private repositories or GitHub Enterprise instances, you'll need to authenticate using the GitHub CLI:

# Install GitHub CLI (if not already installed)
brew install gh

# Authenticate with public GitHub
gh auth login

# Authenticate with GitHub Enterprise
gh auth login --hostname ghe.company.com

# Verify authentication
gh auth status

The tool automatically detects your authentication and uses the appropriate tokens for API requests.

Supported Authentication Methods

  • GitHub CLI: Automatically uses tokens from gh auth (recommended)
  • Public repositories: No authentication required
  • Multiple instances: Supports both public GitHub and enterprise instances simultaneously

Configuration

Configuration is stored globally in ~/.instruction-hub/config.json and includes:

  • List of configured repositories

License

MIT

Contributing

Issues and pull requests are welcome!