case studies  /  leeter

daily 12 pm boardsthat don't miss.

how we built leeter.site so students across engineering colleges can link their leetcode handle once and compete on live daily leaderboards.

role
co-creator & full-stack
where
leeter.site
stack
react, node.js, mongodb, cron
live on
leeter.site ↗   github ↗

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.

leeter.site desktop home screen
leeter.site desktop signup and one-handle locking
leeter.site desktop college leaderboard
leeter today: landing page, college selection & permanent handle lock, and the campus leaderboard directory. tap one to look closer.

constraints

rate limitsfetching every user live on page load hammers upstream graphql endpoints and gets ips throttled fast.
atomic boardif half a college updates at 12:00 and the other half fails mid-batch, rankings become unfair until tomorrow.
handle hoppingstudents will link a top-1% stranger's handle as a joke if handle swapping is left wide open.
zero frictionreads have to be instant (<100ms) when everyone opens the board right after 12 pm ist.

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.

when upstream throttles mid-batch, the worker backs off and retries failed handles before swapping the college rank order.

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:

one paced noon sync powers both instant college-wide leaderboards and per-student streak & difficulty breakdowns.

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.