Generate beautiful, customizable GitHub stats cards and 3D contribution profiles for your README
Live Demo • Features • Usage • Insight Cards • 3D Contribution • Self-Hosting
- 📊 Comprehensive Stats - Commits, PRs, issues, stars, and more
- 🔥 Streak Tracking - Current and longest contribution streaks
- 📈 Contribution Graph - 31-day activity line chart card
- 🃏 Standalone Cards -
insight,stats,graph, orstreak - 🧊 Profile 3D Contribution - 3D calendar with radar & languages (
/api/contrib-3d) - 🎨 Card Themes - Multiple themes including Aurora Night and Ember Void
- 🙈 Language Filtering - Hide specific languages from insight cards
- 🌗 Site Theme Toggle - Light, Dark, and System mode
- 📥 Download Options - Export as SVG, PNG, or JPG
- ⚡ Fast & Cached - Smart caching for quick loads
- 📱 Responsive UI - Mobile-friendly generator studio
Insight card:
<p align="center">
<img src="https://github-profiles-insights.vercel.app/api/insight?username=YOUR_USERNAME" alt="GitHub Insights" />
</p>3D contribution profile:
<p align="center">
<img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=green" alt="GitHub 3D Contribution" />
</p>Replace YOUR_USERNAME with your GitHub username.
card |
Description |
|---|---|
insight (default) |
Full analytics card with modular sections |
stats |
Stars, contributions, PRs, issues, contributed-to & rank |
graph |
31-day contribution line chart |
streak |
Total contributions, current streak & longest streak |
| Parameter | Default | Description |
|---|---|---|
username |
Required | Your GitHub username |
card |
insight |
Card type: insight, stats, graph, or streak |
theme |
github_dark |
Card theme |
transparent |
false |
Transparent background (streak card only) |
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 section |
languages |
true |
Show top programming languages |
streak |
true |
Show streak statistics |
graph |
true |
Show contribution graph section |
hide_langs |
(none) | Comma-separated languages to exclude (e.g. HTML,CSS) |
<p align="center">
<img src="https://github-profiles-insights.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><p align="center">
<img src="https://github-profiles-insights.vercel.app/api/insight?username=YOUR_USERNAME&card=stats&theme=tokyonight" alt="GitHub Stats" />
</p><p align="center">
<img src="https://github-profiles-insights.vercel.app/api/insight?username=YOUR_USERNAME&card=graph&theme=github_dark" alt="Contribution Graph" />
</p><p align="center">
<img src="https://github-profiles-insights.vercel.app/api/insight?username=YOUR_USERNAME&card=streak&theme=aurora_night" alt="GitHub Streak" />
</p>Add &transparent=true to the streak card for a transparent background. Example: theme=ember_void&transparent=true.
<p align="center">
<img src="https://github-profiles-insights.vercel.app/api/insight?username=YOUR_USERNAME&theme=github_light&languages=true&hide_langs=HTML,CSS" alt="GitHub Insights" />
</p>| Theme | Preview |
|---|---|
github_dark |
|
github_light |
|
radical |
|
tokyonight |
|
dracula |
|
synthwave |
|
ocean |
|
neo_green |
|
aurora_night |
|
ember_void |
Based on github-profile-3d-contrib by SATO Yoshiyuki.
This endpoint generates a 3D contribution calendar plus radar chart and language pie — the same visual styles as the original Action, served live as SVG from our API (no workflow commit required).
Use it two ways:
- Live embed — point an
<img>at/api/contrib-3d(updates when GitHub data changes; subject to caching). - Studio UI — open the site, choose 3D Contribution, pick a style, then Generate / download SVG·PNG·JPG.
Note
To include private contributions on the calendar, enable Include private contributions on my profile in GitHub → Settings → Public profile → Contributions & Activity.
Self-hosted instances also need a classic PAT with repo + read:user (see Self-Hosting).
https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=green&animate=true
| Parameter | Default | Description |
|---|---|---|
username |
Required | GitHub username |
style |
green |
Visual style (see demos below) |
animate |
true |
Enable growing SVG animations (false for a static file) |
year |
(rolling year) | Optional calendar year, e.g. 2024 (past calendars) |
Generated images match the original Action’s theme set:
style |
Description | Demo file |
|---|---|---|
green |
Classic green contribution blocks | profile-green(-animate).svg |
season |
Northern hemisphere seasonal colors | profile-season(-animate).svg |
south-season |
Southern hemisphere seasonal colors | profile-south-season(-animate).svg |
night-view |
Dark night / city palette | profile-night-view.svg |
night-green |
Dark background with green blocks | profile-night-green.svg |
night-rainbow |
Rainbow contribution blocks | profile-night-rainbow.svg |
gitblock |
Pixel-pattern block style | profile-gitblock.svg |
alberto |
Custom Alberto palette (blues & violet) | profile-alberto.svg |
<p align="center">
<img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=green&animate=true" alt="3D Green" />
</p>Static (no animation):
<img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=green&animate=false" alt="3D Green" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=season&animate=true" alt="3D Season" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=south-season&animate=true" alt="3D South Season" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=night-view" alt="3D Night View" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=night-green" alt="3D Night Green" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=night-rainbow&animate=true" alt="3D Night Rainbow" /><img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=gitblock" alt="3D Git Block" />Custom palette from profile-night-view-settings.json (blues + violet radar).
<img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=alberto&animate=true" alt="3D Alberto" />Same idea as the original project — drop the image into your special username/username profile README:
## Contributions
<p align="center">
<img src="https://github-profiles-insights.vercel.app/api/contrib-3d?username=YOUR_USERNAME&style=green&animate=true" alt="GitHub 3D Contribution" />
</p>Or download an SVG from the studio and commit it under something like ./profile-3d-contrib/profile-green-animate.svg, then reference the local file:
Preview SVGs (from the upstream project) live at:
docs/demo/profile-green-animate.svg
docs/demo/profile-green.svg
docs/demo/profile-season-animate.svg
docs/demo/profile-season.svg
docs/demo/profile-south-season-animate.svg
docs/demo/profile-south-season.svg
docs/demo/profile-night-view.svg
docs/demo/profile-night-green.svg
docs/demo/profile-night-rainbow.svg
docs/demo/profile-gitblock.svg
docs/demo/profile-alberto.svg
3D rendering engine adapted from yoshi389111/github-profile-3d-contrib (MIT).
Original © 2021 SATO Yoshiyuki.
- Node.js 20+
- GitHub Personal Access Token
-
Clone the repository
git clone https://github.com/christianalberto/github-insights.git cd github-insights -
Install dependencies
npm install
-
Create environment file
cp .env.example .env.local
-
Add your GitHub token (classic PAT)
Create a Classic Personal Access Token
(Settings → Developer settings → Personal access tokens → Tokens (classic)→ Generate new token (classic)).Enable these scopes:
Scope Required for repoFull access to private repositories (stars, languages, repo counts, etc.) read:userRead user profile data Without
repo, private repositories are ignored and only public data is returned.Optional but recommended for private contribution activity on calendars/streaks: in GitHub go to
Settings → Public profile → Contributions & Activity and enable
Include private contributions on my profile.Add the token to
.env.local:GITHUB_TOKEN=your_token_here -
Run the development server
npm run dev
Important: In Diploi, open Deployment Page -> Options -> Next.js -> Environment and add the GITHUB_TOKEN environment variable.
Important: Add the GITHUB_TOKEN environment variable in your Vercel project settings.
- Framework: Next.js 16 with App Router
- Runtime: Node.js API routes (3D contrib) + SVG generators
- Language: TypeScript
- 3D engine: d3 + jsdom (ported from github-profile-3d-contrib)
- API: GitHub GraphQL API v4
- Image Export: Canvas API for PNG/JPG conversion
- Deployment: Vercel
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
MIT License. See the LICENSE file for details.
Author / Maintainer: @christianalberto
Copyright holders:
- Christian Alberto — author & maintainer of this fork (standalone cards, 3D contribution, UI)
- NISHAT MAHMUD (@nishatrhythm) — original GitHub Insights
- SATO, Yoshiyuki — github-profile-3d-contrib
GitHub Repository • MIT License • Author: @christianalberto