
LearnStack OS is a learning website that looks like an old computer desktop and keeps its paid lessons locked on the server.
What It Is
LearnStack OS is a website that teaches practical AI and prompting skills. A learner works through interactive lesson modules, and access to them is gated by membership tier. Around the lessons sits a public set of articles. The articles do the top-of-funnel work, meaning they are what new visitors read first.
I built all of it myself and launched it as a working product. That covers the product idea, the page layout, the visual design, the database schema (the plan for what is stored and how), the application code, the content pipeline and every word of user-facing copy. The platform has 130 active registered members. It is live in production, and I keep shipping to it.
Why It Looks Like an Old Computer
The screen is built to look like a retro desktop operating system. Learners see windows, a desktop and a shell around them. Think of the desktop on an old computer, where you open a window, move it aside and open another.
I chose this on purpose. A normal course page is one long scroll. You lose your place, and nothing feels like yours. A desktop gives people a metaphor they already know. Windows stay open. Their state survives when you move from one route (one page address) to another. So a learner can leave a lesson, check something else, and come back to the same spot.
How a Lesson Gets Onto the Screen
The content is data, not code. Modules and lessons live in Supabase, a hosted Postgres database service. They are first written as JSON files, which are plain text files in a strict format. A seed step then loads those files into the database.
Adding a course is a content edit. Renaming a course is a content edit. Nobody has to change the application code, run a build or hunt through components to find the right words.
Here is the path, step by step. First, I write or change a lesson in a JSON file. Second, the seed step checks the file with Zod. Zod is a library that checks data against a written shape, like a form that rejects a blank required box. Third, the checked lesson goes into Supabase. Fourth, when a learner opens a lesson, the page checks the data against the same Zod shape again at render time. A broken lesson gets caught at both ends instead of showing up as a blank window for a learner.
The same data-first idea covers the images. Hero art for lessons is generated by multimodal pipelines. Multimodal means the pipeline works with more than one kind of material, here text and pictures. The pipelines also narrate lessons. Image styles pass through explicit states: draft, test, publish, archive and retire.

How the AI Part Works
The AI backbone is retrieval over a chunked content corpus. The corpus is all of the learning content. Chunked means it is cut into small pieces, like index cards instead of one giant book. Retrieval means that when the system needs to answer something, it first finds the few cards most related to the question, and then works from those.
Three features sit on top of that one idea. The first is placement assessment, which works out where a new learner should start. The second is personalized learning paths, which suggest what to study next. The third is in-lesson prompt tooling, which helps a learner write and improve prompts while inside a lesson.
Writing is part of the system too. An Article Creation Wizard and a companion Discord bot both generate from one canonical writing and research specification. Canonical means there is a single master copy. Because both tools read the same master, the articles keep the same voice and rules on every surface.
I also authored a live Streamable HTTP MCP server at /api/mcp. Streamable HTTP is a way for a server to send its answers back as a steady stream. MCP stands for Model Context Protocol, a standard way for AI tools to call a website's functions. Mine uses JSON-RPC, a simple format for sending a request and getting an answer. Seven tools cover creating, rewriting, importing, checking, publishing and scheduling articles, plus listing the authoring options. The server enforces OAuth scopes. OAuth is the standard permission system behind sign-in buttons such as "Sign in with Google", and a scope limits what each caller may do. It validates the Origin of each request. It also makes write operations idempotent, which means sending the same write twice has the same effect as sending it once. External OAuth registration for MCP clients is still pending. This is server and tool work, not client work.

What Keeps It Careful
The most important gate is the entitlement boundary. Entitlement means what a person is allowed to see. An anonymous visitor must never receive the full text of a lesson.
The check happens on the server. That matters. A cheap approach hides locked text behind a blurred overlay made with CSS, but the text is still in the page, and anyone can read it by viewing the source. In LearnStack OS, the lesson body is never put in any payload sent to an anonymous visitor. That holds for the HTML, for streamed data and for JSON. Automated leak-gate tests guard this edge. A leak-gate test asks for locked content as an outsider and fails if any of it comes back.
The product has a free tier with a daily lesson drip, meaning a limited number of lessons unlock each day. A premium tier removes the drip and unlocks gated courses, articles and community channels.
Image changes are handled the same careful way. Promotion is transactional, which means all-or-nothing. Staged files are swapped in only after the deployment succeeds and the deployed files match their recorded checksums. A checksum is a short fingerprint of a file. If the fingerprints do not match, the swap does not happen.
Secrets are handled with equal care. Keys stay on the server and are never sent to the browser. Row-level security in Postgres adds one more lock on the data itself. It limits which rows each signed-in user can read.
What I Built It With
The app uses Next.js 15 with the App Router and React 19. React is a library for building screens out of small parts, and Next.js is a framework built on it for whole websites. TypeScript is JavaScript with types, and it runs in strict mode here, so the type checker is as picky as possible. The data lives in Supabase with Postgres and row-level security. Postgres is a widely used database. Styling uses Tailwind. Zod checks data at seed time and render time. The site is hosted on Vercel and uses pnpm to manage packages.
Transactional mail, the automatic messages an app sends, goes out through a verified SMTP sender, with rate-limit handling. SMTP is the standard way mail servers talk to each other.
Where It Stands Today
LearnStack OS is live and in use. It has 130 active registered members. I am the sole founder, architect, designer and implementer.
The same community also gets Agent-Team, which is licensed to LearnStack OS members. It has its own page.
Glossary
- Next.js App Router
- The part of Next.js that maps folders to pages and runs code on the server by default.
- Supabase
- A hosted service that gives you a Postgres database, sign-in and file storage.
- Zod
- A library that checks data against a written shape and rejects anything that does not fit.
- retrieval
- Finding the few pieces of content most related to a question before answering it.
- chunked
- Cut into small pieces so each piece can be found on its own.
- MCP
- Model Context Protocol, a standard way for AI tools to call a website's functions.
- entitlement
- What a particular person is allowed to see or use.
- row-level security
- A database rule that limits which rows each user can read or change.
- Vercel
- The hosting service the site runs on.
- Tailwind
- A way to style pages by adding small ready-made classes to elements.
- React
- A library for building screens out of small reusable parts.
- TypeScript
- JavaScript with types, so many mistakes are caught before the code runs.
- Postgres
- A widely used database.
- JSON
- A plain text format for storing structured data.
- JSON-RPC
- A simple format for sending a request to a server and getting an answer back.
- OAuth
- The standard permission system behind sign in with buttons; scopes limit what a caller may do.
- idempotent
- Safe to repeat: doing it twice has the same effect as doing it once.
- SMTP
- The standard way mail servers send email to each other.
- multimodal
- Working with more than one kind of material, such as text and pictures.
- Streamable HTTP
- A way for a server to send its answers back as a steady stream.
- pnpm
- A tool that installs and manages the packages a project needs.
Key Facts
- Sole founder, architect, designer, and implementer
- 130 active registered members
- Next.js App Router · Supabase · Vercel