Skip to content
Sasi Sundar
ProjectsClient build · In development (65-70%)

Finance PSU Guide

A ₹30,000 solo client build: an exam-preparation platform for PSU Finance Officer exams (AAI, Coal India, NTPC, BHEL). A book-style study library, a view-only PDF reader with per-user watermarks, Razorpay checkout with webhook provisioning, and a timed mock-test engine. In development at 65-70% completion, not yet delivered, with no live paying users.

Engagement
₹30,000 solo client build
Completion
65-70%
Started
July 2026
Exams covered
AAI, Coal India, NTPC, BHEL
Study books
5
Access tiers
3, 6, 12 months
Status
In development, not yet delivered

Why I built it

My first client build, started July 2026. The client needed students to read paid study material without being able to download it. Off-the-shelf LMS products either expose the raw PDF or lock the client into a subscription they did not want. The real problem was narrower: serve a document, prove who opened it, and grant access only after a verified payment.

Architecture

  • Next.js App Router frontend organised as a digital bookshelf: Accounting, Auditing, Financial Management, GST and the Companies Act, each expanding into chapters and topic notes.
  • Source PDFs stay in private storage with no public URL. A streaming endpoint checks the session and an active enrollment before it sends a single byte.
  • pdfjs-dist renders each page onto an HTML5 canvas, so the browser never receives a document it can save or print through its native toolbar.
  • A translucent diagonal watermark carrying the reader's email, phone number and IP is drawn onto every rendered page.
  • Context menu, save, print and inspector shortcuts are intercepted on the reader route.
  • Razorpay checkout on the client. A server webhook verifies the HMAC SHA-256 signature, marks the order paid and creates a 3, 6 or 12-month enrollment.
  • A timed MCQ engine with an answered / flagged / unvisited palette, auto-submit on timeout, and scoring with a 0.25 mark deduction per wrong answer.

Engineering decisions

The webhook is the source of truth, not the browser

The checkout modal reports success in the browser, and a browser can lie or lose its connection. Access is granted only when the server receives a Razorpay webhook whose HMAC signature verifies. The client callback updates the UI. It never writes an enrollment.

Canvas rendering instead of an embedded PDF

An iframe or object tag hands the browser the whole file and a download button. Rendering pages to a canvas means the client only ever holds pixels for the page on screen. It costs render time on large documents. That trade is acceptable for study notes.

Watermarks are the real control

View-only on the web is deterrence, not DRM. Anyone can photograph a screen. The keyboard locks stop casual copying. The per-user watermark is what makes a leaked page traceable to one account, and that is what changes behaviour.

What I learned

  • Every payment flow needs one place that decides whether money arrived. Two places means a support ticket.
  • Naming the limit of a protection scheme up front builds more trust with a client than overselling it.

Stack

Next.jsTypeScriptpdfjs-distRazorpayWebhooksTailwind CSS