A tool to generate beautiful SVG cards showing your GitHub statistics and programming language distribution.
- Generates an overview SVG card with GitHub statistics
- Creates a languages SVG card showing your programming language distribution
- Highly customizable through environment variables
- Supports excluding specific repositories and languages
- Smart filtering options for forked, archived, and private repositories
- Flexible configuration for multiple GitHub owners
- Webhook support for integration with other services
go install github.com/TBXark/github-status@latest
All configuration is done through environment variables. Here are all the available options:
Environment Variable | Type | Description | Default |
---|---|---|---|
ACCESS_TOKEN / GITHUB_TOKEN |
string | GitHub access token for API authentication | Required |
CUSTOM_ACTOR / GITHUB_ACTOR |
string | GitHub username | Required |
EXCLUDE_REPOS |
string[] | Comma-separated list of repositories to exclude | [] |
EXCLUDE_LANGS |
string[] | Comma-separated list of languages to exclude | [] |
INCLUDE_OWNER |
string[] | Comma-separated list of GitHub owners to include | [username] |
IGNORE_PRIVATE_REPOS |
bool | Whether to ignore private repositories | false |
IGNORE_FORKED_REPOS |
bool | Whether to ignore forked repositories | false |
IGNORE_ARCHIVED_REPOS |
bool | Whether to ignore archived repositories | false |
IGNORE_CONTRIBUTED_TO_REPOS |
bool | Whether to ignore repositories you've contributed to | false |
IGNORE_LINES_CHANGED |
bool | Whether to ignore lines of code changed in statistics | false |
IGNORE_REPO_VIEWS |
bool | Whether to ignore repository view counts | false |
WEBHOOK_URL |
string | URL for webhook notifications | "" |
Note:
GITHUB_TOKEN
is limited requests on GitHub API, so it is recommended to use a personal access tokenACCESS_TOKEN
with therepo
scope.
Reference My GitHub Action
Create a repository action to automatically update the stats. The action will update the stats and push the changes to the main branch. And you can use it svg card in your README.md.
This project was inspired by the jstrieb/github-stats project
github-status is released under the MIT license. See LICENSE for details.