# GitHub Stats API
> Fast GitHub Stats Graph - Generate beautiful, real-time GitHub stats cards, badges, and contribution graphs for your README files.
- URL: https://pphat.me/projects/github-stats
- Status: completed
- Tags: GitHub Stats, SVG, TypeScript, Express.js, Node.js
- Contributors: PPhat DEv
- Updated: 2026-04-28
## Project
# ✨ **About Project**
GitHub Stats is a high-performance API service that generates beautiful, customizable GitHub statistics cards, badges, and contribution graphs.
Built for developers who want to showcase their GitHub activity in README files, portfolios, and documentation.
The service features real-time data fetching from GitHub's REST and GraphQL APIs, multi-tier caching with Redis support, and 60+ built-in themes.
With TypeScript, Express.js, and SQLite/Drizzle ORM for visitor tracking, it provides a robust and scalable solution for displaying GitHub statistics.
# 🛠️ **Project Tech Stack**
- **Core:**
- Node.js `v18+`
- TypeScript `v5`
- Express.js
- **Data & Caching:**
- GitHub REST API
- GitHub GraphQL API
- Redis (optional)
- SQLite
- Drizzle ORM
- **Rendering & Export:**
- SVG Generation
- WebP, PNG, GIF Export
- Server-side Rendering
- **Development & Deployment:**
- PM2 Cluster Mode
- Express Rate Limiting
- CORS Support
# 🌈 **Project Features**
- **Stats Cards**
- User statistics with customizable themes
- Avatar modes (none, avatar, radar)
- Custom titles and border styles
- 60+ built-in themes
- **Language Cards**
- Top programming languages
- Pie chart visualization
- Detailed language statistics
- **Contribution Graphs**
- Activity heatmaps by year or last 365 days
- Multiple animation modes (glow, wave, pulse)
- Size presets (small, medium, large)
- Multiple export formats (SVG, GIF, WebP, PNG)
- **Badges System**
- User badges (visitors, followers, repos, stars, etc.)
- Project badges (stars, forks, issues, PRs, etc.)
- Customizable themes and colors
- Frame and icon toggle options
- **Icons Library**
- Reusable SVG icons
- Color customization
- Glow effects
- Interactive demo gallery
## Related
- [All pages](https://pphat.me/llms.txt): Index of pphat.me
- [About the author](https://pphat.me/about/llms.txt)