A highly customizable GitHub stats SVG generator
This project generates a visually appealing, highly customizable SVG image displaying GitHub user statistics. It's designed to be embedded in GitHub profiles or other web pages to showcase a user's GitHub activity and contributions.
- Fetches real-time GitHub user data using the GitHub GraphQL API
- Generates a customizable SVG image with user stats, displaying various metrics including commits, language usage, and many more
- Supports custom color schemes, configurations, and animated elements
- For ranking and language usage calculation, this repo uses the same algorithm as arguably the most famous README card repo on GitHub, anuraghazra/github-readme-stats, to maintain consistency with the same standard.
Important
This project requires a GitHub Personal Access Token (PAT) to access private repositories. Refer to the Manual Deployment section below for how you can get the PAT.
Manual Deployment
- Fork this repository to your GitHub account
- Create a Personal Access Token (PAT)
- Set the token name (e.g., "stats-svg")
- Select scopes:
repo
anduser
- Copy the generated token (you won't see it again so save it!)
- Visit Vercel
- Sign up/Log in with your GitHub account
- From your Vercel dashboard:
- Click
Add New...
→Project
- Select the forked repository
- Click
Import
- Click
- In the project configuration screen:
- Expand the
Environment Variables
section - Add a new variable:
- Name:
GITHUB_TOKEN
- Value: Your GitHub PAT from step 1
- Name:
- Expand the
- Click
Deploy
- Once deployed, Vercel will provide you with a domain (e.g.,
your-project.vercel.app
) - You can use your instance by replacing the domain in the API URL:
https://your-project.vercel.app/api/github-status?username=YOUR_GITHUB_USERNAME
- For issues, check Vercel's deployment logs or open an issue in this repository
You can customize the appearance of the SVG by modifying the config.js
file. This includes changing colors, dimensions, and other visual aspects of the generated image. If you want to modify the SVG code, you can do so in the /src/card/renderStats.js
file.
Contributions are welcome! Please feel free to submit a Pull Request and open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy showcasing your GitHub stats in cyberpunk style! 🚀
#Cyberpunk2077 #Cyberpunk:Edgerunners