ghscope

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README


ghscope

x-ray vision for any GitHub repository — straight from your terminal


CI Go Version Latest Release


ghscope in action

One command. Nine tabs. Everything GitHub doesn't show you on the repo page.

ghscope torvalds/linux

Star geography, contributor bus factor, commit heatmaps, dependency staleness, PR velocity, CI/CD signals, trending momentum — all cached locally, all without leaving your terminal.


What's inside

Overview — stars, forks, watchers, open issues, last push, trending signal (rising / stable / declining based on star velocity)

Languages — byte-breakdown bar chart, every language in the repo

Contributors — top contributors ranked by commits, bus factor score, stickiness ratio (one-timers vs returners)

Geography — country breakdown of your stargazers, resolved from IP ranges

Activity — weekly commit heatmap by day × hour, 52-week sparkline

Releases — full release history, cadence, days since last tag

Health — CI/CD detection, test presence, active forks, issue debt, community files

Deps — outdated packages across Go, Rust, Node, Python with major-version flags

PRs — merge rate, avg time to merge, open count, recent merged vs rejected


Install

# Go
go install github.com/phlx0/ghscope@latest

Or grab a pre-built binary for macOS, Linux, or Windows.

Build from source
git clone https://github.com/phlx0/ghscope
cd ghscope
go build -o ghscope .

Usage

ghscope <owner/repo> [flags]

  --skip-geo     skip star geography  (saves ~100 API calls)
  --skip-deps    skip dependency version checks
  --no-cache     ignore cache and re-fetch everything

  setup          re-run the setup wizard
  cache clear    wipe the local response cache

First run launches a setup wizard to store your GitHub token. Without one you're limited to 60 req/h — enough for small repos, not for anything with real stars.

Token scope needed: public_repo read only.


Keys

  1 – 9       jump to tab          o     open repo in browser
  h / l       prev / next tab      ?     help overlay
  j / k       scroll               q     quit

How it caches

Everything lands in ~/.cache/ghscope/ as SHA256-keyed JSON files.

Data TTL
Repo metadata, languages, contributors 6 hours
Static file checks (CI, tests) 24 hours
PR data 1 hour

ghscope cache clear or --no-cache to start fresh.


Config

Stored at ~/.config/ghscope/config.json. Run ghscope setup to edit it interactively.

{
  "github_token": "ghp_...",
  "skip_geo": false,
  "skip_deps": false
}

Contributing

See CONTRIBUTING.md — the short version: go test ./..., keep the api → analysis → ui layering intact, one thing per PR.

License

GPL-3.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api
geo
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL