Get an accurate data from your contributions and transform into a card to show at your GitHub profile README
🚀 Quick setup
- Copy-paste the markdown below into your GitHub profile README
- Replace the value after
brunohbritowith your GitHub username
[![My Awesome Stats](https://awesome-github-stats.azurewebsites.net/user-stats/brunohbrito)](https://git.io/awesome-stats-card)
💻 Demo Site
Here you can customize your Card with a live preview: https://awesome-github-stats.azurewebsites.net/
💁🏻 SVGs wanted.
If you are a Jedi Master building SVG, help-me adding new SVG's templates. Then we try to add some data on it!
🖌️ Card Types
There are few Card types to show your stats. Change
To enable a theme, append
&theme= followed by the theme name to the end of the source url:
If you have come up with a new theme you'd like to share with others, open an issue to add it!
user field is part of url
user-stats/<user>, which is required. All other fields are optional.
theme parameter is specified, any color customizations specified will be applied on top of the theme, overriding the theme's values.
||The theme to apply (Default:
||Dont shown icons at left of labels (Default:
||Background color||hex code (without
||Border color||hex code (without
||Color of the text||hex code (without
||Color of the title at top||hex code (without
||Color of the icons||hex code (without
||Color of the ring around the level||hex code (without
[![My Awesome Custom Stats](https://awesome-github-stats.azurewebsites.net/user-stats/brunohbrito?theme=tokyonight&Ring=DD2727&Border=13DD57&Text=DD2727)](https://git.io/awesome-stats-card)
ℹ️ How these stats are calculated
This tool uses GitHub GraphQL to compute yours contributions since your first day at GitHub.
To include contributions in private repositories, turn on the setting for "Private contributions" from the dropdown menu above the contribution graph on your profile page.
- Public commits
- Private commits
- Commits in your repositories
- Commits made in another repositories
- Pull requests to your repositories
- Pull requests to another repositories
- Direct stars - Stars from your repositories
- Indirect Stars - Stars from repo's you have made some contribution
- Repositories you have created
If stats not showing look at Learn more about what is considered a contribution.
Note: You may need to wait up to 24 hours for new contributions to show up (Learn how contributions are counted)
Note: To prevent too many requests at GitHub we have an agressive cache strategy. You have to wait 24 hours to our server fetch your data again.
To check your stats go to:
- Stats: https://awesome-github-stats.azurewebsites.net/user-stats/brunhbrito/stats
- Rank: https://awesome-github-stats.azurewebsites.net/user-stats/brunohbrito/rank
Contributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.
Make sure your request is meaningful and you have tested the app locally before submitting a pull request.
Actually another repositories with the same goal doesn't count stats with accuracy. The main goal is to have a strong data first, then a beatiful svg.
🧰 Installing Requirements
To get the GitHub API to run locally you will need to provide a token.
- Go to https://github.com/settings/tokens
- Click "Generate new token"
- Add a note (ex. "GitHub Pat"), then scroll to the bottom and click "Generate token"
- Copy the token to your clipboard
- Go to file
src/AwesomeGithubStats.Apidirectory and add your PAT at
PATS: [...]with your token
"PATS": [ "your_pat_here" ]
Running the tests
Before you can run tests, you have to add your PAT in
tests/Tests. Just how you have done above.
💕 Special thanks
Special thanks for github-readme-streak-stats who build a Demo site. This version is almost the same code from there.
And another special thank to Sindre Sorhus to increase the difficult to find a magical number to create Levels. The levels are based in his contributions.
Made .NET 5