AKArif Khan.
Build store
Education / EdTechlicense on request

PAU OJ

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

Live previewLicense scoped privatelyGuided handoverRead the case study
PAU OJ preview
Source license
Scope agreed privately
Documentation
Setup & deploy
Guided handover
Production ready
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.

About this build

A foundation with real mileage.

Next.js 16React 19TypeScriptTailwind CSS 4PostgreSQL 17Drizzle ORMRedis 8BullMQ 6MonacoRechartsWeb PushDockerVitest

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.

License options
Single project
Use the codebase for one end product you own or operate.
Scoped privately
Extended
Use across unlimited client projects. Cannot resell as a template.
Scoped privately
Exclusive
Full ownership. We remove the listing and never resell this build again.
Scoped privately
Feature modules

What's inside the build.

The working modules included in this platform — each one already shipped in production, not a roadmap promise.

8 modules
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
Under the hood

Built to survive production.

Architecture, source structure and performance are part of the evaluation — not hidden behind a sales call.

8
modules
13
technologies
4
metrics
Read the full case study
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.

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.

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.

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.

Make it yours

Want it adapted to your brand?

I can change the design, add a payment gateway, connect your CRM, or deploy and maintain the product for you. Send the details and I’ll quote it.

Design systemPaymentsDeploymentIntegrationsCustom work from ৳1,500/hr

No spam. No sales sequence. Just a real reply.

Before you license

The practical details.

These are live client and enterprise platforms, not off-the-shelf templates. Tell me the modules you need, your intended deployment and whether you need exclusivity. I reply with the license scope, terms and price in writing.

The final scope is agreed before payment. Depending on the license, it can include source code for the agreed modules, architecture notes, database schema, deployment guidance and a guided production handover.

Yes. Public demo access is available where it is safe to expose. Admin credentials are shared privately after a short call so client data and internal workflows stay protected.

Yes. I can adapt the design, add integrations, deploy it and maintain it. Custom work is available from ৳1,500–৳2,500/hr, or as a fixed-scope quote after a short discovery call.

No. A standard license does not include resale or template rights. An exclusive transfer can be discussed separately and is priced accordingly.

More builds

Keep browsing.

Not quite the right fit?

Build something only yours.

If none of the builds fit, let’s design the product around your workflow instead of bending yours around a template.

Book a call