PAU OJ
A university online judge with sandboxed judging, team ICPC contests, private assessments, social learning and 10k-viewer live rounds.
Source license, documentation and guided handover. Scope and terms are agreed privately.
View license details
See the actual product.
Screens captured from the running PAU OJ build — not a mockup.




Try it before you buy.
Open the deployed experience, explore the public flow, or request guided access to the admin side before you purchase. Credentials are shared only when the demo is safe to expose.
The judge is live with 500+ problems, solo and team contests, private assessments and eleven learning tracks. Create an account to submit code, join a round, message other coders and unlock premium modules.
Lighthouse, in the open.
Real Lighthouse audits of the live PAU OJ deployments on both profiles. Scores are point-in-time snapshots — useful for spotting friction, not a substitute for real user monitoring.
Audited with Lighthouse 13 · mobile profile · scores vary with network, device and third-party scripts.
What was actually broken.
A university needs a judge students can trust: statements, hidden tests and editorials stay private until review passes, submitted code must never touch the host, and every verdict has to be reproducible across ten languages and three real SQL engines. Contests add team formation, fresh-problem rules, sponsors and a monthly official series; assessments need invite-only rosters and per-candidate timers; and a campus launch means thousands of students arriving at once — 10,000 concurrent contest viewers and 1,200 registrations in a burst — without leaking a private round or dropping a verdict.
How I designed the build.
Built with Next.js 16 App Router, React 19, TypeScript and Tailwind 4, PostgreSQL 17 through Drizzle ORM, and Redis 8 + BullMQ 6 for judging and background work. The web app never executes code: it validates and enqueues submissions, and a dedicated worker compiles once and runs each test inside a locked-down Docker container with no network, dropped capabilities, a read-only root and cgroup limits. Verdicts flow through Redis pub/sub into SSE streams, live standings are cached and paginated behind ETag, and the production server is tuned for 10,000 long-lived connections. Publication is a database-enforced review state machine; contests add teams, crew roles, sponsorships and an integrity shield; assessments issue personal invite links; and learning, social, messaging, notifications and premium access all share one role-aware platform.
How the system is put together.
Next.js 16 App Router serves the public judge, the coder/teacher/admin dashboards and 131 route handlers; PostgreSQL 17 with Drizzle ORM is the system of record across 65 tables; Redis 8 + BullMQ 6 queue judging, email delivery and broadcasts; a dedicated worker executes code in Docker sandbox containers; and Caddy terminates TLS for 10,000 long-lived SSE streams on one node. The web app never runs submitted code — it only validates and enqueues it.
Analysed from the production repository: 94 App Router screens, 131 route handlers, 65 Drizzle tables, 55 migrations, 184 test files (1,628 tests) and ~207k lines across the web app, judge worker and sandbox images.
Next.js 94 screens, 131 route handlers, 65 Drizzle tables and 55 migrations; 184 test files with 1,628 tests; ~207k lines across the web app, BullMQ worker, judge harness and Docker sandbox images.
A submission is validated, inserted as QUEUED and enqueued at practice or live priority. The worker atomically claims it, compiles once and runs each test in a fresh container with no network, dropped capabilities, a read-only root and strict cgroup/rlimit caps. Per-test results are written in one transaction and published over Redis pub/sub to the browser's SSE stream, with a 5–7s version check and a database fallback if Redis is lost. Problem publication is a database-enforced state machine: two approvals in the current cycle, an editorial, a reviewer-added test and no open holds before a problem becomes public. Contests and assessments reuse the same problem and submission tables with their own registration, invite and access rules; live standings are cached, paginated and served behind an ETag. Notifications fan out through a durable email outbox and VAPID push, social features enforce a per-pair block/follow lock, and /health exposes database, Redis, migrations, judge queue, memory and edge capacity. Sessions are opaque database rows with Argon2id passwords.
The product, in detail.
Sandboxed judging engine
Compile once, run every test in an isolated container and stream the verdict back live.
- Docker sandbox with no network, dropped capabilities, read-only root and cgroup/rlimit caps
- Ten languages from C17 and C++20 to Kotlin and Swift, plus four SQL options on SQLite, MariaDB 10.11 and PostgreSQL 15
- Per-test verdicts: accepted, wrong answer, TLE, MLE, runtime, compile and output limit
- Exact, token, float-tolerance and custom Python checkers, with reference expected output
- Redis pub/sub verdicts over SSE, priority queues for live rounds and runtime/memory analysis
Problems & publication review
A database-enforced review state machine keeps drafts private until every gate passes.
- Markdown editor with samples, tags, difficulty, points, editorials and verified resources
- States: draft, in review, changes requested and published, with holds and re-review
- Two approvals, an editorial and a reviewer-added test before a problem goes public
- Community statement/test/editorial contributions with audit logs and optional rejudge
- Reviewer leaderboard with 7/30/all-time decisions, approval rate and turnaround time
Contests & competition
Solo and team ICPC rounds with official series, sponsors, integrity signals and ratings.
- 2–6 coder teams, captain transfer, username invites and team-aggregated standings
- A monthly official series created automatically for the third Sunday at 10:00 Asia/Dhaka
- Crew roles, fresh-problem policy, sealed editorials and single-use contest debuts
- Sponsorship tiers and community hosting with a ৳3,000–৳5,000 fee and TrxID review
- Watermark/copy/tab integrity events, clarifications, freeze, virtual replay and Elo ratings
Assessments & invites
Private timed coding tests for courses and hiring, with per-candidate control.
- Open-code or invite-only join modes with per-candidate timers and early finish
- Roster CSV import creating one personal invite link per candidate
- Send, resend, rotate or revoke an invite; the previous link stops working
- Private problems and submissions, plus teacher-workspace scoping
- Roster-complete results CSV including candidates who never started
Learning, SQL & premium
Eleven tracks from first loops to SQL labs, career toolkits and paid modules.
- Seven algorithm tracks, two SQL labs on a 19-table ShopSphere schema and two free career toolkits
- 63 topics, 560+ guided problems, Bangla notes and 16 animated visual explainers
- Sectioned study plans, per-problem notes, daily challenge, streaks and timed badges
- Git/GitHub and Docker/CI-CD modules with terminal labs and a timed checkpoint
- Premium modules 3–7 at ৳200 each or ৳700 bundled; Advanced SQL ৳500 with manual approval
Community, profiles & messaging
A real social layer: follows, presence, direct messages and moderation.
- Profiles with avatars, status/company/skills, rating graph and 365-day heatmap
- Approval-based follow graph, follower/following lists and presence privacy
- Two-person DMs unlocked by an accepted follow, with read receipts, mute and blocking
- Image and document attachments, emoji picker, entity links and 3-pane inbox
- Social reports with admin triage, hourly digests and retention; dual points/rating boards
Notifications & email
In-app, email and browser push from one preference-aware notification engine.
- Navbar and dashboard bell with unread badge, All/Unread/Notices tabs and guest announcements
- Email and VAPID browser push for verdicts, contests, reviews, learning, payments and messages
- Per-category preferences, token unsubscribe and privacy-redacted message previews
- Durable email outbox with five-attempt backoff, immediate flush and stale-queue alerts
- Admin announcement composer, grouped notices and a weekly admin report
Scale, observability & operations
A single node tuned for 10,000 live viewers, with the health data to prove it.
- Custom Node server with 8,192 listen backlog, 20k connections and 65s keep-alive
- 10,000 concurrent SSE streams, 2 GB Caddy edge and a 3 GB app memory budget
- Redis pub/sub instead of per-stream polling; cached, paginated standings with ETag
- Judge queue priority, 1 worker × 4 slots and a 1,200-contestant onboarding profile
- Health reports DB/Redis/migrations/queues/memory/edge; CI smoke, deploy hook and admin recovery
What changed for the business.
A production judge with 94 screens, 131 API routes and 65 database tables covering practice, contests, teams, assessments, learning, contributions, discussions, messaging, notifications, payments and admin. Students solve problems in ten languages plus four SQL options on SQLite, MariaDB and PostgreSQL and get verdicts in seconds; teachers run invite-only timed assessments with roster-complete CSV results; reviewers publish through a two-approval workflow; and the platform holds 10,000 concurrent viewers and 1,200-contestant onboarding on one observability-first node.
Open the judgeThe summary: PAU OJ is PrimeAsia University's online judge: a 500+ problem practice library, an in-browser Monaco editor, sandboxed judging across ten languages plus four SQL options, solo and team ICPC contests, private timed assessments, an eleven-track learning curriculum with paid modules, a reviewer workflow, direct messages and browser push — in one Next.js platform backed by PostgreSQL and a Docker-isolated judge worker.
Verified feedback.
Collected through private review links and published only after approval. No public account and no invented testimonials.
Client feedback for this project is collected through private review links. Approved testimonials will appear here.
Worked on this project? Request a review linkQuestions & reactions.
React to the build or leave a question. Comments are moderated before they appear on the page.
No approved comments yet. Be the first to ask a question.
License this platform — or make it yours.
This is a live client/enterprise platform. Request a license and I’ll send the scope, terms and pricing privately. Custom features and ongoing work are available hourly.
Single-project license. Extended and exclusive scopes are quoted privately. Handover includes architecture, documentation and setup guidance.
Request a license quoteView license detailsScoped to your requirements, team and launch timeline.
Scope a custom buildKeep exploring.
Let's build yours next.
Send a short brief and I’ll reply with an honest assessment, a scope and a fixed price. No obligation, no sales sequence.

