The Ultimate Platform for Software Engineers
Your code is your master. Serve it well.
Master algorithms, system design, and interview prep. Join the ultimate all-in-one coding academy and real-time arena to prove your engineering excellence.
Master your skills with a comprehensive platform designed for growth. Access over 11,000+ coding problems, explore our Academy supporting 80 languages, and follow structured DSA roadmaps. Prepare for interviews with 460+ company-specific questions, dive into System Design with detailed concepts and a fully-featured AI-Powered Workspace, and more.
๐
Officially Recognized & Featured by Judge0
Integrated with the industry-leading open-source code execution engine.
- Frontend UI: Next.js 15+ (App Router), React, TailwindCSS, Zustand, Monaco Editor, Tldraw Infinite Whiteboard
- REST API Gateway: Hono (running on Bun), Awilix for Dependency Injection (DI)
- Multiplayer Match Engine: Golang (Fiber WebSockets, Channels, and native Go routines)
- Background Queues: BullMQ (Node/Bun workers)
- Relational Database: PostgreSQL (Neon serverless PostgreSQL, mapped via Drizzle ORM)
- Document Database: MongoDB (Atlas Cloud, mapped via Mongoose for problems, test cases, and logs)
- Memory Store & Pub/Sub: Redis / Valkey (Aiven hosted, powers queues, Go session locks, and worker communications)
- Authentication: Clerk Identity Management (OAuth, Edge Route cryptographic JWT checks)
- Sandboxed Code Execution: Judge0 (Dockerized sandbox) & Wandbox API (Alternative remote compilation)
- AI Gateway Routing: Google Gemini,Gpt,Deepseek, Groq Cloud and more (centralized proxy gateway routing, using One API Gateway)
SlaveCode is more than just a code submission site โ it is a complete competitive programmer's ecosystem. Here is every feature available from the platform navigation, in order:
๐ Academy โ slavecode.codes/academy/tracks
Master programming languages through structured, exercise-driven learning tracks. The Academy hosts 82+ language tracks spanning everything from beginner-friendly Gleam, Go, and Haskell to advanced functional and compiled languages. Each track is tagged by paradigm (Compiled, Functional, Declarative, Imperative, etc.) and contains hundreds of progressive exercises. Every language has a properly structured track roadmap with detailed concepts and exercises โ from "Hello World" to advanced algorithm implementations.
๐บ๏ธ Roadmap โ slavecode.codes/roadmap
Stop guessing what to learn next. The interactive DSA Roadmap guides you through every concept of Data Structures and Algorithms in a highly structured, logical sequence. Navigate through clearly defined subtopics from basic Arrays to complex Trees and Tries, with each topic paired with targeted practice problems. Track your true mastery as you conquer every node on the path โ from basics through Booleans, Strings, If-Else Statements, to Numbers and beyond.
๐ป Problems โ slavecode.codes/problems
A curated bank of algorithmic and language-specific problems ranging from introductory exercises to advanced competitive programming challenges. Each problem is paired with hidden test cases evaluated by Judge0 sandboxes, with automatic AI judging fallbacks for edge cases. Track your solutions, language performance, and solution votes. Problems are filterable by difficulty, category, company, and programming language.
๐๏ธ System Design โ slavecode.codes/systemdesign
Master system design through structured, in-depth learning tracks covering 56 essential topics designed for deliberate practice. Topics span core infrastructure concepts including: Databases, Load Balancers, Caches, CDNs, Microservices, Message Queues, API Gateways, and Blob Storage. Each topic is paired with an interactive whiteboard workspace (powered by Tldraw) where you can sketch architecture diagrams, generate visual system maps from code, and chat with an AI assistant to deepen your understanding.
๐ข Companies โ slavecode.codes/companies
Explore 460+ top tech company profiles including Google, Meta, Amazon, Apple, Microsoft, Oracle, Netflix, Uber, Airbnb, Adobe, TCS, Infosys, and many more. Each company profile surfaces real interview questions that you can solve directly in the built-in code editor while tracking your solve history and success stats per company over time.
โ๏ธ Arena โ slavecode.codes/arena
The multiplayer competitive battleground. Host or join a coding match in real time โ select problems from the extensive catalog to host a custom coding match, or enter a pin code to join an active match. Compete against up to 50 challengers simultaneously with a live leaderboard. Arena Points and global rankings are awarded based on your final rank and execution speed. The real-time match state is powered by a dedicated Golang WebSocket server using Redis Pub/Sub for instant leaderboard broadcasting.
โก Compilers โ slavecode.codes/compilers
A high-performance multi-language compiler playground where you can write and execute code scripts instantly in a distraction-free environment. Features include a Monaco code editor with syntax highlighting, a built-in Excalidraw scratchpad for sketching, a countdown timer, theme switching, and real-time output panels. Supports all major programming languages through the Judge0 sandboxed execution engine.
๐ Contests โ slavecode.codes/contests
A unified global contest calendar that aggregates upcoming coding competitions from across the web into a single dashboard. Tracks events from LeetCode Weekly Contests, Codeforces Rounds, AtCoder Beginner Contests, CodeChef Starters, and more โ with live countdown timers, contest durations, and direct registration links. Never miss a competition again.
The codebase is organized into key folders for modular development:
| Folder | Name | Tech Stack | Role & Responsibility |
|---|---|---|---|
/api |
The Brain | Bun, Hono, Drizzle, Postgres, Mongo, Redis | Central REST API: Coordinates authentication via Clerk, manages problem banks, serves code execution logic, routes AI diagram queries, processes solution submissions, and updates Postgres database stats. |
/arena |
The Heart | Go, Fiber, Redis | Real-time Engine: A high-concurrency WebSocket server that manages lobbies, processes real-time leaderboard scores, matches competitive programming battle players, and handles Pub/Sub events. |
/web |
The Face | Next.js 15+, Zustand | Frontend UI: Responsive React web client hosting the coding interface (Monaco Editor), System Design whiteboard editor (Tldraw), multiplayer dashboard panels, and the Academy portal. |
/admin |
The Operator | Next.js, TailwindCSS | Admin Dashboard: Portal interface enabling managers to create contest problems, manage categories taxonomy, audit AI verdicts feedback logs, and moderate user profiles and more. |
/driver |
The Bridge | Java, C++, C, Go, Rust... | Compiler Adapter: Wraps student and competitor code into language-specific compiler templates and execution packages before dispatching them safely to the Judge0 sandbox. |
/cloud |
The Orchestrator | TypeScript | Cloud Controller: VM provisioner handling scaling, health inspection, and start/stop automation scripts of remote sandbox servers running on Azure. |
/infra |
The Blueprint | Docker | Container Infrastructure: Production-ready docker-compose files, Dockerfiles, and environment config recipes to containerize and deploy microservices. |
/envexamples |
The Vault | Config | Env Templates: Holds standard environment templates (.env.example) to ensure consistent configuration keys and values across the REST API, Frontend, and WebSocket nodes. |
/docs |
The Source | Markdown, PNG | Technical Documents: Complete reference manual containing project setup workflows, UML sequence/activity/class/usecase diagrams, database ERDs, and caching key architectures. |
/testings |
The Guard | TS/JS | Quality Checks: System integration scripts to verify correct network handshakes, database client pools connection status, and basic endpoint accessibility. |
/scratch |
The Scratchpad | Markdown | Developer Sandbox: Area hosting temporary local mock test cases, draft notes, configuration testing files, and scratch scripts for developer experiments. |
/scripts |
The Tools | Bash / Node | Automation Utilities: Houses bash shell tools and Node modules to automate database seeding, execute Drizzle migrations, and maintain Docker networks. |
Detailed behavioral, structural, and state-machine guides are located on the root directory. Select a document below to inspect its blueprints:
- System Architecture: Details the communication flows between the Next.js Frontend, Node (Hono) REST API, Go WebSockets, Redis, and databases.
- Deployment Architecture: Maps out Docker configurations, VM deployments across Vercel, GCP, Azure, and managed database clusters (PostgreSQL, MongoDB, Redis).
- Component Wiring: Explains the internal structure of the Hono Node API (controllers, services, databases, queues).
- Database Schema ERD: Full Entity-Relationship diagram showing Drizzle SQL schemas and Mongoose collection structures.
- Class Diagram: Deep OOP mapping of services, models, repositories, and helper methods.
- Redis Queue & Pub/Sub Architecture: Maps out Redis keys, Lua script locks, and worker communications.
- Sequence Flow Diagram: Illustrates the asynchronous BullMQ compilation pipelines and WebSocket sync events.
- Activity & Fallback Logic: Charts the logic for execution fallbacks, AI judging overrides, and academy locking schedules.
- State Machine Lifecycles: Maps match status (
WAITING->FINISHED) and submission status transitions. - Platform Access Use Cases: Profiles permissions for guest visitors and authenticated coders.
Deep-dive architectural guides and specs for specific subcomponents:
- Submissions Engine Guide: Details submissions, evaluators, and results caching.
- Problems Bank Spec: Documents problem definitions, taxonomy parsing, and test assets.
- Multiplayer WebSocket Rooms API: Manages lobby creation and match status updates.
- AI Copilot & Diagram Chat: Explains One API Gateway LLM routing.
- Academy Learning & Tracks: Covers curriculum and locking mechanics.
- Background Jobs & Workers: Explains BullMQ queues for submissions, contest sync, and cleanup.
- User Accounts & Statistics: Manages identity metadata and stats aggregation.
- WebSocket Match Hub: Covers connection handlers and room concurrency.
- Match State Handlers: Manages scoring metrics, submission ticks, and player state updates.
- Go Infrastructure Packages: Explains Redis Lua script bindings and database connectors.
- Page Route Index: Details the Next.js page layout hierarchy.
- Workspace State Hook: Focuses on editor panels and compiler sync.
- System Design Canvas Hook: Handles whiteboard and diagram code sync.
- Multiplayer Match Hooks: Syncs leaderboards and room sockets.
- PostgreSQL Tables Schema: Relational schema for users, stats, follows, and solved histories.
- MongoDB Problems Schema: Detailed document structure for test cases and problem payloads.
- MongoDB Submissions Schema: Mappings for submission metrics and AI verdict logs.
- MongoDB Arena Matches Schema: Structures for multiplayer scores and histories.
All local and Docker configuration steps, environment credentials, port maps, and automated health checks are fully detailed in the core Setup & Verification Guide (setup.md).
