You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Implement real-time profile statistics from GitHub API #68
Replace mock profile statistics (contributions, pull requests, issues closed, stars) with real-time data fetched from GitHub API. Currently, the profile page shows hardcoded numbers that don't reflect actual user activity.
Problem Statement
The profile page displays mock statistics (149 contributions, 86 PRs, 53 issues closed, 128 stars) that are the same for all users. This provides no real value and misleads users about their actual GitHub activity. Users expect to see their genuine contribution metrics.
Proposed Solution
Backend:
Create new endpoint: GET /api/v1/github/stats/{username}
Total stars received (sum stars from user's repos)
Cache results for 1 hour to avoid rate limits
Return structured JSON with all stats
Frontend:
Update profile page to fetch from new endpoint
Replace mock data in mockData.stats object
Add loading skeleton while fetching
Handle errors gracefully (show "Unable to load stats")
API Endpoints to use:
GET https://api.github.com/users/{username}/repos
GET https://api.github.com/search/issues?q=author:{username}+type:pr
GET https://api.github.com/search/issues?q=author:{username}+type:issue+is:closed
Component
Frontend
Alternative Solutions
No response
Additional Context
Current mock data location: frontend/app/profile/page.tsx line ~70
@AvishkarPatil I have created a pull request after implementing this. Kindly review it and if everything is fine please merge it under SWOC contribution.
Activity
github-actions commentedon Jan 3, 2026
Thank you for creating this issue! 🎉
This issue is part of Social Winter of Code 2026.
Next Steps:
Happy contributing! 🚀
SampurnaNiyogi commentedon Jan 4, 2026
Hi! I’d like to work on this issue. Could you please assign it to me?
AvishkarPatil commentedon Jan 4, 2026
Hey @SampurnaNiyogi, you can work on this, refer github api docs for this .
SampurnaNiyogi commentedon Jan 5, 2026
@AvishkarPatil I have created a pull request after implementing this. Kindly review it and if everything is fine please merge it under SWOC contribution.