Skip to content

feat(routes-f): weekly and all-time leaderboard endpoint #539

@davedumto

Description

@davedumto

Overview

Implement app/api/routes-f/leaderboard/weekly/route.ts for time-windowed creator and viewer leaderboards.

Scope

  • GET /api/routes-f/leaderboard/weekly — top creators/viewers for the current week
  • Query params: ?type=earnings|tips_sent|watch_time|new_followers&limit=20&period=weekly|monthly|alltime

Acceptance Criteria

  • earnings leaderboard shows USDC earned (creators only)
  • tips_sent shows top tippers (viewer-facing)
  • Results cached for 10 minutes
  • Each entry includes rank, username, avatar_url, value
  • Route lives exclusively in app/api/routes-f/leaderboard/weekly/

Notes

Standalone — no dependency on other open issues.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programroutes-fStandalone API route in app/api/routes-f/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions