Skip to content
← Back to Projects

April 20, 2024 (2y ago)

Real-time Sentiment Analysis Dashboard for Streaming Platforms

Overview

A real-time Twitch chat sentiment dashboard for streamers, built end to end. Live chat is ingested through a streaming pipeline, scored for sentiment, aggregated, and pushed to a dashboard that shows the mood of the chat as it changes.

Status: built and working, never deployed. I shelved it deliberately (see below).

What I built

  • Ingestion: a Twitch IRC client feeding an AWS Kinesis stream, with a consumer and a batch processor that filters, deduplicates and samples messages.
  • Sentiment layer: a provider abstraction, so the same pipeline can run on AWS Comprehend, Gemini Flash, a mock provider or a custom model.
  • Aggregation and alerts: sentiment aggregation, a smart message selector and an alert evaluator.
  • Real-time delivery: a WebSocket server with a Redis adapter and pub/sub.
  • Dashboard: a Next.js 14 interface (App Router, TypeScript, Tailwind) with a Mood Pulse, Smart Messages and an Alert Banner.
  • Also included: authentication (OAuth and JWT), rate limiting, an opt-out mechanism and a retention policy.

The decision that shaped it

I checked the design against the Twitch Developer Services Agreement. Section VI.C restricts storing, selling, monetising or distributing Twitch data for commercial purposes without permission, and my original business model breached it.

I redesigned the data model to comply. Then I looked at what the compliant version was worth: it had no defensible advantage in an already crowded market. I chose to shelve the product rather than ship something compliant but undifferentiated.

Status and limits

  • The backend and frontend are complete and working locally.
  • It has never been deployed and has no users.
  • Throughput targets are design targets. Load tests were not run.
  • The code is in a private repository. The landing page built for the product is public: Chatlytics-landingpage.