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

@cogniwave/gh-sync

v1.1.3

Published

This tool allows you to synchronize configurations (labels, workflows, rules, etc) between two GitHub repositories

Readme

gh-sync

Latest version npm downloads npm Publish workflow Documentation - Powered by GitBook

This tool allows you to synchronize labels between two GitHub repositories. It retrieves the labels from a source repository and updates the labels in the target repository.

It requires a GitHub access token with the necessary permissions to manage labels on GitHub repositories.

Setup

Installation

Install it globally or locally with whatever package manager you use

npm install -g @cogniwave/gh-sync
pnpm add -g @cogniwave/gh-sync
yarn global add @cogniwave/gh-sync
bun add @cogniwave/gh-sync

Direct Execution with npx (or other runners)

If you prefer not to install the tool globally, you can run it directly using:

npx @cogniwave/gh-sync
bunx @cogniwave/gh-sync
yarn dlx @cogniwave/gh-sync
pnpm @cogniwave/gh-sync

Token

Before using the tool, you need to create a GitHub access token with the following required permissions:

  • issues:read and write: Used to get labels and create new ones
  • pull requests:read and write: Used to delete tokens in destination repository if you wish

Usage

Once you have your GitHub token, you can use the tool to sync labels between repositories.

Command Syntax

@cogniwave/gh-sync <origin> <target> [options]

Arguments

  • origin <string>: The repository from which you want to copy labels in the format of {owner}/{repository}
  • target <string>: The repository where you want to update the labels in the format of {owner}/{repository}

Options

  • --verbose: Runs the tool in verbose mode, providing detailed logs about the operations being performed.
  • -t, --token <string>: Auth token to allow gh-sync to do it's thing. Use this if the token is the same for both origin and destination repositories"
  • --token-origin: Auth token of the origin repository, to allow gh-sync to do it's thing
  • --token-destination: Auth token of the destination repository, to allow gh-sync to do it's thing

Example Usage

  1. To synchronize labels from repo-a to repo-b:

    @cogniwave/gh-sync owner/repo-a owner/repo-b --token your_github_token
  2. To synchronize labels from repo-a to repo-b with implicit token:

    export $GITHUB_TOKEN = your_github_token
    @cogniwave/gh-sync owner/repo-a owner/repo-b
  3. To synchronize labels from repo-a to repo-b but different tokens:

    @cogniwave/gh-sync owner/repo-a owner/repo-b --token-origin repo-a_token --token-destination repo-b_token
  4. To run the tool in verbose mode:

    @cogniwave/gh-sync owner/repo-a owner/repo-b --verbose

Development

bun install

To run:

bun dev