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

@rodbe/ghx

v1.9.0

Published

Clone GitHub repositories with a friendly CLI

Readme

GHX 🐙: CLI with a user-friendly interface to clone GitHub repositories ⚡️

Overview

GHX is a CLI that helps you clone repositories from your personal account, organizations, or starred repositories with a simple interactive experience. The latest flow also supports optional flags for debugging, version checking, and update checks.

Features

  • Choose between SSH and HTTPS cloning methods.
  • Choose where to clone repositories from: personal account, organizations, or starred repositories.
  • Select multiple GitHub organizations.
  • Select multiple repositories from each organization to clone.
  • Apply fuzzy search to your selections.
  • Use optional CLI flags: --debug, --dev, and --version.
  • Support an SSH host alias for GitHub when cloning over SSH.

Prerequisites

  • Node.js 18.18.2 or higher installed on your system.
  • A GitHub personal access token configured as the GHX_GITHUB_PAT environment variable or stored in the CLI config.
  • SSH configured for GitHub if you plan to use SSH cloning.

Grant read permissions to repositories and organizations in your token.

Installation

Install the package globally:

npm i -g @rodbe/ghx

If you hit a permission error, try running the installation with administrator privileges.

Configuration

GHX resolves the GitHub token in this order:

  1. The GHX_GITHUB_PAT environment variable.
  2. The CLI configuration entry for ghx.githubPat.

If no token is found, the CLI will prompt you to enter it interactively.

If you use SSH cloning and a host alias is available in the config, GHX will use it to rewrite GitHub URLs. If no alias is configured, the CLI will ask you for one during the flow. You can leave it empty to keep using the default github.com host or switch to HTTPS.

Token setup options

You can provide the token in any of these ways:

  • Export it as an environment variable:

    export GHX_GITHUB_PAT=your_personal_access_token
  • Store it in the CLI config under ghx.githubPat.

  • Enter it manually when the CLI prompts for it.

Usage

  1. Set up your GitHub personal access token:

    export GHX_GITHUB_PAT=your_personal_access_token
  2. Run the tool:

    ghx
  3. Follow the prompts:

    • Choose your preferred cloning method (SSH or HTTPS).
    • Choose the source of repositories: personal, organizations, or starred.
    • If you select organizations, pick the organizations you want to browse.
    • Choose the repositories to clone.
  4. Cloning:

    The selected repositories will be cloned into your current directory.

CLI options

  • ghx --version: prints the installed GHX version.
  • ghx --debug: enables debug logging for configuration resolution.
  • ghx --dev: runs the update check flow before starting.

If you are not part of any organization, GHX will fall back to cloning your personal repositories.

Support

If you encounter any issues or have questions, please open an issue in the GitHub repository or contact the development team.