Generate beautiful, customizable GitHub stats cards for your profile README
Live Demo • Features • Usage • Themes • Self-Hosting
- 📊 Comprehensive Stats - Commits, PRs, issues, stars, and more
- 🔥 Streak Tracking - Current and longest contribution streaks with accurate consecutive day detection
- 📈 Contribution Graph - Visual representation of your activity with monthly breakdowns
- 🗣️ Top Languages - Most used programming languages with visual percentages
- 🎨 Multiple Themes - 8 beautiful themes to choose from (GitHub Dark, GitHub Light, Radical, Tokyo Night, Dracula, Synthwave, Ocean, Neo Green)
- 📥 Download Options - Export your stats card as SVG, PNG, or JPG directly from the UI
- ⚡ Fast & Optimized - Edge runtime with intelligent caching for quick loads
- 📱 Responsive Design - Looks great on any device with mobile-friendly interface
- 🎨 Theme Previews - Visual theme selectors showing actual theme colors
Add this to your GitHub profile README:
<p align="center">
<img src="https://yourinsights.vercel.app/api/insight?username=YOUR_USERNAME" alt="GitHub Insights" />
</p>Replace YOUR_USERNAME with your GitHub username.
| Parameter | Default | Description |
|---|---|---|
username |
Required | Your GitHub username |
theme |
github_dark |
Card theme |
profile |
true |
Show name & username |
header |
true |
Show monthly contribution chart |
summary |
true |
Show summary info (contributions, repos, join date) |
stats |
true |
Show GitHub stats (commits, PRs, issues, stars) |
languages |
true |
Show top programming languages |
streak |
true |
Show streak statistics |
graph |
true |
Show contribution graph |
<p align="center">
<img src="https://yourinsights.vercel.app/api/insight?username=YOUR_USERNAME&theme=radical&graph=true&languages=true&streak=true&stats=true&header=true&summary=true&profile=true" alt="GitHub Insights" />
</p>| Theme | Preview |
|---|---|
github_dark |
|
github_light |
|
radical |
|
tokyonight |
|
dracula |
|
synthwave |
|
ocean |
|
neo_green |
- Node.js 20+
- GitHub Personal Access Token
-
Clone the repository
git clone https://github.com/nishatrhythm/GitHub-Insights.git cd GitHub-Insights -
Install dependencies
npm install
-
Create environment file
cp .env.example .env.local
-
Add your GitHub token
Create a Personal Access Token with the following scopes:
repo(Full control of private repositories)read:user(Read all user profile data)
Add it to
.env.local:GITHUB_TOKEN=your_token_here -
Run the development server
npm run dev
Important: Add the GITHUB_TOKEN environment variable in your Vercel project settings.
- Framework: Next.js 16 with App Router
- Runtime: Edge Runtime for optimal performance
- Language: TypeScript for type safety
- Styling: Inline SVG with dynamic theming
- Font: Inter for consistent cross-platform rendering
- API: GitHub GraphQL API v4
- Image Export: Canvas API for PNG/JPG conversion
- Deployment: Vercel with automatic edge caching
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Free and open source
Made with ❤️ by nishatrhythm and other contributors