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
- Sandboxed runner judges the output
- AI feedback is shown in the arena
- 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!
Have questions about the architecture or built something similar? Drop a comment!
Top comments (0)