This project provides chat overlays for live streams on the YouTube, Twitch, and Kick platforms. It includes specific scripts for each platform and a proxy server to facilitate integration with YouTube's live chat.
- Installation
- Overlay Configuration
- Accepted Parameters
- Generating the Twitch Token
- YouTube Livechat Proxy
To get started, follow the steps below:
- Clone the repository:
git clone https://github.com/ericknbe/livestream-chat-overlay.git
- Navigate to the project directory:
cd livestream-chat-overlay
- Install the dependencies:
npm install
- Start the server:
The server will be running at
npm start
http://localhost:8080
.
To configure the YouTube overlay, add one of the following parameters to the URL:
handle
: The channel handle (e.g.,mychannel
or@mychannel
). The "@" is optional.id
: The video ID (e.g.,dQw4w9WgXcQ
).channelId
: The channel ID (e.g.,UCxxxxxxxxxxxxxxxxxxxxxx
).
Example:
http://localhost:8080/?handle=mychannel
You will also need a YouTube livechat proxy configured (see the YouTube Livechat Proxy section), or you can use this public proxy: https://youtube-livechat-proxy.onrender.com/chat
via the server
parameter.
To configure the Twitch overlay, provide the following parameters in the URL:
twitch
: The Twitch channel name (e.g.,mychannel
).token
: The Twitch authentication token (see Generating the Twitch Token).clientId
: (Optional) Twitch application client ID. If not provided, uses the default.
Example:
http://localhost:8080/?twitch=mychannel&token=yourtoken
To configure the Kick overlay, add the following parameter to the URL:
kick
: The Kick channel name (e.g.,mychannel
).
Example:
http://localhost:8080/?kick=mychannel
These parameters can be used on all platforms:
hide_commands
: Hides messages that start with!
(true
orfalse
). Default:false
.- Example:
?hide_commands=true
- Example:
bots
: Shows or hides bot messages (true
orfalse
). Default:false
.- Example:
?bots=true
- Example:
hide_badges
: Hides user badges (true
orfalse
). Default:false
.- Example:
?hide_badges=true
- Example:
server
: URL of the livechat proxy server. Default:localhost:3000/chat
.- Example:
?server=https://my-proxy.com/chat
- Example:
protocol
: Protocol of the proxy server (http
orhttps
). Default:http
.- Example:
?protocol=https
- Example:
globalEmotes
: Enables third-party global emotes (true
orfalse
). Default:true
.- Example:
?globalEmotes=false
- Example:
progressive
: Renders messages progressively (true
orfalse
). Default:true
.- Example:
?progressive=false
- Example:
showSuperChats
: Shows Super Chats (true
orfalse
). Default:true
.- Example:
?showSuperChats=false
- Example:
showMemberships
: Shows membership messages (true
orfalse
). Default:true
.- Example:
?showMemberships=false
- Example:
showEngagements
: Shows engagement messages (true
orfalse
). Default:true
.- Example:
?showEngagements=false
- Example:
token
: Twitch authentication token (required for direct API use).- Example:
?token=yourtoken
- Example:
clientId
: Twitch application client ID. If not provided, uses the defaultgp762nuuoqcoxypju8c569th9wz7q5
.- Example:
?clientId=yourclientid
- Example:
Note: If token
is provided in the URL, the client will use the Twitch API directly. Otherwise, it will use the server proxy with credentials from .env
.
- No additional specific parameters.
To use the Twitch overlay, you need an authentication token. Follow the steps below:
- Go to the Twitch Token Generator.
- Click on "Generate Token".
- Authorize access to your Twitch account.
- Copy the generated token and add it to the URL as the
token
parameter.
Note: The default Client ID used in this project is gp762nuuoqcoxypju8c569th9wz7q5
, provided by the link above, configured with the chat:read
scope. If you prefer, you can create your own Client ID and token with the necessary scopes (such as chat:read
) at Twitch Developer Console.
The YouTube overlay requires a proxy server to communicate with YouTube's live chat API. You can set up your own proxy server using the code and instructions available in the youtube-livechat-proxy repository, or you can use the public proxy at https://youtube-livechat-proxy.onrender.com/chat
.
By default, the script expects the proxy to be at localhost:3000/chat
, but you can change it using the server
and protocol
parameters.
Este projeto fornece overlays de chat para transmissões ao vivo nas plataformas YouTube, Twitch e Kick. Ele inclui scripts específicos para cada plataforma e um servidor proxy para facilitar a integração com o chat ao vivo do YouTube.
- Instalação
- Configuração do Overlay
- Parâmetros Aceitos
- Gerando o Token da Twitch
- Proxy do Livechat do YouTube
Para começar, siga os passos abaixo:
- Clone o repositório:
git clone https://github.com/ericknbe/livestream-chat-overlay.git
- Navegue até o diretório do projeto:
cd livestream-chat-overlay
- Instale as dependências:
npm install
- Inicie o servidor:
O servidor estará rodando em
npm start
http://localhost:8080
.
Para configurar o overlay do YouTube, adicione um dos seguintes parâmetros na URL:
handle
: O handle do canal (ex.:meucanal
ou@meucanal
). O "@" é opcional.id
: O ID do vídeo (ex.:dQw4w9WgXcQ
).channelId
: O ID do canal (ex.:UCxxxxxxxxxxxxxxxxxxxxxx
).
Exemplo:
http://localhost:8080/?handle=meucanal
Você também precisará de um proxy do livechat do YouTube configurado (veja a seção Proxy do Livechat do YouTube), ou use esse proxy público: https://youtube-livechat-proxy.onrender.com/chat
pelo parâmetro server
.
Para configurar o overlay do Twitch, forneça os seguintes parâmetros na URL:
twitch
: O nome do canal Twitch (ex.:meucanal
).token
: O token de autenticação da Twitch (veja Gerando o Token da Twitch).clientId
: (Opcional) Client ID da aplicação Twitch. Se não fornecido, usa o padrão.
Exemplo:
http://localhost:8080/?twitch=meucanal&token=seutoken
Para configurar o overlay do Kick, adicione o seguinte parâmetro na URL:
kick
: O nome do canal Kick (ex.:meucanal
).
Exemplo:
http://localhost:8080/?kick=meucanal
Esses parâmetros podem ser usados em todas as plataformas:
hide_commands
: Oculta mensagens que começam com!
(true
oufalse
). Padrão:false
.- Exemplo:
?hide_commands=true
- Exemplo:
bots
: Mostra ou oculta mensagens de bots (true
oufalse
). Padrão:false
.- Exemplo:
?bots=true
- Exemplo:
hide_badges
: Oculta badges dos usuários (true
oufalse
). Padrão:false
.- Exemplo:
?hide_badges=true
- Exemplo:
server
: URL do servidor proxy do livechat. Padrão:localhost:3000/chat
.- Exemplo:
?server=https://meu-proxy.com/chat
- Exemplo:
protocol
: Protocolo do servidor proxy (http
ouhttps
). Padrão:http
.- Exemplo:
?protocol=https
- Exemplo:
globalEmotes
: Habilita emotes globais de terceiros (true
oufalse
). Padrão:true
.- Exemplo:
?globalEmotes=false
- Exemplo:
progressive
: Renderiza mensagens progressivamente (true
oufalse
). Padrão:true
.- Exemplo:
?progressive=false
- Exemplo:
showSuperChats
: Mostra Super Chats (true
oufalse
). Padrão:true
.- Exemplo:
?showSuperChats=false
- Exemplo:
showMemberships
: Mostra mensagens de membros (true
oufalse
). Padrão:true
.- Exemplo:
?showMemberships=false
- Exemplo:
showEngagements
: Mostra mensagens de engajamento (true
oufalse
). Padrão:true
.- Exemplo:
?showEngagements=false
- Exemplo:
token
: Token de autenticação da Twitch (obrigatório para uso direto da API).- Exemplo:
?token=seutoken
- Exemplo:
clientId
: Client ID da aplicação Twitch. Se não fornecido, usa o padrãogp762nuuoqcoxypju8c569th9wz7q5
.- Exemplo:
?clientId=seuclientid
- Exemplo:
Nota: Se token
for fornecido na URL, o cliente usará a API direta da Twitch. Se não, usará o proxy do servidor com as credenciais do .env
.
- Nenhum parâmetro adicional específico.
Para usar o overlay do Twitch, você precisa de um token de autenticação. Siga os passos abaixo:
- Acesse o Twitch Token Generator.
- Clique em "Generate Token".
- Autorize o acesso à sua conta Twitch.
- Copie o token gerado e adicione-o à URL como o parâmetro
token
.
Nota: O Client ID padrão usado neste projeto é gp762nuuoqcoxypju8c569th9wz7q5
, fornecido pelo link acima, configurado com o scope chat:read
. Se preferir, você pode criar seu próprio Client ID e token com os scopes necessários (como chat:read
) em Twitch Developer Console.
O overlay do YouTube requer um servidor proxy para se comunicar com a API de chat ao vivo do YouTube. O código e as instruções de configuração estão disponíveis no repositório youtube-livechat-proxy. Siga as instruções no repositório para configurá-lo, ou use esse proxy público: https://youtube-livechat-proxy.onrender.com/chat
pelo parâmetro server
.
Por padrão, o script espera que o proxy esteja em localhost:3000/chat
, mas você pode alterá-lo usando os parâmetros server
e protocol
.