Skip to content

Case Studies/RankMeTop

RankMeTop

React 19, NodeJS, Express, TypeScript, Postgres, Prisma, Cashfree, Docker

RankMeTop

A leaderboard where money decides the order

RankMeTop is a live public leaderboard where the ranking is bought outright. Every entry is a link, and its position is decided by how much has been paid to put it there. The product had two hard requirements: the ranking had to be fair across buyers paying from different countries, and no payment could ever be lost, doubled or applied twice.

What we built

Two kinds of board. On top-spot boards, taking first place means paying at least $1 more than the current leader. On open boards, you pay any amount above the board's minimum and rank exactly where your total lands. Repeat payments for the same link stack onto its total.

All-time and today. Boards rank by all-time totals, and a "Today" view re-ranks them by what was paid since the start of the day - a fresh race every day without wiping anyone's standing.

One ranking, eight currencies. The ranking is held in USD-equivalent cents, so "one dollar more than the leader" means the same thing to every buyer. What a buyer is actually charged is a separate choice - USD, INR, EUR, GBP, AED, SGD, AUD or CAD - defaulting from their billing country. Exchange rates refresh hourly, with a fallback table if the rate source is ever down.

A live page. A feed of recent activity, a live count of people on the page, and click tracking on every listed link so entrants can see what their position is worth.

An owner console. Revenue at a glance - total, last seven days and a fourteen-day chart - plus boards, entries and the full payment log, with bulk actions and a CSV export of every payment.

GST reporting built in. A monthly GST summary - taxable value, CGST, SGST and zero-rated exports - in INR and by Indian filing month, computed from the tax breakup stored on every paid order.

The decisions that mattered

Rank in one currency, charge in another. Indian-issued cards can't be charged in foreign currencies by the payment gateway, so letting each buyer choose their charge currency - while the ranking stays in USD-equivalent - is what lets buyers in India and abroad compete on one board.

Every payment has exactly one way in. A payment is confirmed by the server re-checking it with the gateway after checkout, and again by a signed webhook for buyers who close the tab mid-payment. Both - and the owner's manual "mark paid" for transfers verified outside the gateway - go through the same idempotent path, so a payment confirmed three times still counts once.

The browser never holds a payment secret. Checkout receives only a short-lived session for that one order. Owner access is checked on every request with a constant-time key comparison.

GST figures that match filing. Domestic payments are always charged in rupees, so their tax figures are exact. Export payments are converted for the report and labelled as approximate, rather than mixed silently into one total.

Under the hood

A React 19 frontend over a Node.js, Express and TypeScript API, with PostgreSQL through Prisma, payments through Cashfree's drop-in checkout with signed webhooks, emailed receipts, and Docker-based deployment to Render.

Outcome

  • Live and taking payments across eight charge currencies.
  • No lost or double-counted payments by construction - every confirmation route converges on one idempotent path.
  • Monthly GST figures ready for filing, straight from the owner console.