StackTrace
Open Platform

Developer Docs

StackTrace is built in the open. Explore the tech stack and API that powers the platform.

View on GitHub

Tech Stack

Frontend
  • Next.js 15App Router, RSC, SSR
  • Tailwind CSS v4Utility-first styling
  • Monaco EditorVS Code editor in browser
  • React IconsIcon library
Backend
  • Node.js + ExpressREST API server
  • MongoDB + MongoosePrimary database
  • RedisToken revocation & caching
  • BullMQSubmission job queue
Infrastructure
  • Judge0Sandboxed code execution
  • Socket.IOReal-time verdict push
  • DockerJudge0 & worker containers
  • ImageKitProfile image CDN

Submission Pipeline

BrowserExpress APIBullMQ QueueWorkerJudge0ResultSocket.IOBrowser

When you submit code, it is placed in a BullMQ job queue. A Node.js worker picks it up, sends it to Judge0 (a sandboxed execution engine), and pushes the verdict back to the browser over a Socket.IO WebSocket connection — all in under 2 seconds on average.

Built by

A

Aakash Tiwari

Full-stack developer — built StackTrace from the ground up, including the judging pipeline, auth system, and editor integration.

REST API Reference

All endpoints are prefixed with /api/v1. Authentication uses httpOnly JWT cookies.

GET/api/problems
GET/api/problems/:slug
POST/api/submissions
GET/api/submissions/:id
GET/api/profile/:username

Full OpenAPI / Swagger docs coming soon. In the meantime, check the GitHub repo for route definitions.