The Movie Bot lives in the launcher in the bottom-right corner of the movie pages on this site. It runs a short interview: rate five films you have seen, react to the words I used about them in my reviews, and settle one head-to-head matchup. Then it picks a film you have not seen and pitches it in my voice, built around the tagline from my review.

The engineering brief was strict: no outside service. There is no model and no backend. The whole recommender runs in your browser, on two JSON files the site already publishes. Every input it takes is structured: slugs, star ratings, and adjective lists. Ranking plus templates covers that, so the bot is code from end to end. This is the writeup of how it fits together.

The site is the database
#

There is no separate database of movies. The reviews are the database. Each review is a Markdown file with front matter and a body:

+++
title = "..."
date = ...
link = 'https://www.themoviedb.org/movie/...'
rating = "★★★★☆"
ratings = ["4-stars"]
adjectives = ["tense", "brisk", "bleak", "restrained", "funny", "overlong", "slick", "hollow"]
+++

<span class="star-rating">★★★★☆</span>
Runtime | Rating | Release | Distributor
*A one-line tagline.*




The full review text.

Every review carries exactly eight lowercase adjectives describing how the review characterizes the film. A check in CI fails any review without them, and the Hugo build fails if a published one lacks them.

When Hugo builds the site, it renders the reviews as the HTML pages you read and as JSON. One catalog file lists every film, and one adjectives file maps every film to its eight words:

// /movies/index.json   (the catalog, newest first)
[ { "slug": "...", "title": "...", "year": 2025, "rating": 5, "tagline": "..." }, ... ]

// /recommender/adjectives.json   (slug -> eight adjectives)
{ "<slug>": ["tense", "brisk", "bleak", "restrained", "funny", "overlong", "slick", "hollow"], ... }

No scraping, no HTML parsing, no export step. The JSON is a first-class output of the same build that publishes the site. Post a review and its machine-readable version exists the moment the page does.

The publishing pipeline
#

A review is pushed to GitHub, built by Hugo in Actions, and served as HTML and JSON from GitHub Pages and a CDN.
Publishing is a git push. The same build that renders the site emits the JSON the recommender reads.

Publishing is a git push. GitHub Actions builds the site with Hugo and deploys it to GitHub Pages, and the pages and the JSON go out together. The site deploy is the only deploy. The widget fetches both JSON files when you open it, so a new film is recommendable on the next page load after the site goes live.

How a recommendation gets made
#

The widget runs the interview and makes every decision in code:

  • Rating. You name a film you have seen in the search box, or pick one of the titles on offer. The search runs over the catalog in memory. It ignores case, accents, punctuation and a leading “the”, accepts a year (“dune 2021”), and tolerates small typos. One clear match is put to you as “Did you mean…”. Several are offered as chips.
  • My reaction. The line I answer each rating with is drawn from a pool. Your stars are compared against mine, a stance falls out (agreement, you above me, me above you), and a line is drawn from that stance’s pool of 33 or 34 with repeats excluded. Agree with me three times running and the line sometimes counts the streak.
  • My words, your verdict. After each rating the bot shows the eight adjectives from my review as chips. Click a word once to agree with it, again to disagree.
  • One matchup. After five ratings, the bot asks which you liked more of the two films you rated that I rated highest.
  • The pick. Your answers become a weight per adjective. Agreeing raises a word, disagreeing lowers it, a rating above or below three stars with no chips nudges all eight of that film’s words, and the matchup moves the winner’s words up and the loser’s down. Each word is scaled by how rare it is across the catalog, so the common words do not decide every pick. “Restrained” alone is on over 40 percent of the films. Every unseen film is scored by its eight adjectives plus a small weight for my own rating, and the pick is drawn from the top ten, weighted toward the top. Films you rated and anything already proposed are excluded.
  • A proposal costs nothing. The bot names its pick and asks whether you have seen it. “I’ve seen it” adds the film to the exclusion list and re-picks. “Not yet” gets the pitch.
  • The pitch. A one-sentence lead-in, the tagline from my review, and a sentence naming the adjectives the film shares with the ones you favored. When none overlap, it names two of the film’s own words instead. A link to the full review follows, and “Show me another” re-picks.

The widget
#

The chat is a React 19 app in TypeScript, built with Vite in library mode. The build emits one self-contained ES module and one stylesheet into the site’s static files, and Hugo ships them like any other asset. Cloudscape supplies the buttons and the dark-mode theming, synced to the site’s theme with a MutationObserver. The build strips Cloudscape’s inlined Open Sans, so the widget uses the site’s fonts. The transcript, the bubbles, and the chips are custom.

Nothing loads until it is asked for. The launcher appears only on the movie pages, and the first click dynamic-imports the module with a SHA-256 content hash appended to the URL at build time, so a new deploy invalidates caches by itself. The interview is a reducer state machine with named phases (gate, rate, confirm, stars, react, pairs, propose, recommend, followup), which is why the bot always knows what to ask next. Titles to rate are dealt four at a time from the newest films in the same /movies/index.json, shuffled so repeat visits differ. After your first rating, a “just pick for me” chip skips the rest of the interview. Progress persists in sessionStorage, so closing and reopening the panel resumes mid-interview and closing the tab forgets you.

The whole stack
#

Static files on a CDN and a script in your browser. Opening the bot makes two requests, both to this site, for the catalog and the adjectives. Nothing you enter is sent anywhere or stored past the tab. It reads my reviews, matches your taste against mine, and pitches one film in my voice, built around a line I actually wrote.