Technology May 03, 2026 · 1 min read

I built a real-time competitive coding platform — Dev-Battle

Solo coding practice gets stale. I wanted something with real stakes — a platform where two developers compete live on the same problem, under the same clock. That's Dev-Battle. How a match works Create or join a lobby Problem is broadcast to both players Write and submit your code S...

DE
DEV Community
by nitish kumar
I built a real-time competitive coding platform — Dev-Battle

Solo coding practice gets stale. I wanted something with real stakes — a platform
where two developers compete live on the same problem, under the same clock.
That's Dev-Battle.

How a match works

  1. Create or join a lobby
  2. Problem is broadcast to both players
  3. Write and submit your code
  4. Sandboxed runner judges the output
  5. AI feedback is shown in the arena
  6. XP and leaderboard rankings update live

Features

  • Real-time rooms — synchronized match state via WebSockets, low-latency updates
  • Sandboxed execution — isolated runners for safe, reproducible judging
  • AI feedback — hints and notes without giving away the answer
  • Progression system — XP, achievements, and a global leaderboard
  • Monorepo architecture — shared types and codegen keep client and server in sync

Stack

Layer Tech
Frontend React + Vite + TypeScript
Backend Node.js + WebSockets + REST
Execution Sandboxed container runner
Database SQL + Drizzle ORM
AI layer Optional AI microservice
Tooling pnpm monorepo + OpenAPI codegen

What's next

Spectator mode, tournament brackets, team modes, and a more polished mobile UI
are all on the roadmap. Contributions and feedback are very welcome!

GitHub | Live Demo

Have questions about the architecture or built something similar? Drop a comment!

DE
Source

This article was originally published by DEV Community and written by nitish kumar.

Read original article on DEV Community
Back to Discover

Reading List