$ cd ~/work/learnhub
LearnHub
A subscription learning platform where three paid tiers unlock video courses and a library of handbooks, audio sessions and e-books, with an admin console to run it.

00//the walkthrough
3 screens · tapclick to enlarge
01//the problem
Selling courses by tier means every lesson, video and file has to check the learner's plan, and the checks must hold even if someone calls the API or the storage directly. Learners expect to resume mid-video, and the business needs to manage plans without a developer.
02//the approach
Next.js 16 on Supabase: Postgres with row-level security on every table, Supabase Auth, and a private Storage bucket. The server checks the plan before it signs a short-lived link to any video or file. Stripe checkout and webhooks are built in; the demo runs with Stripe switched off.
03//what I built
Tiers and previews
Each tier includes the one below; preview lessons are open to anyone signed in.
Private media
Videos and files served through signed links only after the plan check.
Lesson player
Resumes where you stopped, saves progress, completes at 90% and keeps timestamped notes.
Admin console
Learner and plan counts, filters, single and bulk plan grants, roles and publishing.
Audit log
Every admin change, who made it, for whom and when.
// the impact
The live demo runs on sample courses and learners with one-click logins for a Pro learner and a demo admin. The 2-minute video above walks through both sides.
// let's build yours
Have a product like this in mind?