GitHub Stats RS is a Rust application that generates GitHub statistics and visualizes them using SVG images.
- Fetches GitHub statistics using the GitHub API
- Generates SVG images for overview and language statistics
- Configurable template and output folders
- Rust (latest stable version)
- Cargo (latest stable version)
-
Create a personal access token (not the default GitHub Actions token)
-
Create a copy of this repository by clicking here
-
In the repository settings, navigate to the
Secrets
tab and add the following secrets:ACCESS_TOKEN
: GitHub access token
-
Go to the
Actions
tab and run the workflow -
Take note of the generated SVG images in the output folder
-
To add your statistics to your GitHub Profile README, copy and paste the following lines of code into your markdown content. Change the
username
value to your GitHub username. 
 
Environment Variable | Default Value | Description |
---|---|---|
ACCESS_TOKEN |
None | GitHub access token |
GITHUB_ACTOR |
None | GitHub actor |
EXCLUDED |
"" |
Excluded repositories |
EXCLUDED_LANGS |
"" |
Excluded languages |
EXCLUDE_FORKED_REPOS |
true |
Exclude forked repositories |
LANGUAGES_LIMIT |
10 | Amount of languages represented on svg |
TEMPLATE_FOLDER |
resources/templates |
Folder containing SVG templates |
OUTPUT_FOLDER |
resources/generated |
Folder for generated SVG images |
-
Create a
.env
file with the following content:ACCESS_TOKEN=your_access_token GITHUB_ACTOR=your_github_login
-
Run the application:
cargo run --release | bunyan
-
Open the generated SVG images in the output folder.