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

co-pilot-review

v1.3.0

Published

AI-assisted code review tool that analyzes git changes and posts reviews to pull requests

Readme

co-pilot-review

AI-assisted code review tool that analyzes git changes and posts reviews to pull requests using GitHub Copilot.

💡 Why this tool? While there are more sophisticated commercial code review tools available, this solution provides similar functionality for free if you already have GitHub Copilot access. It's a creative(hacky 😁) workaround that leverages Copilot's capabilities for semi-automated code reviews without additional costs.

Prerequisites

Before using co-pilot-review, make sure you have:

  1. Git repository: Must be run from within a git repository
  2. GitHub CLI: Must have gh CLI installed and authenticated (gh auth login)
  3. GitHub Copilot: Must have access to GitHub Copilot Chat
  4. Pull Request: Must be run from a branch with an open pull request
  5. Custom guidelines (optional): Create a co-pilot-coding-review-guidelines.md file in your project root

Installation

Install globally via npm:

npm install -g co-pilot-review

Or install globally via yarn:

yarn global add co-pilot-review

Basic Usage

Run the command in your git repository:

yarn cp-review

Or if installed via npm:

npx cp-review

How it works

  1. Detects changes: Analyzes git diff between specified branches
  2. Generates prompt: Creates a structured prompt with your custom guidelines
  3. Copies to clipboard: Automatically copies the prompt to your clipboard
  4. Copilot interaction: You paste the prompt into Copilot Chat (Agent mode, Edit mode)
  5. Waits for response: Monitors for the JSON response file creation
  6. Posts review: Formats and posts the review as a pull request comment

Advanced Usage

Branch Selection Options

Compare specific branches:

# Compare feature-branch with main
cp-review --base main --target feature-branch

# Compare current branch with develop
cp-review --base origin/develop

# Compare two specific branches
cp-review -b origin/main -t feature/user-auth

Interactive mode:

# Launch interactive branch selection
cp-review --interactive
cp-review -i

Get help:

cp-review --help
cp-review -h

Command Line Options

| Option | Short | Description | Default | |--------|-------|-------------|---------| | --help | -h | Show help message | - | | --base <branch> | -b | Base branch to compare against | origin/main | | --target <branch> | -t | Target branch to compare | HEAD | | --interactive | -i | Interactive branch selection | false |

Examples

# Default: Compare current branch with origin/main
cp-review

# Compare with different base branch
cp-review --base origin/develop

# Compare specific branches
cp-review --base main --target feature-branch

# Compare with remote branch
cp-review --base origin/main --target origin/feature-branch

# Interactive mode (shows available branches)
cp-review --interactive

Custom Guidelines

Create a co-pilot-coding-review-guidelines.md file in your project root with your specific coding standards and review criteria. This file will be included in the AI prompt to ensure consistent reviews.

If no custom guidelines file is found:

  • The tool will warn you and continue with example guidelines
  • You can use the provided custom-coding-review-guidelines.md.example as a starting point
  • Basic fallback guidelines will be used if no example file exists

To create your own guidelines:

  1. Copy the example file: cp custom-coding-review-guidelines.md.example co-pilot-coding-review-guidelines.md
  2. Edit the file to match your project's coding standards
  3. The tool will automatically use your custom guidelines

Example:

# Custom Coding Review Guidelines

## Code Quality
- Ensure proper error handling
- Use meaningful variable names
- Follow consistent formatting

## Security
- Validate all inputs
- Avoid hardcoded secrets
- Use secure coding practices

Requirements

  • Node.js >= 14.0.0
  • Git
  • GitHub CLI (gh)
  • GitHub Copilot access

Version History

See CHANGELOG.md for detailed version history.

License

ISC