INSPIRATION: Twitch chat moves quickly. A viewer may share a clever theory, notice a detail, or make a memorable observation, and it can disappear in the scroll before the streamer has time to respond. Chat Cartographer turns those community contributions into a shared map the streamer and viewers can look at together.
WHAT IT DOES:
A viewer types !map followed by a short thought in Twitch chat. Chat Cartographer receives the message and adds it to the map as a signal. A lightweight keyword heuristic labels each signal as a Theory, Discovery, or Moment. A recent-signals feed keeps the newest contributions visible, and the streamer can archive individual signals or clear the map. Demo Mode lets someone try the interface without connecting Twitch.
HOW I BUILT IT AND USED CODEX:
I built Chat Cartographer as a desktop browser app with HTML, CSS, and JavaScript. The connected mode listens to Twitch IRC over a secure WebSocket and uses a Twitch user OAuth token with chat: read access. Twitch CLI helps generate the token for this prototype. The token is entered in the browser, held only in memory for the session, and cleared from the input after connection.
I used Open AI Codex to shape the idea from the hackathon brief, build the visual interface and map interaction, connect the app to Twitch chat, and work through setup and debugging steps. I then connected the app to the Twitch channel wkse60 and confirmed that !map hello messages appeared as map signals.
Viewers post !map followed by a short thought, and the app turns each message into a signal on a shared map. A simple keyword heuristic labels signals as Theory, Discovery, or Moment. We used Twitch CLI to generate a token with chat: read access.
WHAT I LEARNED AND CHALLENGES: The main challenge was getting the Twitch connection details right: the channel being read and the account that owns the OAuth token are separate fields, and the token needs chat-read permission. Working through the Twitch CLI setup and testing real chat messages helped me understand how a browser app can interact with Twitch chat over IRC. I had to troubleshoot Twitch CLI configuration and make sure the browser app handled the chat connection correctly without saving the token. I learned how a browser app can receive Twitch chat through IRC over a secure WebSocket, how Twitch OAuth scopes affect access, and why the channel name must be distinguished from the account that owns the token. I also learned to keep the interaction small and clear enough to fit naturally into a stream.
CURRENT LIMITATIONS: This is a working proof of concept. Signal categories use a simple keyword heuristic, and signals stay in browser memory rather than being saved permanently. The app does not yet include automatic moderation or a built-in OAuth authorization flow.
ACCOMPLISHMENTS: I turned fast-moving Twitch chat into a visual community map. Viewers can add signals with one command, see them appear on the map, and have them categorized as theories, discoveries, or moments. I'm proud that I connected the prototype to a real Twitch channel and confirmed that chat messages appeared as map signals.
WHAT'S NEXT FOR CARTOGRAPHER: Next, I’d add stronger moderation and spam controls, persistent storage for signals, and a built-in Twitch authorization flow. I’d also like to give streamers more control over signal categories and map presentation.
Built With
- cli
- codex
- css
- html
- irc
- javascript
- twitch
- websocket
