All work

$ cd ~/work/learnhub

Next.js 16 · Supabase · Stripe

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.

LearnHub

00//the walkthrough

walkthrough.mp4Length 2:10
2-minute walkthrough: pricing built from the catalogue, a Pro learner resuming a video lesson with a timestamped note, the library, then the demo admin granting a plan and finding it in the audit log.

3 screens · tap 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

01

Tiers and previews

Each tier includes the one below; preview lessons are open to anyone signed in.

02

Private media

Videos and files served through signed links only after the plan check.

03

Lesson player

Resumes where you stopped, saves progress, completes at 90% and keeps timestamped notes.

04

Admin console

Learner and plan counts, filters, single and bulk plan grants, roles and publishing.

05

Audit log

Every admin change, who made it, for whom and when.

// the impact

3
Tiers
Signed links
Media
Postgres RLS
Security

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?

Chat on WhatsApp