Skip to content

[FEAT] Add public leaderboard page — top contributors by streak and commits #259

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Summary

Issue #79 tracks a follower leaderboard. This issue expands it to a global public leaderboard of DevTrack users who have opted in to public visibility.

Expected Behaviour

A /leaderboard page (no auth required) showing:

  • Top 50 users by current streak
  • Top 50 users by total commits (this month)
  • Tabs: 'Streak' | 'Commits' | 'PRs'
  • Each row: avatar, username, score, link to public profile

Implementation Notes

  • Query Supabase: users with is_public = true, join with cached metrics
  • Cache leaderboard data server-side, refresh every hour
  • Add leaderboard_opt_in boolean to user_settings (default false, explicit opt-in)
  • Rate limit the page to prevent scraping

GSSoC Info

  • Difficulty: Advanced — 55 pts
  • Area: Feature / Social

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgssoc26GSSoC 2026 contributionlevel:advancedGSSoC: Advanced difficulty (55 pts)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions