Socket
Book a DemoInstallSign in
Socket

@letruxux/youtube-chat

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@letruxux/youtube-chat

Zero dependencies, lightweight package to fetch YouTube live chat messages with no API key

1.0.7
latest
Source
npmnpm
Version published
Weekly downloads
10
42.86%
Maintainers
1
Weekly downloads
 
Created
Source

@letruxux/youtube-chat

Zero dependencies, lightweight package to fetch YouTube live chat messages with no API key. Supports both history fetching and realtime messages (with polling).

Installation

npm install @letruxux/youtube-chat
bun add @letruxux/youtube-chat
pnpm add @letruxux/youtube-chat
yarn add @letruxux/youtube-chat

Usage

import {
  ChatListener,
  getYouTubeLiveVideoId,
  fetchChatMessages,
} from "@letruxux/youtube-chat";

ChatListener

const livestreamId = await getYouTubeLiveVideoId("lofigirl");
const listener = new ChatListener(livestreamId, {
  /* config */
});

listener.onMessage((message) => {
  console.log(`${message.author}: ${message.text}`);
});

listener.start();

Types

Check the definitions file.

Keywords

youtube

FAQs

Package last updated on 29 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.