CodeBrawl
Builder &Breaker Labs
The problem CodeBrawl solves
This project is a gamified coding arena with two tracks:
Builder Labs: fix broken code and ship it
UI challenges use a live preview / DOM assertions
API/logic challenges run tests in a Web Worker
built around a sticker-style arcade UI, animated test reveal, and progressive hints
Breaker Labs: spot the flaw
click the buggy line(s) in sample code
optionally patch it for bonus
includes security and logic bug types like XSS, SQLi, off-by-one, auth issues
What it delivers
A demo-ready game loop:
Hub with XP, progress, and track cards
Builder challenge with editor + test run
Hint progression if stuck
Breaker flaw spotting with reveal/patch bonus
Challenges we ran into
Challenges we ran into
Key hurdles while building it included:
preserving the exact arcade “sticker” design from Arena.jsx while converting it into a real Next.js + Tailwind app
wiring safe logic evaluation with a Web Worker instead of new Function() so API tests run securely
building the hint system so it unlocks progressively and only appears when the player is actually stuck
integrating Monaco and Sandpack together with the same sticker window chrome
making the custom cursor work everywhere except inside Monaco and respecting prefers-reduced-motion
Technologies used