This demo is a fan app for a football match between Leeds United and Southampton. A Node.js simulator replays the match on a timeline. It publishes score and stats, commentary, crowd chat, reactions, and polls, each on its own PubNub channel. The web app is built with Next.js and the PubNub Chat SDK, which runs on the PubNub JavaScript SDK.
When you pick a fan, the app gets an Access Manager token for that user and loads their profile and points from App Context. The chat checks the user's mute and ban status and blocks the message box when a moderator restricts them. The "Ask me how?" box calls a PubNub Function over HTTP and shows its answer. The source code is open on GitHub, and the full-screen version adds guides that explain how each part is built.