07 / 07 · PLXN World · Jun 2023 – Mar 2024

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

Run the credit engine 1 credit = ₹10

Three people touch every rupee.

A student pays. The platform keeps a fee. A teacher gets paid.

If one of those writes lands and another doesn't, someone is out of pocket, and support spends the week reconciling. So I built a credit engine: 1 credit = ₹10, and every booking moves the student's credits, the platform fee and the teacher's payout in one atomic transaction. All three, or none.

  1. Studentcredits
  2. Platformfee
  3. Teacherpayout
Simulation

The credit engine.

A simulated, in-browser model of how the engine settles money. Only "1 credit = ₹10" is real here; prices and the fee rate are example values you can change.

Step 1

Top up credits

Paid with
Pack

Step 2

Book a session

12 credits · ₹120
20%

Student wallet

20cr

₹200

Platform fee

0cr

₹0

Teacher payout

0cr

₹0

ready Every booking must balance to zero.

Ledger log

#EventStudentFeeTeacherStatus
0001Opening balance+₹200₹0₹0committed

How it works

Four pieces, pinned to the ledger.

Front

Next.js portal + admin console

One portal for students and teachers to book, top up and track sessions. A separate admin console for the team running the marketplace.

Engine

Node 22 Cloud Functions, Mumbai

The credit engine lives server-side in the Mumbai region. Student billing, platform fee and teacher payout ledgers move in one atomic transaction.

Money in

Three providers, signed webhooks

Razorpay, Stripe and PhonePe webhooks credit the wallet only after the signature verifies. A forged or replayed call changes nothing.

Guard rails

250 lines of Firestore rules

Security rules decide who can read or write each wallet, booking and ledger entry, so the client can never mint its own credits.

Growth loop

Students bring students.

A peer-to-peer referral loop. Every invite link renders a proper Open Graph preview, so it looks like an invitation in any chat app, not a bare URL.

are you still doing the IB maths sessions?

clue · invite

You're invited to CLUE

Tutoring for IB, IGCSE and A-Level.

yes, use my link

Illustrative mock-up

Numbers

The receipt.

Small numbers, on purpose. A marketplace that handles money should be boring in exactly these places.

CLUE · CREDIT ENGINE

PLXN World · Jun 2023 – Mar 2024

  • Credit value1 cr = ₹10
  • Ledgers per booking3
  • Writes that can half-land0
  • Payment providers3
  • Webhooks without signature check0
  • Firestore security rules250 lines
  • RuntimeNode 22
  • RegionMumbai

Balance₹0.00 ✓

thank you · all or nothing

Stack

Built with

  • Next.js
  • Node 22
  • Cloud Functions
  • Firestore
  • Firestore security rules
  • Razorpay
  • Stripe
  • PhonePe
  • Open Graph
Back to the start · 01 / 07 SkyControl Voice air-traffic control at SFO, running on small models I trained. No LLM, no GPU at run time.