Discover your coding patterns, earn achievements, and showcase your developer journey
A modern GitHub analytics dashboard that transforms boring stats into an engaging experience. View beautiful visualizations of your contributions, earn achievement badges, level up with XP, get statistical predictions, and battle other developers in head-to-head comparisons!
| Feature | Description |
|---|---|
| ๐ Beautiful Charts | Interactive heatmaps, line charts, pie charts, and velocity graphs |
| ๐ 30+ Badges | Earn achievements across 6 categories with 5 rarity tiers |
| โก XP & Levels | Level up from "Code Newbie" to "GitHub Legend" (100 levels) |
| ๐ฎ Predictions | Statistical forecasts for commits, streaks, and milestones |
| โ๏ธ Battle Mode | Compare stats with up to 4 developers in competition style |
| ๐ Dark/Light Mode | Beautiful themes with smooth transitions |
| ๐ฑ Mobile First | Fully responsive design for all devices |
| ๐ค Export & Share | Download stats as PNG, share via link or social media |
| ๐ No Auth Required | Works with any public GitHub profile |
| โก Fast & Cached | SWR caching for optimal performance |
|
Next.js 16 |
React 19 |
TypeScript |
Tailwind 4 |
shadcn/ui |
|
Recharts |
SWR |
Lucide Icons |
pnpm |
GitHub API |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Next.js Frontend โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ๐ Search โ โ ๐ Dashboard โ โ โ๏ธ Battle Mode โ โ
โ โ (Home Page) โ โ (User Stats) โ โ (Comparisons) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
SWR Data Fetching + Caching
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Core Services โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ๐ Stats โ โ ๐ฎ Gamify โ โ ๐ฎ Predictions โ โ
โ โ Calculator โ โ (XP/Badges) โ โ (Statistical) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโดโโโโโโโโโโ
โ GitHub REST API โ
โ (Public, Cached)โ
โโโโโโโโโโโโโโโโโโโโโ
github_stats_enhanced/
โโโ ๐ฆ package.json # Dependencies & scripts
โโโ src/
โ โโโ app/
โ โ โโโ ๐ layout.tsx # Root layout with theme provider
โ โ โโโ ๐ page.tsx # Home page with search
โ โ โโโ [username]/
โ โ โโโ ๐ page.tsx # User profile dashboard
โ โโโ components/
โ โ โโโ charts/
โ โ โ โโโ ๐
contribution-heatmap.tsx # GitHub-style calendar
โ โ โ โโโ ๐ activity-chart.tsx # Area chart
โ โ โ โโโ ๐ฅง language-chart.tsx # Pie chart
โ โ โ โโโ โฐ productivity-heatmap.tsx # Hours x Days grid
โ โ โ โโโ ๐ velocity-chart.tsx # Trend line chart
โ โ โโโ features/
โ โ โ โโโ ๐ค profile-header.tsx # User info card
โ โ โ โโโ ๐ metric-cards.tsx # Stats grid
โ โ โ โโโ ๐ badge-wall.tsx # Achievement display
โ โ โ โโโ โก level-display.tsx # XP progress
โ โ โ โโโ ๐ฎ predictions-panel.tsx # Forecasts
โ โ โ โโโ โ๏ธ comparison-view.tsx # Battle mode
โ โ โ โโโ ๐ค export-share.tsx # Export/share buttons
โ โ โโโ providers/
โ โ โ โโโ ๐ theme-provider.tsx # Dark/light mode
โ โ โโโ shared/
โ โ โ โโโ ๐จ header.tsx # App header
โ โ โ โโโ ๐ theme-toggle.tsx # Theme switcher
โ โ โโโ ui/ # shadcn components
โ โโโ hooks/
โ โ โโโ ๐ use-github-data.ts # SWR data hook
โ โโโ lib/
โ โ โโโ ๐ github-api.ts # GitHub API client
โ โ โโโ ๐ stats-calculator.ts # Stats computation
โ โ โโโ ๐ฎ gamification.ts # XP, levels, badges
โ โ โโโ ๐ฎ predictions.ts # Statistical forecasts
โ โ โโโ ๐ง utils.ts # Utilities
โ โโโ types/
โ โโโ ๐ github.ts # TypeScript types
โโโ ๐ README.md
- ๐ข Node.js 18+ - Download
- ๐ฆ pnpm -
npm install -g pnpm
# Clone the repository
git clone https://github.com/Infyneis/github-stats-enhanced.git
# Navigate to project
cd github-stats-enhanced
# Install dependencies
pnpm install
# Start development server
pnpm devThen open http://localhost:3000 and enter any GitHub username!
| Metric | Description |
|---|---|
| ๐ป Commits | Total commits with trend indicator |
| ๐ Pull Requests | PRs opened and merged |
| ๐ Issues | Issues created and resolved |
| ๐ Code Reviews | PR reviews conducted |
| โญ Stars Earned | Total stars across repositories |
| ๐ด Forks | Repository forks |
| ๐ฅ Streaks | Current and longest streak |
| ๐ Repositories | Public repository count |
| Chart | Description |
|---|---|
| ๐ฉ Contribution Heatmap | GitHub-style calendar grid |
| ๐ Activity Timeline | Commits, PRs, issues over time |
| ๐ฅง Language Breakdown | Top 10 languages with colors |
| โฐ Productivity Heatmap | When you code (hours ร days) |
| ๐ Velocity Trends | Weekly commit trends with moving average |
| Category | Examples |
|---|---|
| โฐ Productivity | Night Owl, Early Bird, Weekend Warrior |
| ๐ฅ Consistency | Week Streak, Month Streak, 365 Day Streak |
| ๐ฅ Collaboration | Code Reviewer, Team Player, Review Master |
| โญ Impact | First Star, Rising Star, Superstar, Polyglot |
| โก Velocity | Productive Day, Sprint, Speed Demon |
| ๐ฏ Milestone | Beginner, Intermediate, Advanced, Legend |
| Tier | Color | Difficulty |
|---|---|---|
| โช Common | Gray | Easy (60%+ users) |
| ๐ข Uncommon | Green | Moderate (30-60%) |
| ๐ต Rare | Blue | Challenging (10-30%) |
| ๐ฃ Epic | Purple | Very Hard (1-10%) |
| ๐ก Legendary | Gold | Exceptional (<1%) |
| Activity | XP |
|---|---|
| Commit | 10 XP |
| PR Opened | 25 XP |
| PR Merged | 50 XP |
| PR Review | 20 XP |
| Issue Opened | 15 XP |
| Issue Closed | 30 XP |
| Star Received | 5 XP |
| Fork Received | 10 XP |
Level Titles: Code Newbie โ Junior Developer โ Developer โ Senior Developer โ Lead Developer โ Principal Engineer โ Architect โ Code Wizard โ GitHub Master โ GitHub Legend
All predictions use statistical methods (no AI):
| Prediction | Method |
|---|---|
| ๐ 30-Day Forecast | Linear regression on last 90 days |
| ๐ฅ Streak Probability | Survival analysis on historical patterns |
| ๐ฏ Milestone ETAs | Velocity-based extrapolation |
| ๐ Productive Days | Day-of-week probability distribution |
Compare stats with other developers in competition style:
- ๐ฅ Add up to 4 users
- ๐ Head-to-head metric comparisons
- ๐ Competition score calculation
- ๐ฅ Winner highlighting with trophy
- ๐ค Shareable comparison links
| Color | Light Mode | Dark Mode | Usage |
|---|---|---|---|
| ๐ต Primary | #1d4ed8 |
#60a5fa |
Accents, buttons |
| ๐ข Success | #22c55e |
#34d399 |
Positive metrics |
| ๐ก Warning | #f59e0b |
#fbbf24 |
Alerts, priorities |
| ๐ด Danger | #ef4444 |
#f87171 |
Errors, decreasing |
| โซ Background | #ffffff |
#0a0a0a |
Main background |
| โซ Card | #f9fafb |
#18181b |
Card surfaces |
- Glassmorphism cards with backdrop blur
- Gradient accents and backgrounds
- Smooth animations with CSS transitions
- Responsive mobile-first design
| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm start |
Start production server |
pnpm lint |
Run ESLint |
| Type | Rate Limit |
|---|---|
| Unauthenticated | 60 requests/hour |
| Authenticated | 5,000 requests/hour |
- User Profile: 5 minutes
- Repositories: 10 minutes
- Events: 2 minutes
- Computed Stats: Session-based
# Check current rate limit
curl -s https://api.github.com/rate_limit | jq '.rate'
# Wait for reset or use cached data- Verify the username exists on GitHub
- Check for typos
- Ensure the profile is public
- GitHub API may be slow for users with extensive history
- Data is cached after first load
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel# Build
pnpm build
# Start
pnpm startThis project is open source and available for personal/educational use.
- โ๏ธ Next.js - React framework
- ๐จ shadcn/ui - Beautiful components
- ๐จ Tailwind CSS - Utility-first CSS
- ๐ Recharts - Chart library
- ๐ SWR - Data fetching
- ๐ก Lucide - Beautiful icons
- ๐ GitHub API - Data source
Made with ๐ by Samy DJEMILI