Home / use case

BubbleFacts: source-checked song facts on stream from a local 3B model

At a glance
Models & engines
Built-in model: Llama 3.2 3B run through node-llama-cpp inside an Electron app
Key gotcha
Grounding lowers the error rate but doesn't reach zero: small models merge clauses, drop hedges, move years and swap who did what.

What they built

Christopher Feyrer works on BubbleFacts, a free, MIT-licensed desktop app for musicians and DJs who stream. While someone plays a song, it shows short facts about that song as bubbles in OBS.

The facts are written by a small language model on the streamer's own computer, and the design question was how to make sure a wrong fact never reaches the screen, because a musician with hands on the instrument can't catch it live.

The answer was to ground the model in the song's Wikipedia article, screen every caption with plain, testable code instead of a second model, and abstain automatically when in doubt. The README discloses that most of the code was written with AI assistance, with a human reviewing and testing every change, including on live streams.

Setup

  • Built-in model: Llama 3.2 3B run through node-llama-cpp inside an Electron app
  • Data sources: Wikidata and MusicBrainz for basic facts, Wikipedia for grounding
  • Output: bubbles in OBS
  • No cloud AI; the local server only answers to the same computer

How it works

  1. The pipeline runs in a fixed order: song facts, Wikipedia, AI, screen, Wikidata/MusicBrainz, custom facts.
  2. Year, album and composer come straight from Wikidata and MusicBrainz with no model involved.
  3. The app finds the right Wikipedia article (rejecting near misses and disambiguation pages), prefers the lead and checkable sections, filters reception sections, and uses the settled older version of the article (a 72-hour rule).
  4. Every caption is screened by deterministic checks for names, support, attribution, frames and wording before it is shown; anything the source doesn't support is dropped.
  5. A content-standard word list runs on the source text before the model sees it and on the output after.

Results & numbers

  • Wrong captions are dropped automatically, with no review step, because a musician mid-song can't click anything.
  • When a wrong fact slips through, the streamer can press Wrong after the song; the song, caption, article and source sentence are logged locally so the case can be replayed against the screening code.

Gotchas

  • Grounding lowers the error rate but doesn't reach zero: small models merge clauses, drop hedges, move years and swap who did what.
  • Without its own system prompt, node-llama-cpp gave the model a default 'helpful assistant' prompt, which changed output compared with Ollama. Check what prompt you're actually sending if you switch runtimes.
  • Recent Wikipedia edits are the least reviewed, hence the 72-hour rule.
“The cost of a wrong fact is a musician being corrected in their own chat.”— Christopher Feyrer

Do it yourself

  1. Fetch basic song facts from Wikidata and MusicBrainz without a model.
  2. Find the song's Wikipedia article and use an older, settled revision.
  3. Have a local 3B model write captions only from that text.
  4. Screen each caption with deterministic code (names, numbers, attribution, hedges) and drop anything unsupported.
  5. Keep a local log of misses and replay it after each change.
Source: DEV Community (Christopher Feyrer) · Published 2026-11-21 · Added 2026-11-22. This write-up summarizes the original source; see it for full details.

Similar setups

A copy-paste path to a local OpenAI-compatible LLM endpoint with LM Studio, Ollama, or llama.cpp

Mikalai Karytka’s Nov 2026 guide walks through installing LM Studio’s lms CLI (plus Ollama and llama.cpp equivalents), sizing RAM for a quantized model, serving an OpenAI-compatible API, and checking tool-calling before you build agents on top.

Mikalai Karytka (DEV.to) · 2026-11-05

Typd: offline voice dictation where one fine-tuned Qwen3-ASR model in llama.cpp writes the finished text

Mehmet Dedeler built Typd, a GPL-3.0 Electron app for Windows and Apple-silicon Macs that runs a dictation model fine-tuned from Qwen3-ASR 1.7B in llama-server and pastes cleaned-up text into whatever app you're typing in.

Typd on GitHub · 2026-11-16

LM Studio vs Ollama on an RTX 5080: memory settings mattered more than the app

LK Wood IV ran LM Studio and Ollama on the same RTX 5080 with identical GGUF files and found the apps within 14% of each other, while one wrong offload or context setting cost up to 3.4x.

LK Wood IV (DEV Community) · 2026-11-01

The Dogu Remembers: a 40-second short film made entirely with local models

unotchi made a 40-second film of a Jōmon clay figure speaking, with the script from a local Japanese Llama model in llama.cpp, the voice from GPT-SoVITS, the images rendered in Blender and the edit in ffmpeg.

unotchi (DEV Community) · 2026-10-31