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

gh-xpl

v1.0.2

Published

CLI and TUI tool for exploring GitHub repositories using the official GitHub API, includes a skill for AI agents.

Readme

GitHub Repository Explorer CLI

A powerful CLI and TUI for exploring GitHub repositories using the official GitHub API. Supports searching for repositories, displaying repository READMEs, getting file or directory contents, and multiple output formats. Includes an interactive TUI and a skill for AI agents.

Features

  • Search GitHub repositories
  • Display repository README
  • Get file or directory contents
  • Interactive TUI
  • GitHub API token authentication for higher rate limits
  • JSON and Markdown output formats
  • AI agent skill for autonomous exploration

Installation

npm install -g gh-xpl

Setup

Before using the CLI, you can set up your GitHub API token for higher rate limits (5,000 requests per hour instead of 60):

gh-xpl auth

Usage

Search Repositories

gh-xpl search "typescript tutorial"
gh-xpl search "react hooks" --count 10

Get Repository Info

Display a repository's README:

gh-xpl info facebook/react
# or
gh-xpl info https://github.com/facebook/react

Get File/Directory Contents

Get contents of a file or list a directory:

# Get root directory
gh-xpl get facebook/react

# Get specific file
gh-xpl get facebook/react README.md

# List src directory
gh-xpl get facebook/react src

# Get file content
gh-xpl get facebook/react src/index.ts

Interactive TUI

Launch an interactive terminal user interface for exploring repositories:

gh-xpl tui
# or with an initial query
gh-xpl tui "react"

JSON output

# Output as JSON for scripting
gh-xpl search "react" --json
gh-xpl info facebook/react --json
gh-xpl get facebook/react package.json --json

Options

| Command | Description | Options | | -------- | ------------------------------ | ----------------------- | | search | Search GitHub repositories | --count <n>, --json | | info | Display repository README | --json | | get | Get file or directory contents | --json | | tui | Interactive TUI | | | auth | Set up GitHub API token | | | skill | Install skill for AI agents | --global |

AI Agent Skill

Install the skill for AI agents to use the gh-xpl command autonomously:

# Install in current project
gh-xpl skill

# Install globally
gh-xpl skill --global

The skill enables AI agents to explore GitHub repositories using the gh-xpl command.

Support

For bug reports and feature requests, please fill an issue at GitHub repository.

Changelog

See CHANGELOG for a list of changes in each version.

Development

For development information, see CONTRIBUTING.

License

MIT