Skip to content
/ mya88 Public

Youtube live stream chat message viewer powered by Next & official data APIv3

Notifications You must be signed in to change notification settings

sawaYch/mya88

Repository files navigation

Mya88

Alt text

Problem Statement

Mya regularly say 'bye bye' to the audience and read each audience's name one by one before live stream end. Usually, the chatroom contains some 'bye bye' message that mixed with other unrelated message, which cause Mya difficult to see and differentiate the messages from distinct user. Can you help Mya write a program to solve this issue?

Usage

This webapp is basically youtube live chat message viewer powered by NextJS.

  1. When you ready to say good-bye, open this webapp.
  2. Input the passphrase to authenticate.
  3. Input the live stream URL, for example https://www.youtube.com/watch?v=92VgDXjI4Xg.
  4. List of youtube chat messages will show and auto update periodically.
  5. Mouse click on the list item, the user message will be marked as "Read" (Green color). The future incoming message of that user will also marked as "Read" automatically.

UI Map

Mya88 UI Map

Notices

🗝️ Secret Code Protection: only designated individuals can use this application.
✅ Filtering on chat message by superchat / member gift types.
👁️ Distinguish different author role and types of message.
✨ This webapp can ONLY retrieve the chat message published from current moment.
✨ This webapp consume Youtube Data API v3, which has daily quota limit (Don't worry, it's free). If you try to open this webapp to record the message of live stream from the beginning, it may exhaust API quota. I personally suggest not to doing this.
Here is the testing statistic:

Development

Setup env var

create .env.local in project root directory, fill in your youtube API token and mya88 app passphrase.

YT_DATA_API_TOKEN=
YT_DATA_API_TOKEN_DEV=
YT_DATA_API_TOKEN_BAK=
PASSPHRASE=
PASSPHRASE_DEV=
PASSPHRASE_BAK=

Start development server

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

🚨 Remember to add env var above to Vercel.

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Youtube live stream chat message viewer powered by Next & official data APIv3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages