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

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.
A foundation with real mileage.
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.
What's inside the build.
The working modules included in this platform — each one already shipped in production, not a roadmap promise.
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
Built to survive production.
Architecture, source structure and performance are part of the evaluation — not hidden behind a sales call.
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.
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.
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.
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.
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.
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.
Keep browsing.
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.


