Skip to content
case file #007

2025 · Author

EliteCode & AlgoRank

A competitive-programming platform — problems, contests, an editor and a leaderboard — and the judge that runs the submissions.

Shipped

Problem

why this exists

Run untrusted code from strangers, in four languages, fairly — and keep a leaderboard honest.

Architecture

napkin sketch, cleaned up
  1. Next.js appproblems · contests
  2. Supabaseauth · Postgres
  3. JudgeGo
  4. Docker runnersC++ · Go · Java · Python

A Next.js platform with auth on Supabase/PostgreSQL. Submissions run in per-language Docker images, each with a test runner written in that language.

Technical decisions

and the trade-offs
  • A runner per language

    Each language gets its own image and a test runner written in that language, so results don't depend on a translation layer.

Key engineering challenges

the bruises
  1. 1

    Isolation

    Every submission runs in its own container.

Results

  • ✔ Problems, contests, an editor, a leaderboard and auth

Learnings

  • ✎ The judge is the product; the website is the queue in front of it.