School of Bias
A platform that shows how behavioural science is used in what people buy, grounded in the latest research.
Overview
School of Bias is a platform built to show how behavioural science is used in what people buy, while staying grounded in the latest research.
It has a scanner for checkouts and deals, and three lessons on reference pricing, the decoy effect and the default effect.

Home
The scanner
Lessons only reach people who set out to learn, so I added a scanner that can be used at the point of a decision. A user uploads a screenshot of a checkout or deal, and the scanner names each technique, marks it on the screenshot and links the study that tested it.
The screenshot is sent to Gemini 3.5 Flash-Lite with the definitions of 14 techniques, and the model must reply in a fixed JSON schema with one sentence of evidence and a box for each technique it finds. The explanations and studies come from the site's own data rather than from the model, and accuracy is reported only from screenshots labelled by a person before scanning.

Scanner
Research as foundation
Each lesson is based on the original studies, such as Tversky and Kahneman (1974) on anchoring and Huber, Payne and Puto (1982) on the decoy effect. Each one pairs the original study with a recent case study, such as the Behavioural Insights Team's 2013 trial of automatic enrolment in workplace pensions.
Organisations like the Behavioural Insights Team and The Behaviouralist regularly publish research on how behavioural science is applied in the real world, and keeping up with that work is what keeps the curriculum relevant.

Studies
Custom interactive elements
Every lesson uses custom-built interactive components, from animated visualisations to playable scenarios, each designed to make a specific concept tangible. I built them from scratch because the concept being taught determined what each interaction needed to do. The wheel of fortune, for example, always lands on 10 or 65, the two numbers used by Tversky and Kahneman (1974), and then shows the median estimates of 25% and 45% that the original participants gave.

Interactive
Why Svelte
I built this in Svelte to learn a new framework and to test a different approach to building interfaces. Svelte compiles each component into plain JavaScript at build time, which updates the page directly and produces smaller, faster code than frameworks that ship a runtime to the browser.
That speed mattered for a platform full of simulations and animated transitions that need to run smoothly. Learning Svelte also forced me to understand how reactivity actually works underneath the abstractions. Each lesson is written as data in TypeScript, and one set of Svelte 5 components renders the slides, simulations and quizzes for all three.

Lessons
Reading library
A library section lets users explore books related to behavioural science. New suggestions are checked automatically for relevance using Gemini and the Open Library API, so the collection can grow through community contributions while keeping a meaningful standard for what belongs in it. A submitted book is looked up by its ISBN on Open Library, and Gemini scores its relevance from that catalogue record.

Library
Progress and structure
The platform tracks progress per lesson, and a lesson counts as complete once its quiz is passed. A free certificate is issued when all three lessons are complete. Progress and certificates are stored in Postgres through Drizzle, sign-in is handled by Clerk, and each certificate has a public page where it can be verified.

Quizzes
Why I built this
Reading Rutger Bregman's Moral Ambition made me ask the question, if you have a specific set of knowledge and skills, what is actually the most useful thing you can do with them? Building a platform that made behavioural science accessible felt like a meaningful use of my time and skills.
Built with
- Svelte
- TypeScript
- Vite
- PostgreSQL
- Drizzle
- Clerk
- HTML
- CSS
- Vercel
- Gemini
More projects