Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunobritodev/awesome-github-stats
π Show everyone how amazing you are! Stay motivated and display your total contributions and level on your GitHub profile README
https://github.com/brunobritodev/awesome-github-stats
List: awesome-github-stats
dotnet5 github github-stars github-stats profile profile-readme readme-card readme-generator statistics-images
Last synced: 3 months ago
JSON representation
π Show everyone how amazing you are! Stay motivated and display your total contributions and level on your GitHub profile README
- Host: GitHub
- URL: https://github.com/brunobritodev/awesome-github-stats
- Owner: brunobritodev
- License: mit
- Created: 2021-05-09T19:43:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T20:16:03.000Z (about 1 year ago)
- Last Synced: 2024-05-22T16:11:41.223Z (9 months ago)
- Topics: dotnet5, github, github-stars, github-stats, profile, profile-readme, readme-card, readme-generator, statistics-images
- Language: C#
- Homepage: https://awesome-github-stats.azurewebsites.net/
- Size: 28.2 MB
- Stars: 189
- Watchers: 3
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - brunobritodev/awesome-github-stats - π Show everyone how amazing you are! Stay motivated and display your total contributions and level on your GitHub profile README (C# #)
README
![]()
Get an accurate data from your contributions and transform into a card to show at your GitHub profile README
View Demo
# Content
- [Content](#content)
- [π Quick setup](#-quick-setup)
- [π» Demo Site](#-demo-site)
- [ππ» SVGs wanted.](#-svgs-wanted)
- [ποΈ Card Types](#οΈ-card-types)
- [π¨ Themes](#-themes)
- [π§ Options](#-options)
- [Example](#example)
- [βΉοΈ How these stats are calculated](#βΉοΈ-how-these-stats-are-calculated)
- [π€ Contributing](#-contributing)
- [π€ Motivations](#-motivations)
- [π§° Installing Requirements](#-installing-requirements)
- [Requirements](#requirements)
- [Authorization](#authorization)
- [Running the tests](#running-the-tests)
- [π Special thanks](#-special-thanks)
- [πββοΈ Support](#οΈ-support)## π Quick setup
1. Copy-paste the markdown below into your GitHub profile README
2. Replace the value after `brunobritodev` with your GitHub username```md
[![My Awesome Stats](https://awesome-github-stats.azurewebsites.net/user-stats/brunobritodev)](https://git.io/awesome-stats-card)
```## π» Demo Site
Here you can customize your Card with a live preview:
[![Demo Site](https://raw.githubusercontent.com/brunobritodev/awesome-github-stats/master/docs/awesomestats.gif "Demo Site")](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 `cardType` parameter.
| Card | Preview |
| :---------------: | :----------------------------------------------------------------------------------------------------------------: |
| `level (default)` | ![level](https://awesome-github-stats.azurewebsites.net/user-stats/carloscds) |
| `level-alternate` | ![level-alternate](https://awesome-github-stats.azurewebsites.net/user-stats/brunobritodev?cardType=level-alternate) |
| `github` | ![github](https://awesome-github-stats.azurewebsites.net/user-stats/DenverCoder1?cardType=github) |
| `octocat` | ![octocat](https://awesome-github-stats.azurewebsites.net/user-stats/eduardopires?cardType=octocat) |## π¨ Themes
To enable a theme, append `&theme=` followed by the theme name to the end of the source url:
```md
[![GitHub Streak](https://awesome-github-stats.azurewebsites.net/user-stats/brunobritodev&theme=dark)](https://git.io/awesome-stats-card)
```| Theme | Preview |
| :----------: | :-----------------------------------------------------------------------------------------------------: |
| `default` | ![default](https://awesome-github-stats.azurewebsites.net/user-stats/ralmsdeveloper) |
| `dark` | ![dark](https://awesome-github-stats.azurewebsites.net/user-stats/eduardopires?theme=dark) |
| `tokyonight` | ![highcontrast](https://awesome-github-stats.azurewebsites.net/user-stats/brunobritodev?theme=tokyonight) |
| More themes! | **π¨ [See a list of all available themes](./docs/themes/README.md)** |> If you have come up with a new theme you'd like to share with others, open an issue to add it!
## π§ Options
The `user` field is part of url `user-stats/`, which is required. All other fields are optional.
If the `theme` parameter is specified, any color customizations specified will be applied on top of the theme, overriding the theme's values.
| Parameter | Details | Example |
| :----------: | :--------------------------------------------------: | :---------------------------------------------------: |
| `theme` | The theme to apply (Default: `default`) | `dark`, `radical`, etc. [π¨β](./docs/themes/README.md) |
| `show_icons` | Dont shown icons at left of labels (Default: `true`) | `true` or `false` |
| `preferLogin`| Use github login instead of name (Default: `false`) | `true` or `false` |
| `background` | Background color | **hex code** (without `#`) or **css color** |
| `border` | Border color | **hex code** (without `#`) or **css color** |
| `text` | Color of the text | **hex code** (without `#`) or **css color** |
| `title` | Color of the title at top | **hex code** (without `#`) or **css color** |
| `icon` | Color of the icons | **hex code** (without `#`) or **css color** |
| `ring` | Color of the ring around the level | **hex code** (without `#`) or **css color** |### Example
```md
[![My Awesome Custom Stats](https://awesome-github-stats.azurewebsites.net/user-stats/brunobritodev?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.
Contributions include:
* Public commits
* Private commits
* Commits in your repositories
* Commits made in another repositories
* Pull requests to your repositories
* Pull requests to another repositories
* Issues
* Direct stars - Stars from your repositories
* Indirect Stars - Stars from repo's you have made some contribution
* Repositories you have createdIf stats not showing look at [Learn more about what is considered a contribution](https://docs.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile).
> Note: You may need to wait up to 24 hours for new contributions to show up ([Learn how contributions are counted](https://docs.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile))
> 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/brunobritodev/rankThe magicπ begins from these endpoints!
## π€ Contributing
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.
## π€ Motivations
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
#### Requirements
- [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0)
### Authorization
To get the GitHub API to run locally you will need to provide a token.
1. Go to
2. Click **"Generate new token"**
3. Add a note (ex. **"GitHub Pat"**), then scroll to the bottom and click **"Generate token"**
4. **Copy** the token to your clipboard
5. **Go to** file `appsettings.json` in the `src/AwesomeGithubStats.Api` directory and add your PAT at `PATS: [...]` with **your token**```json
"PATS": [
"your_pat_here"
]
```### Running the tests
Before you can run tests, you have to add your PAT in `appsettings.json` at `tests/Tests`. Just how you have done above.
```bash
dotnet test
```## π Special thanks
Special thanks for [github-readme-streak-stats](https://github.com/DenverCoder1/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](https://github.com/sindresorhus) to increase the difficult to find a magical number to create Levels. The levels are based in his contributions.
----
## πββοΈ Supportπ If you like this project, give it a β and share it with friends!
---
Made .NET 6 β€οΈ