A highly customizable GitHub & LeetCode Git Stats generator
Choose which platform you want
Fetching your GitHub stats...
Copy and paste the markdown code below to your GitHub profile README:
Replace YOUR_USERNAME with your actual username for each platform
Everything you need to know about this project
Fetches live GitHub user data using the GitHub GraphQL API and LeetCode stats via public API
Generate SVG images with custom color schemes, configurations, and animated elements
Displays commits, language usage, repositories, stars for GitHub and problems solved, ranking for LeetCode
Uses the same ranking algorithm as anuraghazra/github-readme-stats for standardized results
Optimized SVG generation for quick loading
Support for various color themes and styles for both platforms
Since the GitHub API only allows 5k requests per hour, the public API provided by this repo could possibly hit the rate limiter. You can host your own instance of this repo on Vercel to avoid rate limiting issues. LeetCode stats use public API with no rate limits.
Once deployed, Vercel will provide you with a domain (e.g., your-project.vercel.app)
You can customize the appearance of both GitHub and LeetCode SVGs by modifying query parameters of the config.js file.
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Understanding how GitHub user ranks are calculated
The ranking algorithm uses a weighted combination of various GitHub metrics to calculate a user's percentile rank. Each metric is normalized using statistical functions and then weighted according to its importance.
Weight: 2
Median: 250 (or 1000 if all commits included)
Weight: 3
Median: 50
Weight: 4
Median: 50
Weight: 1
Median: 25
Weight: 1
Median: 2
Weight: 1
Median: 10
Weight: 1
Median: 3
Enter your GitHub stats to see what rank you would get:
The ranking calculation uses two key statistical functions:
Used for: Commits, Pull Requests, Issues, and Reviews
Used for: Stars, Followers, and Repositories
Based on percentile thresholds: