AKArif Khan.
All work
Education / EdTech2026PrimeAsia University · online judge

PAU OJ

A university online judge with sandboxed judging, team ICPC contests, private assessments, social learning and 10k-viewer live rounds.

Client
PrimeAsia University · online judge
Role
Full-stack engineer · platform build
Timeline
Production platform · v0.9.0
Year
2026
Platform licenseAvailable
From ৳1,60,000–৳3,80,000

Source license, documentation and guided handover. Scope and terms are agreed privately.

View license details
PAU OJ preview
94
screens
131
API routes
65
database tables
14
judge runtimes
Product tour

See the actual product.

Screens captured from the running PAU OJ build — not a mockup.

5 screens · product capture
Live preview

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.

Demo credentials are published only when they expose non-sensitive demo data. Client production data is never shared publicly.
Preview access
Private admin demo.

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.

Performance & quality

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.

Mobile · 82Desktop · 87
MobileSimulated throttling1 report
Judge landing
pauoj.nabasolution.tech · Nov 27, 2026
PageSpeed
82
Performance
96
Accessibility
100
Best practices
100
SEO
FCP
1.2 s
LCP
3.0 s
TBT
470 ms
CLS
0
Speed Index
2.4 s

Audited with Lighthouse 13 · mobile profile · scores vary with network, device and third-party scripts.

Case study
Stack
Next.js 16React 19TypeScriptTailwind CSS 4PostgreSQL 17Drizzle ORMRedis 8BullMQ 6MonacoRechartsWeb PushDockerVitest
01 · The challenge

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.

02 · The approach

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.

03 · Architecture & design

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.

Codebase at a glance
Analysed from source
Apps
Next.js 16 webBullMQ judge workerDocker sandbox judge
Key modules
Problems & statementsJudging & verdictsContest engine & teamsAssessments & invitesLearning curriculum & study plansContributions & reviewer creditProfiles, follows & messagingNotifications & email outboxPremium access & paymentsAdmin & moderationObservability & capacity
Services
webworkerdbredisseedjudge images
Integrations
Docker EngineSMTP emailVAPID web pushbKash / City BankMonaco editorCaddy edgeCI/CD
Languages
TypeScriptSQLPython (judge harness)

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.

Analysed from source
actual project tree
94
Screens
131
API routes
65
Data models
3
Apps / modules

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.

System architecture
Production topology · analysed from the codebase
productionrequest flow ↓
Application boundary12 services
01
Experience
Experience layer
2 services
Next.js 16 web
Practice · contests · assessments · learn · messages
Monaco editor
Language-aware drafts · custom runs
request flow
02
API
API layer
2 services
131 route handlers
Session · origin · rate limits
Zod + Argon2id
Typed contracts · opaque sessions
events · jobs
03
Async
Async layer
2 services
BullMQ worker
Compile once · run every test
Redis pub/sub
SSE verdicts · cached standings
request flow
04
Judge
Judge layer
2 services
Docker sandbox
No network · cap-drop · rlimits
14 runtimes
10 languages + 4 SQL options
queries · writes
05
Data
Data layersystem of record
2 services
PostgreSQL 17
65 tables · 55 migrations
Redis 8
Queues · rate limits · presence
deploy
06
Delivery
Delivery layer
2 services
Custom Node server
10k SSE · 8k backlog · 20k connections
Caddy + CI/CD
Health checks · backups · memory guard
ExperienceAPIAsyncJudgeDataDelivery
Client → API → data path
System design & key decisions

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.

04 · What shipped

The product, in detail.

Module 01Judging

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
Module 02Content

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
Module 03Competition

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
Module 04Classes

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
Module 05Curriculum

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
Module 06Community

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
Module 07Engagement

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
Module 08Infrastructure

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
05 · The result

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 judge

The 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.

Client words

Verified feedback.

Collected through private review links and published only after approval. No public account and no invented testimonials.

0 testimonials
No published testimonial yet.

Client feedback for this project is collected through private review links. Approved testimonials will appear here.

Worked on this project? Request a review link
Discussion

Questions & reactions.

React to the build or leave a question. Comments are moderated before they appear on the page.

Comments are reviewed before publishing. Email is never shown.

No approved comments yet. Be the first to ask a question.

Work with me

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.

01
Share requirements
Tell me the version, scope and deployment you need.
02
Scope & license
I send the license terms, timeline and price privately.
03
Handover
Source, documentation and a guided production handover.
Hourly custom work ৳1,500–৳2,500/hrProject minimum ৳1,50,000International: $15–25/hr · from $1500See engagement options →
Platform licenseAvailable
PAU OJ
From ৳1,60,000–৳3,80,000

Single-project license. Extended and exclusive scopes are quoted privately. Handover includes architecture, documentation and setup guidance.

Request a license quoteView license details
Or commission a similar build
৳4,50,000–৳10,00,000

Scoped to your requirements, team and launch timeline.

Scope a custom build
Need a custom feature first? I work hourly on product features, integrations and improvements.
More work

Keep exploring.

Like this outcome?

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.

Book a call