Inspiration

Twitch communities build their own language: recurring jokes, memorable discoveries, and stories that only make sense to that channel. We wanted to turn those shared memories into something chat could play together, rather than another chatbot replying to individual messages.

What it does

Lorekeeper turns streamer-approved community memories into a collaborative, meaning-based word hunt. Viewers choose how a Charm helps, then guess a hidden word in Twitch chat using !guess WORD. The overlay shows how close the community is by meaning, and the reveal explains how the answer connects to the original memory.

Lorekeeper also supports viewer privacy commands: !whatdoyouknow privately shares a viewer’s saved Memory and game profile, while !forgetme deletes their data and opts them out of future Memory collection until they send !rememberme.

How we built it

Lorekeeper connects to Twitch through OAuth and EventSub WebSockets. It stores incoming events in Redpanda, projects application state into PostgreSQL, and uses Redis for rate limiting. A Python service powers the dashboard, API, game logic, and OBS browser overlay, with server-sent events keeping the experience up to date.

A local embedding model, such as one served by LM Studio, scores guesses against a calibrated reference vocabulary. An optional local text model enriches story details; curated templates provide a fallback. Prometheus and Grafana expose pipeline metrics and load-test results.

Challenges we ran into

  • Making semantic heat useful: raw cosine similarity made unrelated words look equally close, so we calibrated guesses by rank against a reference vocabulary.
  • Keeping Hunts connected to the community’s stories while ensuring the answer is related to, but not copied directly from, the original message.
  • Handling Twitch privacy commands through private Whispers, which require the right authorization scope and depend on Twitch and recipient settings.
  • Making synthetic load testing useful without confusing it with real Twitch activity.

Accomplishments that we're proud of

  • A working Twitch-connected game loop, from EventSub chat through a shared Hunt to an on-stream result.
  • Streamer approval before community Memories become part of the game.
  • Rank-based semantic scoring, a live OBS overlay, and persistent viewer contributions.
  • Local model support with a curated offline practice mode.
  • Privacy controls that let viewers inspect or

Built With

Share this project:

Updates

Submission history