All builds

Learning platform / 2026 / In progress

LMS.

A full learning platform with AI tutoring that is checked against the course before a learner sees it

The hard part
Keeping the AI to lessons a learner is enrolled on, and checking what it says against the lesson before a learner sees it.
Works today
The platform is live on a public website, and its tests check that it refuses early lesson completion and removes unsafe code from stored content.
Role
Software engineering
Built with
PHP · Laravel · Blade · JavaScript · Eloquent · Python · FastAPI · Pydantic · PostgreSQL · pgvector

01What I built

The problem.

AI study help is only worth having if a learner can trust it. Left alone, an AI assistant answers from anywhere. That includes courses the learner never enrolled on. It also says things the lesson never said. A real course platform has everyday risks too. Half-finished edits can reach a live course. A learner’s browser can report progress that never happened.

What I built.

LMS is a learning platform with AI study help. It is two systems that work together. The platform, built with the Laravel web framework, runs the courses. Staff use it to build courses, review and publish them, enrol learners and track their progress. The AI service, built in Python, has one job. It checks what the AI wrote against the lesson, before Laravel decides what a learner sees.

The public home page of the LMS, with buttons to explore courses or log in.
The LMS is live. This is its public home page, as anyone can see it. I took this picture on 25 November 2026.

The platform

Laravel, Blade, JavaScript

Course builder
Instructors build courses from chapters and lessons, using video, documents and reading material.
Review and publishing
Edits wait in a separate copy of the course. After review, they all go live in one step, so either every change is saved or none is.The storyPublishing reviewed course changes in one step
Enrolment and access
Every request is checked against the learner’s enrolment, or the course the instructor is assigned to.The storyA staff role that can add learners but not change access
Lesson player and progress
The server decides how much of a lesson counts as done. It uses how long a video played and how long each page was open.
Discussions
Questions and answers on each course. Instructors moderate them, but never a thread they posted as a learner.The storyClosing a gap in discussion moderation
Content safety
Formatted text is cleaned of unsafe code when it is saved, and again when it is shown. Uploaded files are renamed, restricted and re-encoded into fresh copies.The storyCleaning unsafe code out of formatted text without losing tables, lists and headings

The AI service

Python, FastAPI, Pydantic

LMS AI Core
Passage ranking
Puts the passages Laravel sends in order, best match first. It looks at matching phrases and keywords. It also looks at each passage’s title and source.The storyMoving AI checks to Python while Laravel keeps learner access
Claim checking
Splits an answer into claims, which are single statements, and checks that the lesson supports each one. It also spots clashes in numbers, dates and names. And it spots clashes in quotes, in the order of things, and where one side says “not”.The storiesMoving AI checks to Python while Laravel keeps learner accessChecking each claim in an AI answer against the lesson
Key-only access
Every request to the service’s main web addresses, the ones with a version number, must carry an access key. If no key has been set up, the service refuses the request. Its public documentation pages are switched off.The storyProtecting learner text in saved conversations and evaluation reports

The Laravel side

Laravel, PostgreSQL, pgvector

LMS AI Core
Lesson sources
Each lesson is saved as a source with a version number, split into small chunks of text. Each chunk gets a fingerprint, a short code that changes when its content changes. Searches look only inside the learner’s own courses.The storiesRebuilding lesson sources from repaired transcriptsKeeping AI answers tied to the lesson sources
Gateway and fallback
In live mode, Laravel uses the result from the Python service. If the service is too slow or fails, Laravel switches to its own local check. So nothing goes out unchecked.The storyChecking AI answers in Python, with a local check as backup
Study guides
A saved guide is shown only while it still matches the lesson as it is now. It must also match the current AI provider, model and settings.The storiesWhy the study guide worker wouldn’t startWhy a ready study guide looked unavailable
Privacy
Logs and saved conversations blank out private text. Evaluation exports, the files used to judge answer quality, keep summaries instead of full answers.The storyProtecting learner text in saved conversations and evaluation reports

02The journey

What broke, and what changed.

Broke, then fixedA decisionA milestone

  1. 01 of 15BuiltLMS

    Course edits get their own copy

    What I builtProposed edits now stay in a separate LMS · The platformReview and publishingEdits wait in a separate copy of the course. After review, they all go live in one step, so either every change is saved or none is.See it in the map above until someone reviews them. Publishing locks the course and the copy. Then it saves every change in one A technical worddatabase transactionA group of database changes saved together, so either all of them are saved or none are., so either all of it is saved or none is.

03Today

Where it stands.

When a course is published, its LMS · The platformCourse builderInstructors build courses from chapters and lessons, using video, documents and reading material.See it in the map above are rebuilt, so every lesson gets a new ID. I have not yet shown that a LMS · The platformLesson player and progressThe server decides how much of a lesson counts as done. It uses how long a video played and how long each page was open.See it in the map above carries over when that happens. Media files sit in the server’s public storage area, and where they should be kept is still to be decided. The Enrollment Manager role works on my own computer but is not released yet.

More notes from this build.