https://github.com/williamboman/gh-analyzer
This (very simple) tool uses GitHub's API to fetch and persist insights data, allowing you to better understand long-term usage patterns and trends of your repositories - blazingly fast.
https://github.com/williamboman/gh-analyzer
Last synced: 4 months ago
JSON representation
This (very simple) tool uses GitHub's API to fetch and persist insights data, allowing you to better understand long-term usage patterns and trends of your repositories - blazingly fast.
- Host: GitHub
- URL: https://github.com/williamboman/gh-analyzer
- Owner: williamboman
- License: apache-2.0
- Created: 2022-06-05T10:52:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-03T16:54:45.000Z (over 3 years ago)
- Last Synced: 2025-02-09T05:35:32.535Z (11 months ago)
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-analyzer
GitHub's insights capabilities are pretty limited, and will only give you data
for a limited time range (past 2 weeks). This (very simple) tool uses GitHub's
API to fetch and persist insights data, allowing you to better understand
long-term usage patterns and trends of your repositories - blazingly fast.
## Install
```sh
$ cargo install --git https://github.com/williamboman/gh-analyzer
```
## Requirements
- [`gh` cli](https://cli.github.com/)
## Example usage
```
0 0 * * * gh-analyzer --out-dir /srv/github-stats repo williamboman/gh-analyzer
0 0 * * * gh-analyzer --out-dir /srv/github-stats clones williamboman/gh-analyzer
0 0 * * * gh-analyzer --out-dir /srv/github-stats traffic williamboman/gh-analyzer
```
## Notes
Historic data have a tendency to be volatile, where historic numbers provided
by the API seem to change over time. This is worth keeping in mind when
ingesting the data into another system, like a time series database.