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

github-search-cli

v9.4.1

Published

Terminal-native GitHub search — search, trending, bookmarks, history, deep-dive, compare, export, and more. All keyboard-driven, no browser needed.

Readme

ghfind

Search GitHub repos from your terminal. No browser needed.

MIT License


Install

npm install -g github-search-cli

No separate runtime needed! Only requires Node.js 20+. The TUI needs Bun, which is downloaded automatically at install time. Non-interactive modes work with just Node.js.

| Platform | TUI | CLI modes | | --------------------- | ---------------- | --------- | | Node 20+ | ⚠ Bun required | ✅ | | Bun | ✅ | ✅ | | Downloaded Bun | ✅ auto-installed| ✅ |

Use

# TUI
ghfind

# pipe
ghfind "language:Rust stars:>1000" --json | jq '.[].fullName'
ghfind "language:Zig" --count
ghfind --trending --json --since weekly

Non-interactive

ghfind "query" --json        # JSON
ghfind "query" --csv         # CSV
ghfind "query" --markdown    # Markdown
ghfind "query" --count       # count only
ghfind "query" --format urls # one URL per line
ghfind "query" --pipe open   # open in browser
ghfind "query" --pipe clone  # clone commands
ghfind --trending --json     # trending as JSON
ghfind --watch "query"       # poll every 300s

Completions

source <(ghfind --completion bash)
source <(ghfind --completion zsh)
ghfind --completion fish | source

Features

Global shortcuts (main view, no overlay active)

| Key | Action | | --------------------- | ---------------------------------------------- | | / | Focus search input | | Enter | Execute search / open selected repo in browser | | / j / k | Navigate results & menus | | Space | Open leader menu (contextual actions) | | Tab | Auto-complete search qualifier | | ? or Ctrl+H | Help overlay | | 15 | Switch trending tabs (Today → All) | | / h / l | Switch trending tabs (left/right) | | PageUp | Jump to top of results | | PageDown | Load next page of results | | Esc | Close current overlay | | q | Quit ghfind |

Leader menu — press Space, navigate with /, press Enter to dispatch

Actions shown depend on current mode (search vs trending) and selection:

| Menu item | Description | | --------------- | ------------------------------------------------------- | | Sort | Cycle sort strategy (best-match, stars, updated, forks) | | Limit | Cycle result limit (10, 25, 50, 100) | | Refresh | Re-run current search (or reload trending) | | Toggle trending | Switch between search and trending views | | Deep-dive | Show languages, contributors, README excerpt | | Readme | Full README viewer | | Activity graph | Toggle commit chart fullscreen | | Bookmark | Save / unsave selected repo | | Compare | Add/remove repo to comparison set | | Compare view | Show side-by-side comparison table | | Open in browser | Open selected repo URL | | History | Recall past searches | | Saved searches | Load a saved search | | Save search | Save current query | | Export | Export results to JSON / CSV / Markdown | | Share repo | Copy repo link to clipboard | | Notifications | View and dismiss alerts | | Topics | Browse popular GitHub topics | | Bookmarks panel | Browse saved bookmarks | | Help | Keybindings reference |

Overlay-specific shortcuts

| Key | Context | Action | | --------------- | ---------------------------------------------------- | ------------------------------------------- | | Esc / q | Any overlay | Close overlay | | Enter | Leader / History / Saved / Export / Topics / Share | Confirm selection | | d | History / Bookmarks / Saved searches / Notifications | Delete current entry | | Ctrl+X | History | Clear all history | | Ctrl+C | Notifications | Dismiss all notifications | | Y / N / L | Update modal | Yes (install) / No (skip) / Later (dismiss) |

Trending tabs: 15 (Today → All) or /h/l

Most actions are accessed via the leader menu (Space). This keeps the keymap minimal while providing a full command palette. The leader menu filters actions contextually — items that don't apply (e.g., Bookmark with no repo selected) are hidden.


Search syntax

language:Rust stars:>1000 topic:cli
"machine learning" language:Python stars:>5000
topic:cli -language:JavaScript
org:rust-lang language:Rust

Prefix with - to exclude. Supported: language, stars, fork, archived, topic, user, org, repo, updated, pushed, visibility, license, created, size, in.


Config

~/.config/ghfind/config.json (auto-created, or run ghfind init):

{
  "defaultSort": "stars",
  "defaultLimit": 50,
  "theme": "tokyo-night",
  "githubToken": "ghp_..."
}

Env: GITHUB_TOKEN, GHFIND_CONFIG, XDG_CONFIG_HOME, XDG_STATE_HOME


From source

git clone https://github.com/codersdfs/search-cli.git
cd ghfind

# With Bun (recommended for TUI)
bun install
bun start        # TUI
bun test         # 179 tests
bun run build    # build dist/

# Or with npm
npm install
npm start        # TUI (requires Node 20+)
npm test         # 179 tests
npm run build    # build dist/

Changelog

Recent releases (full history in CHANGELOG.md):

v9.3.0

  • Fixed c keybinding in TUI not adding repos to comparison — a missing closing brace in the space-key handler broke every later key handler (c, t, ?)
  • README viewer renders full markdown (headings, code blocks, lists, tables, blockquotes, rules) instead of stripping formatting
  • Widened compare table columns (min 35 chars), added Description + URL rows, and raised the topic cap to 5 per repo

v9.2.1

  • npm package search (beta) and a new landing screen
  • Removed the bundled Bun binary — downloaded at install time instead; package size 39.5 MB → 100 KB
  • Postinstall failures no longer break npm install; bun dropped from engines
  • Fixed TUI layout on small terminals, trending visibility from the landing screen, and independent trending-tab fetches

v9.1.1

  • Bundle vendor/ and dist/ for offline install
  • Postinstall exits non-zero on Bun download failure; bundled Bun 1.3.12 → 1.3.14

v9.1.0

  • Automatic update checking against the npm registry, with a Y/N/L modal
  • Leader menu (Space) consolidating all contextual actions
  • Topic explorer, notifications panel, saved searches, activity graph, README viewer
  • Tab qualifier auto-complete, PageUp/PageDown, Ctrl+X clear history, Ctrl+C clear notifications
  • TUI runs on Node.js 20+ via the downloaded Bun binary

License

MIT