ghfetch-0.1.0 is not a library.
ghfetch
GitHub stats in the terminal, neofetch-style.
ghfetch renders compact terminal cards for GitHub users, repositories, and organizations, with optional JSON output for scripting.
Features
- User, repository, and organization views
- Catppuccin-based terminal themes
- Optional JSON output for shell scripts and other tooling
- Language breakdowns with detailed table mode
- Contribution and streak stats when authenticated
Installation
From crates.io
From source
Authentication
ghfetch checks for authentication in this order:
--tokenGITHUB_TOKENGH_TOKENgh auth token
Unauthenticated mode still works for public data, but GitHub rate limits are much lower and contribution data is unavailable.
Usage
Commands
ghfetch [username]ghfetch user <username>ghfetch repo <owner/repo>ghfetch org <orgname>
Common flags
--jsonprints structured output instead of a card--no-colordisables ANSI styling--theme <mocha|macchiato|frappe|latte>selects the card palette--verboseprints API request diagnostics to stderr
Notes
ghfetch user <username>shows a compact summary by default. Use--allto include every section, or specific section flags like--reposor--languages.ghfetch org <orgname>andghfetch repo <owner/repo>show language summaries by default.- Detailed language mode (
--languages) prints a wider table instead of the card view.
Development
License
MIT. See LICENSE.