Project course · 8 modules · Free
Tiny Browser Engine
Build a small browser renderer with inspectable layout, painting and event decisions.
Get the course on GitHub Optional Short: walk the DOM tree with PipSupported route: terminal renderer, checks and saved-work tools. No hosted workbench or listener is enabled.
- What you’ll learn
- Document identity, cascade, block/text geometry, display ordering, hit targets and incremental rendering.
- Your project
- Your own renderer and event pipeline, with partial-stage inspection, image output and an unfamiliar-page diagnosis.
- How you’ll work
- 8 modules · 3 projects. Read the lessons in the course folder and implement your renderer with the terminal tools.
What you’ll build
- Implement an owned document tree, CSS cascade and inheritance, block/text layout and display commands.
- Add hit testing, frozen-path event dispatch and incremental invalidation; inspect your engine at each stage.
- Render interactive reference pages, preserve source/packet evidence and diagnose an unfamiliar rendering failure.
Before you start
JavaScript functions, objects, arrays and trees; basic HTML/CSS and terminal use. The course supplies intake, worker/file plumbing, glyphs and an integer rasterizer.
The terminal tools were tested with Node 26.5.1 and require no package installation or external service. The course also includes an optional browser workbench, which is not hosted on this site.
This is a bounded teaching renderer, not a standards-complete browser or JavaScript engine. Use the terminal route. The optional browser workbench and its accessibility have not been qualified.
Run the course locally
Clone the learner source, then run these commands.
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git checkout edbb806728cade5595116af205bb890e8e3bd756
cd courses/tiny-browser-engine
cp -n public/starter.body.js my-engine.body.js
node tools/lesson.mjs M1
node tools/check.mjs my-engine.body.js M1Read the eight module guides and public/CONTRACT.md. Edit your own engine body; the untouched starter should fail. The terminal tools inspect partial stages and render frames without a local server.
The TODO starter should fail with useful diagnostics. Implement a step, run its checks and preserve the result before revising. The course folder contains the lessons, project contracts and self-review guidance.
Optional LLM help uses your own account and is advice, not correctness evidence. No staffed feedback is required. Passing checks covers their declared cases; learning gains and human completion times remain unmeasured.
Exact learner source
The commands above use learner edition edbb806728cade5595116af205bb890e8e3bd756. This static page does not run or grade code.