Skip to content

About

Go service that brings Twitch lives, VODs, clips and chat to TypeType

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

TypeType

TypeType Live

Twitch for TypeType: lives, VODs, clips and chat through the instance.

You want to know the current position of TypeType about AI ? Go check this.

Twitch for TypeType. A Go service that TypeType-Server calls to browse Twitch, play lives, VODs and clips, and use the chat. It is optional: an instance without it works as before.

What it does

  • Talks to Twitch the way Xtra does (GQL and Usher).
  • Rewrites every HLS playlist so segments go through signed links on the instance. The viewer's browser never contacts Twitch.
  • Ads: switches to an ad-free backup stream when Twitch offers one, otherwise cuts the ad segments.
  • Chat: one anonymous IRC connection per channel, shared with every viewer over SSE. Sending needs a linked account.
  • Account linking with a code on twitch.tv/activate. The server keeps the token, encrypted.

Run

docker build -t typetype-live .
Variable Default
LIVE_SECRET required Shared with the server, 32+ characters (or LIVE_SECRET_FILE)
LIVE_SIGNING_KEY random Keeps signed links valid across restarts (or LIVE_SIGNING_KEY_FILE)
LIVE_PUBLIC_BASE Public prefix of the HLS links, e.g. /live
LIVE_SEGMENT_CACHE 32MiB About channels watched x segment size x 6
LIVE_ADDR :8080
LIVE_LOG_LEVEL info

Do not publish the port. Only the server and the web container talk to it.

Develop

./check.sh

Needs Go 1.27, gofumpt, golangci-lint, govulncheck and deadcode.

Thanks

Xtra: the Twitch logic here is ported from it.

License

See LICENSE.

About

Go service that brings Twitch lives, VODs, clips and chat to TypeType

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages