Skip to content
Gurley Studios
Latest milestone: Episodes use only their own pages

Rivulet Insights

X-Ray style cast and trivia inside Rivulet

Insights trivia cards over a paused movie
The Insights cast tab

Insights is the X-Ray style panel in Rivulet, my Apple TV app. Pull it up while something plays to see who's in it and read trivia about the movie or episode. Amazon's X-Ray and Apple's InSight are closed to other apps, and I couldn't find anyone selling trivia to an app like mine, so I make my own.

The trivia is made ahead of time on a GPU machine in my house. For each title a pipeline finds the Wikipedia article and, when there's a good one, a fan wiki page. A local language model pulls facts out of those pages and rewrites them, and a second pass checks each fact against its source. The facts that pass go up to Cloudflare, and a Worker hands them to the app. If you play something with no trivia yet, Rivulet asks for it and the home machine moves it to the front of the queue.

The panel has been in Rivulet since 1.0.2 in July 2026, and it's still a work in progress. Most of my time since has gone into picking the right source page, especially for single TV episodes.

How it works

  • Cast and trivia during playback

    Open the panel while something plays to see the cast and the trivia for that movie or episode. Cast comes from TMDB. Trivia is split into tabs by category, such as production, casting, lore, and goofs, and the panel credits its sources at the bottom.

  • Top 10

    The model scores every fact from 1 to 10 for how interesting it is. Facts scoring 7 or higher fill a Top 10 tab. Anything at 3 or below is dropped before publishing.

  • Made at home

    Every step runs on my home server with one open model. No hosted AI service sees the pages or the facts.

  • Wikipedia plus the right fan wiki

    The model sorts candidate fan wikis into ones about this title or its franchise, broader wikis, and unrelated ones, and code picks from that. The choice is saved, so later episodes of a show go straight to the same wiki.

  • Checked before it goes out

    A second pass throws out facts the source passage doesn't support, bare cast lines like "X played Y", and near duplicates. It also rechecks each fact's category and spoiler tag. A title keeps at most 60 facts.

  • Episodes get their own facts

    An episode only uses a page written about that episode. When it has facts of its own, the panel shows only those, so watching a season straight through doesn't repeat the same show facts every time. An episode with nothing of its own gets the show's general facts, which leave out plot.

  • Made on demand

    Play something with no trivia and Rivulet asks for it. The request waits in a queue on Cloudflare, and the home machine takes it ahead of any scheduled work. The panel checks again after 20 seconds, then every two minutes for about 20 minutes.

  • Popular titles ahead of time

    Between requests the machine works through TMDB's popular and trending lists and new episodes of shows that are still airing. Recent releases get redone on a short cycle while their wiki pages are still filling in.

  • Empty results say why

    When a title has nothing to share, the app gets a definite empty answer and stops asking. Each empty result records the reason, and the reason sets when it's tried again. Skipped genres like news never come back. An episode with no page yet gets checked daily for its first 30 days, and an older title with no source waits 180 days.

  • Only Rivulet can ask

    Reading trivia and requesting it both require Apple's App Attest, so calls have to come from Rivulet running on an Apple device. Requests carry public TMDB ids and titles, and the Worker keeps no request logs.

Plan

  1. Done

    Panel and trivia pipeline

    The Insights panel with cast and trivia went out in Rivulet 1.0.2 in July 2026, backed by the offline pipeline and a Cloudflare Worker.

  2. Done

    On-demand requests and refresh

    Playing a title with no trivia queues it. Scheduled work covers popular titles and new episodes, and recent titles get redone while their pages fill in.

  3. Done

    App Attest

    Reading and requesting trivia only work from Rivulet on an Apple device.

  4. Now

    Coverage and accuracy

    Finding the right page for every title and episode.

  5. Next

    Report a fact

    Each fact gets a Report option with a few reasons, like inaccurate or spoiler. Once a fact gets enough reports, it's hidden for everyone.

  6. Later

    Trivia timed to the scene

    Show a fact at the moment it applies. Every copy of a movie has different timing, so the plan is to tie each fact to a line of dialogue and find that line in the viewer's own subtitles.

  7. Later

    Wikiquote as a source

    On hold. Fan wiki quote sections already cover most of what it would add.

FAQ

Why make trivia instead of licensing it?

I couldn't find anyone who sells it to an app like mine. Amazon's X-Ray and Apple's InSight are closed to other apps, and IMDb's trivia can't be redistributed without an enterprise license. TMDB has cast and metadata and no trivia.

Does the model make things up?

It's only asked to pull facts out of the page in front of it and put them in its own words. A second pass checks each fact against the passage it came from and drops anything the passage doesn't support. The panel names its sources at the bottom.

Where does it run?

The pipeline runs in a container on my home server, which has an RTX 5090. One open model, Qwen3.6 27B served by vLLM, handles every step. Cloudflare stores the finished files, and a Worker serves them to the app.

What does Rivulet send?

To read trivia, the TMDB id of what's playing, plus season and episode for TV. A request for new trivia adds the title and year. Both need App Attest, and the Worker keeps no request logs.

Why doesn't every episode have trivia?

Plenty of episodes have no page of their own on Wikipedia or a fan wiki. Those get the show's general facts instead. News, talk, soap, and reality shows are skipped. A new episode gets checked again every day for its first 30 days, since its page often doesn't exist yet.

What about spoilers?

Each fact is tagged as no spoiler, a spoiler for this title, or a spoiler for later episodes. Opening the trivia is asking for it, so the panel shows every fact, plot details included. The show-wide facts leave plot out entirely.

What's the hardest part?

Finding the right page. At different points, ranking wikis by size matched Breaking Bad to the Harry Potter wiki and The Big Bang Theory to Memory Alpha, the Star Trek wiki. A page with no trivia also looks the same from outside as a page whose trivia sits under a heading the pipeline doesn't know. One Piece's wiki files its trivia under "Anime Notes", and 1,059 episodes looked empty until I audited them in August 2026.

Is the trivia timed to the scene?

Not yet. Facts show in the panel whenever you open it. Timing is hard because every copy of a movie has its own cuts and intro length, so the plan is to tie each fact to a line of dialogue and find it in your own subtitles.

X-Ray style cast and trivia inside Rivulet