rmanky / sveltekit-twitch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Here be 🐉's...

SvelteKit Twitch

A sveltekit powered Twitch clone.

sveltekit-twitch

About

  • Emotes are obtained through Twitch's global emotes and the top 300 BTTV emotes

  • Usernames, along with their hue, are randomly generated and stored in localStorage

  • Chat is powered by socket.io

  • RTMP Server for streaming via OBS

    • The Server is rtmp://localhost/live
    • The Stream Key is svelte
  • FMPEG converts the RTMP stream to a HLS stream for Vime

Setup

  1. git clone https://github.com/rmanky/sveltekit-twitch
  2. npm install
  3. Create a .env file
    • Install ffmpeg and set FFMPEG_PATH
    • Create an ngrok account and set NGROK_TOKEN
    FFMPEG_PATH=PATH_TO_FFMPEG.EXE
    NGROK_TOKEN=YOUR_NGROK_TOKEN
    
  4. npm run build
  5. npm run adapt
  6. node server.js
  7. Open the HTTP URL that is printed to the console

About


Languages

Language:Svelte 57.5%Language:JavaScript 36.0%Language:HTML 6.4%