I got tired of grinding LeetCode alone and was surprised no one had built a proper multiplayer version of it. So I created CodePvP, a web app that drops up to 8 players into a room, serves the same random problem to everyone at once and scores live.
Stack: NestJS + Socket.IO, match state in-memory for now (Redis if it ever scales), user code wrapped in a per-language test harness and run through Judge0 with an LRU cache on (language, source). Next 16, Monaco, shadcn. ~150 problems in JS and Python (I'm adding ~10 every week).
I've been lurking on HN for a while now and most of how I think about shipping came from reading these threads, so any feedback/suggestion/roast is very welcomed.
felibuscaglia•1h ago
Weighted score: correctness 40%, runtime 25%, memory 15%, submission speed 12%, code length 8%.
Stack: NestJS + Socket.IO, match state in-memory for now (Redis if it ever scales), user code wrapped in a per-language test harness and run through Judge0 with an LRU cache on (language, source). Next 16, Monaco, shadcn. ~150 problems in JS and Python (I'm adding ~10 every week).
I've been lurking on HN for a while now and most of how I think about shipping came from reading these threads, so any feedback/suggestion/roast is very welcomed.
Source code: https://github.com/felibuscaglia/code-pvp
Cut from v1 but on the roadmap: a 2v2 teams mode where you pair up on voice and race another duo. Wanted to validate the basic idea first.