June 2023 · PLXN World

A letter to parents, students & teachers

Before CLUE, an IB tutoring session was booked over WhatsApp, paid for by bank transfer, and reconciled in a spreadsheet at the end of the month. Teachers waited to be paid. Nobody could say, at any moment, who owed what.

So I built one place for all of it: students book and pay in credits, teachers see every session and every rupee owed, and the platform's fee is taken in the same breath as the booking — never later, never by hand.

Yours,Srinath Hsole developer, Jun 2023 – Mar 2024

Est. 2023 · PLXN World

CLUE

Prospectus

A tutoring marketplace for IB, IGCSE and A-Level students — bookings, credits and teacher payouts in one place.

Book · Learn · Pay · Teach

§ 2 Curricula

Three boards. One timetable.

  • IBInternational Baccalaureate
  • IGCSEInternational GCSE
  • A-LevelAdvanced Level

Students and teachers share one Next.js portal; the operations team runs everything from an admin console.

§ 3 Report card

The system, marked.

Pupil
CLUE platform
Term
Jun 2023 – Mar 2024
Built by
Srinath H
What I built for CLUE, marked off
PaperWhat it coversMarked
Student & teacher portalNext.js: bookings, sessions, credits, payoutsshipped
Admin consoleOperations: people, sessions, ledgersshipped
Credit engine1 credit = ₹10; billing, fee and payout in one atomic stepatomic!
PaymentsRazorpay, Stripe & PhonePe webhooks, signatures verifiedverified
Referral loopPeer-to-peer invites with Open Graph previewssee § 6
Security rules250 lines of Firestore rules250 lines
Back endNode 22 Cloud Functions, Mumbai regionclose to users

Overall remarksOne developer, every layer: portal, console, money, rules.

Srinath HSignature

§ 4 The credit engine

Question 4. Show your working.

A student books a session. In one atomic transaction the engine bills the student, takes the platform fee and credits the teacher's payout ledger. If any part fails, none of it happens.

Working

  1. Session booked: 120 credits
  2. 120 cr × ₹10 = ₹1,200
  3. Platform fee 20% = 24 cr
  4. Teacher payout = 120 − 24 = 96 cr
  5. Check: 24 + 96 = 120

Illustrative amounts; the fee rate is an example. The rule 1 credit = ₹10 is real.

§ 5 Fees & payments

Three rails, one seal.

Families top up credits through Razorpay, Stripe or PhonePe. Every webhook is checked against its signature before a single credit is minted. A forged callback is just noise.

Fee receipt No. 0001

  • Razorpaywebhook
  • Stripewebhook
  • PhonePewebhook

signature = HMAC(payload, secret)

header   = x-…-signature

signature == header ?

Illustrative; header names vary by provider.

§ 6 Bring a friend

A loop, not a funnel.

Students invite students. Each invite link renders a proper Open Graph preview, so it looks like an invitation in WhatsApp or iMessage — not a suspicious URL.

§ 7 School rules

250 lines of Firestore security rules.

The database is the last line of defence, so it gets its own rulebook. The kinds of rules it enforces (paraphrased, illustrative):

  1. Students read their own bookings — no one else's.
  2. Teachers see their own sessions and payouts.
  3. Money moves only through the credit engine.
  4. Admin powers belong to the admin console.

§ 8 Facts & figures

At a glance

One credit
₹10
Payment rails
3
Curricula
3
Lines of security rules
250
Node runtime
22
Region
Mumbai

§ 9 Yearbook

Campus life

Placeholder photographs — to be replaced with the portal, the booking flow, the credit wallet and the admin console.

Placeholder: students laughing over laptops, standing in for the student portal.
Student portal
Placeholder: a hand pointing at a laptop screen, standing in for booking a session.
Booking a session
Placeholder: a notebook checklist, standing in for the credit wallet.
Credit wallet
Placeholder: hands typing on a laptop, standing in for the admin console.
Admin console
Placeholder: books, an apple and ABC blocks, standing in for the curriculum pages.
Curricula

Open day film

§ 10 Faculty

The stack

Next.js
Student & teacher portal, admin console
Node 22
Cloud Functions, Mumbai region
Firestore
Data + 250 lines of security rules
Razorpay · Stripe · PhonePe
Payments, signature-verified webhooks
Open Graph
Referral link previews

§ 11 Admissions

CLUE's code belongs to PLXN World. Apply for a walkthrough of the credit engine — I'll show you the transaction.

Next slice in time

SkyControl

May – Nov 2026Voice air-traffic control on small models I trained.Open

All work