The problem
After years of growth, the school moved to a new model: a course marketplace where authors publish courses and earn a share of the revenue. That needed a fresh platform, and a way to pay authors that is fair, correct and auditable.
What I built
A full-stack rework on a new monorepo, working across the API and the apps:
- Who gets paid what: a revenue-share engine. All-access revenue goes into a creator pool that closes monthly and is split by engagement; direct sales are priced by referral and by versioned rates.
- Money you can trust: an earnings ledger that removes tax and processing fees, treats chargebacks as reversals, and only clears earnings once their period has closed.
- Running the platform: super-admin roles, audit logs, and management of users, authors and payouts.
- Referrals: from the API through checkout to the author and admin dashboards.
- Email: transactional email through MailerSend.
How AI helped
The whole rework was AI-assisted. Each feature started from a written design spec, then I built it with Claude Code as a pair programmer, and reviewed every change myself.
The result
Authors get paid a fair, auditable share, with refunds, fees and referrals all accounted for.