How your feed picks the next post

The claim

Simulated visitors who were tired of car posts and pressed “not interested” on each one saw cars in 5% of their next 20 posts. Watching car posts for less time left cars at 39%.

Why I built it

Everyone scrolls a feed, and few people know how it picks the next post. I wanted to build a small one that shows its working, then measure what actually moves it.

You can scroll it, watch the panel learn from what you do, and switch its rules off to see what changes.

What I built

A phone-shaped feed of 400 made-up posts across ten topics, with pictures drawn in code. For each slot it gathers a few hundred unseen posts and scores each one on topic match, popularity and freshness, showing every part. One slot in ten tests the topic shown least, and a rule stops three posts of one topic in a row. It learns from how long you stay, your likes and “not interested”. It all runs in the browser and stores nothing. AI coding agents (Claude Code) wrote the code under my direction.

Bar chart of the share of the next 20 posts about cars, for four ways out. Watching them for less time 39%, flicking past at once 16%, pressing not interested 5%, searching for travel 36%. A dashed line marks 60%, the share before. Bar chart of the share of the next 20 posts about cars, for four ways out. Watching them for less time 39%, flicking past at once 16%, pressing not interested 5%, searching for travel 36%. A dashed line marks 60%, the share before.
A search added travel and barely moved cars. Pressing not interested moved them most.

Decisions

  • Scores you can read instead of a trained model. The panel has to show why a post won.
  • A topic the feed has never shown gets no points for match. When untested topics started slightly liked, testing made no difference.
  • Platforms named only beside their own published descriptions. The page cites X’s 2023 write-up, YouTube’s 2016 paper, TikTok’s 2020 post and ByteDance’s Monolith paper, and says it copies no company’s system.
  • Your profile stays in memory. Closing the page forgets it.

How I tested it

I froze and committed every setting before the first measured run. Each finding comes from 200 simulated visitors with known tastes and fixed seeds, and the same seed always gives the same feed. Tests fail if rebuilt results stop supporting a sentence the page states in words. A control run with a like worth more than a full watch flipped the first chapter’s result to 63% cats. I scrolled the built page in a headless browser at 1280 and 390 pixels wide, in both themes, under the production security headers.

What broke

  • Testing did nothing at first. Untested topics already outranked disliked ones, so the feed tried everything on its own.
  • The feed narrowed onto the wrong topic. For 194 of 200 car fans, the first topic to fill half of ten posts was cats, the popular one they half liked. I rewrote the chapter around it.
  • The panel’s bars drew as white pills. They shared a class name with the buttons.

What next

Let a simulated visitor’s taste drift, and measure how fast the feed notices.