https://github.com/putuwaw/github-stats
GitHub Statistic Generator using Flask, GitHub API, and Vercel
https://github.com/putuwaw/github-stats
collaborate flask github-api vercel
Last synced: 28 days ago
JSON representation
GitHub Statistic Generator using Flask, GitHub API, and Vercel
- Host: GitHub
- URL: https://github.com/putuwaw/github-stats
- Owner: putuwaw
- License: mit
- Created: 2023-07-12T07:30:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T14:31:29.000Z (almost 2 years ago)
- Last Synced: 2024-04-22T16:02:53.836Z (almost 2 years ago)
- Topics: collaborate, flask, github-api, vercel
- Language: Python
- Homepage: https://github-stats-putuwaw.vercel.app
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# github-stats



GitHub Stats is a simple, free, and open-source GitHub profile statistics generator. This project was built using Python programming language with web framework Flask in accordance with GitHub API documentation. This project was inspired by [github-readme-stats](anuraghazra/github-readme-stats).
## Features 💡
Using Github Stats, you can:
- [x] Create and customize badge for your GitHub profile.
- [x] Use GitHub REST API to get the data.
- [x] Use GitHub GraphQL API to get the data.
## Usage 👨💻
Create your own badge by change the `USERNAME` and `THEME` in the URL below. Curently there are 2 themes available: `dark` and `light`.
```url
https://github-stats-putuwaw.vercel.app/api?username=USERNAME&theme=THEME
```
> [!NOTE]
> You can also use the GraphQL API by using `/api/graphql` endpoint instead of REST API on `/api` endpoint.
Examples:
`Dark theme:`
[](https://github-stats-putuwaw.vercel.app/api?username=putuwaw&theme=dark)
`Light theme:`
[](https://github-stats-putuwaw.vercel.app/api?username=putuwaw&theme=dark)
## Prerequisites 📋
- Python 3.10 or higher
## Installation 🛠
- Clone the repository:
```bash
git clone https://github.com/putuwaw/github-stats.git
```
- Create a virtual environment and activate it:
```bash
python -m venv venv
source venv/bin/activate
```
- Install the dependencies:
```bash
make py-install
```
- Create .env file and set the environment variables for GitHub API:
```bash
make env
```
- Run the application:
```bash
make run
```
## Contributing 🤝
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.
## License 📝
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.