https://github.com/otiai10/gh-dependents
Just a web crawler to collect dependents of a GitHub repository.
https://github.com/otiai10/gh-dependents
cli extension extensions github
Last synced: about 1 year ago
JSON representation
Just a web crawler to collect dependents of a GitHub repository.
- Host: GitHub
- URL: https://github.com/otiai10/gh-dependents
- Owner: otiai10
- License: mit
- Created: 2021-08-31T03:10:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T07:46:53.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:12:30.209Z (about 1 year ago)
- Topics: cli, extension, extensions, github
- Language: Go
- Homepage: https://github.blog/2021-08-24-github-cli-2-0-includes-extensions/
- Size: 198 MB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-dependents
[](https://github.com/otiai10/gh-dependents/actions)
[](https://github.com/otiai10/gh-dependents/actions/workflows/webtest.yaml)
[](https://codecov.io/gh/otiai10/gh-dependents)
`gh` command extension to see dependents of your repository.

See The GitHub Blog: [GitHub CLI 2.0 includes extensions!](https://github.blog/2021-08-24-github-cli-2-0-includes-extensions/)
# Install
```sh
gh extension install otiai10/gh-dependents
```
# Usage
```sh
gh dependents otiai10/lookpath
# gh dependents {user}/{repo}
```
# Advanced Usage
```sh
gh dependents \
-v \ # Show verbose log
-page=2 \ # Only crawl 2 pages
-after=MjM1ODQzNDY1NzY \ # Only crawl after specific hash
-sort=fork \ # Sort output by num of forks
-pretty \ # Output in pretty format
otiai10/lookpath
# For more information, hit
gh dependents -h
```
# How it works
- This command just crawls `/network/dependents` page of your repository.
# Usage as a Go library
```go
package main
import (
"github.com/otiai10/gh-dependents/ghdeps"
)
func main() {
crawler := ghdeps.NewCrawler("otiai10/lookpath")
err := crawler.All()
if err != nil {
log.Fatalln(err)
}
fmt.Printf("%+v\n", crawler.Dependents)
}
```
For more information, check https://pkg.go.dev/github.com/otiai10/gh-dependents/ghdeps
# Issues and Feature Request
- https://github.com/otiai10/gh-dependents/issues