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.
- 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
npm install -g gh-xplBefore 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 authgh-xpl search "typescript tutorial"
gh-xpl search "react hooks" --count 10Display a repository's README:
gh-xpl info facebook/react
# or
gh-xpl info https://github.com/facebook/reactGet 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.tsLaunch an interactive terminal user interface for exploring repositories:
gh-xpl tui
# or with an initial query
gh-xpl tui "react"# Output as JSON for scripting
gh-xpl search "react" --json
gh-xpl info facebook/react --json
gh-xpl get facebook/react package.json --json| 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 |
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 --globalThe skill enables AI agents to explore GitHub repositories using the gh-xpl command.
For bug reports and feature requests, please fill an issue at GitHub repository.
See CHANGELOG for a list of changes in each version.
For development information, see CONTRIBUTING.
MIT