overview
in almost every indian engineering college, hundreds of students grind leetcode simultaneously without knowing who two rooms down is on a 40-day streak. people tried google sheets and discord bots, and both died within two weeks.
we built leeter (leeter.site) to make campus rankings automatic: pick your college, create an account, lock your leetcode handle once, and watch the board refresh every day at 12:00 pm ist.



constraints
why 12:00 pm ist instead of live fetches
early on, it's tempting to fetch a user's leetcode stats whenever someone views a college page. that works for ten users and falls apart at two hundred. instead, all reads hit pre-computed snapshots in database tables, and writes happen in one scheduled daily sync pipeline at 12:00 PM IST.
picking one fixed daily bell turned out to be a product feature, not just a backend optimization. like wordle or a daily reset, students know the exact noon cutoff — which drives a spike of late-morning solves right before the board locks in.
surviving upstream hiccups
upstream profile queries occasionally time out or return a transient `429` mid-run. if the cron worker simply crashed or wrote zeros over a student's profile, their streak and rank would vanish for 24 hours.
handles are processed in small paced batches with jittered retries. a student's cached stats are only updated once a valid payload returns, and college rank positions are recomputed only after the batch finishes — so nobody drops to last place because of a five-second network blip.
one handle, two views
once a student links their leetcode_username, the account locks that handle permanently (`1 user : 1 handle`). from each daily snapshot, the pipeline fans out into two views that students check most:
12:00 pm ist sync
daily snapshot cron worker- input
- locked leetcode handles
college leaderboard
campus rank indexed read- grouped by
- institution & graduation batch
- speed
- instant static-speed query
peer & streak card
streak & delta- tracks
- easy / med / hard + daily streak
- shows
- who climbed past whom since yesterday
outcome
12pm
daily automated ist sync
1:1
locked leetcode handle per user
<100ms
leaderboard read latency
leeter is live at leeter.site, built for students alongside co-builder mukund madhav tiwari. any student can add their college if it isn't listed yet, link their handle in under a minute, and start competing by the next noon sync.
what i'd improve next: adding a lightweight bio-token verification step (putting a short code in your leetcode bio for 30 seconds during signup) so handle ownership is cryptographically proven on top of the one-handle lock.