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

ghfz

v1.0.0

Published

A fuzzy finder CLI tool for GitHub repos.

Downloads

60

Readme

ghfz

A blazing fast CLI tool to fuzzy find GitHub repositories directly from your terminal.

Npm Version NPM Last Update NPM Unpacked Size GitHub Actions Workflow Status

Demo

Table of Contents

Features

  • 🔍 Fuzzy find GitHub users, repositories, and pull requests.
  • ➕ Add a user's repositories to your local database.
  • 🗑️ Remove user repositories from your database.
  • 🔄 Sync your local database with GitHub API.
  • 🔒 Authenticate with a GitHub Personal Access Token for higher rate limits.
  • 🌐 Open selected repositories directly in your default browser.

Prerequisites

ghfz relies on fzf for fuzzy searching. Please ensure fzf is installed before using ghfz:

  • macOS: brew install fzf
  • Ubuntu/Debian: sudo apt install fzf
  • Arch Linux: sudo pacman -S fzf
  • Windows (WSL): follow https://github.com/junegunn/fzf#installation

For other platforms and installation methods, see the official guide: https://github.com/junegunn/fzf#installation

Installation

Install via npm:

npm install -g ghfz@latest

Or use the latest unpublished version:

bash -c "$(curl -fsSL https://ghfz.netlify.app/run.sh)" -- https://ghfz.netlify.app/ghfz.tgz

Usage

Once installed, run:

ghfz [command]

Fuzzy Search

Running without arguments launches the interactive fuzzy search:

ghfz

You can search across:

  • GitHub user homepages
  • User repositories pages
  • Individual repository pages
  • Pull request pages

Type to filter and press Enter to open your selection in the browser.

Commands

  • add

    Add all public repositories of a GitHub user to the local database:

ghfz add

Prompts for a username and fetches repos via GitHub API.

  • remove

    Remove one or more users and their repos from the database:

ghfz remove

Prompts to select users in a multi-select interface.

  • sync

    Sync local database with GitHub for updated repositories:

ghfz sync

By default, syncs only selected users' data. To sync all:

ghfz sync --all
  • auth

    Store your GitHub Personal Access Token for increased rate limits:

ghfz auth

Prompts to enter your PAT, securely saved in your config directory.

Use ghfz --help to view all available commands and options.

Configuration

Your GitHub PAT is stored at:

# Linux
~/.config/ghfz-nodejs/github_pat.txt

Rate Limiting

GitHub API limits unauthenticated requests to 60 per hour. When you encounter HTTP 403 errors due to rate limits, authenticate with a GitHub Personal Access Token (PAT) to increase your limit to 5,000 requests per hour.

  1. Generate a PAT:
    • Visit https://github.com/settings/tokens
    • Click Generate new token (classic), provide a name, select the repo scope (or others as needed), and generate your token.
    • Copy the generated token.
  2. Authenticate with ghfz:
ghfz auth

When prompted, paste your PAT. The token is stored securely and used for subsequent API requests.

For more details, see GitHub's documentation: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Data Storage

User and repository data are stored under your system data directory, for example:

# Linux
~/.local/share/ghfz-nodejs/users.json
~/.local/share/ghfz-nodejs/repos.json

Mock data is seeded on first run from the MockData folder.

Development

Clone the repository and install dependencies:

git clone https://github.com/dhruvdhaduk-simform/ghfz.git
cd ghfz
npm install

Build the project:

npm run build

OR Run in development/watch mode:

npm run dev

Then, to start the CLI :

npm start

Format code with Prettier:

npm run format

Packaging

  • npm run pack — Clean, build, and generate a packaged .tgz and run.sh in the dist/ folder.

Changelog

See the Releases for detailed changelog and version history.

Acknowledgements

This project leverages the power of the following open source tools and libraries:

  • TypeScript — for static typing and modern JavaScript features
  • Node.js — as the runtime environment
  • fzf — for blazing fast fuzzy search in the terminal
  • yargs — for command-line interface parsing
  • prompts — for interactive user prompts
  • env-paths — for managing config and data directories
  • zod — for runtime schema validation
  • open — for cross-platform URL opening

Support

For questions or feedback, please open an issue or contact [email protected].