Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 3.4 KB

github-readme-stats-deployment.md

File metadata and controls

98 lines (75 loc) · 3.4 KB

GitHub README Stats - Enterprise Deployment

🚀 Deployment Information

Vercel Domain

https://github-readme-stats-drab-chi-75.vercel.app

Personal Access Token (PAT_1)

Your GitHub Personal Access Token (Classic)
Scopes: repo, user, read:org, read:project

⚠️ Note: Store your actual PAT securely in Vercel environment variables as PAT_1

📊 What We Accomplished

1. Fixed Deployment Issues

  • ✅ Updated vercel.json redirect to point to your fork instead of original repo
  • ✅ Configured Vercel environment variables with GitHub PAT
  • ✅ Enabled private repository access

2. Enhanced Data Access

  • ✅ Modified GraphQL queries to include organization repositories
  • ✅ Updated ownerAffiliations in stats.js and top-languages.js
  • ✅ Added support for OWNER, COLLABORATOR, and ORGANIZATION_MEMBER repos

3. Completely Redesigned Ranking Algorithm

Original Algorithm Issues:

  • Heavily weighted towards popularity (stars: 33%, followers: 8%)
  • Penalized enterprise developers using squash merges
  • Your ranking: B- (65.75 percentile)

New Enterprise-Focused Algorithm:

  • 100% collaboration-based ranking
  • Reviews: 44% - Code quality engagement
  • PRs: 33% - Feature delivery
  • Collaboration: 22% - Combined team activity
  • Removed: Stars, followers, issues, commits (irrelevant for corporate dev)

Result: Your ranking improved to A (14.29 percentile) - 78.3% better!

🎯 Algorithm Benefits

Perfect for Corporate Development:

  • ✅ Squash merge friendly - no commit count penalty
  • ✅ Team collaboration focused - rewards reviews and PRs
  • ✅ Quality over popularity - no social media metrics
  • ✅ Enterprise relevant - reflects professional development

Your Profile Strengths:

  • 230 Reviews → Perfect score (115x above median)
  • 76 PRs → Strong delivery (1.5x above median)
  • 306 Total Activities → Excellent collaboration (3x above median)

📝 Usage

Basic Stats Card:

![Your GitHub Stats](https://github-readme-stats-drab-chi-75.vercel.app/api?username=YOUR_USERNAME&show_icons=true&theme=default)

Top Languages Card:

![Top Languages](https://github-readme-stats-drab-chi-75.vercel.app/api/top-langs/?username=YOUR_USERNAME&layout=compact)

With Private Repos (requires your PAT):

![Your GitHub Stats](https://github-readme-stats-drab-chi-75.vercel.app/api?username=YOUR_USERNAME&show_icons=true&include_all_commits=true&count_private=true)

🔧 Technical Changes

Files Modified:

  1. vercel.json - Fixed redirect destination
  2. src/fetchers/stats.js - Added organization repository support
  3. src/fetchers/top-languages.js - Added organization repository support
  4. src/calculateRank.js - Complete enterprise algorithm rewrite

Environment Variables:

  • PAT_1: Your GitHub Personal Access Token (Classic)

📈 Results Summary

Metric Before After Improvement
Ranking B- (65.75%) A (14.29%) 78.3% better
Algorithm Focus Popularity Collaboration 100% relevant
Private Repo Access ❌ ✅ Full access
Organization Data ❌ ✅ Included

Created: September 14, 2025
Repository: https://github.com/Falenos/github-readme-stats
Status: ✅ Deployed and Active