Stream Blitz
Stream Blitz is a service designed to make adding sound effects to your Twitch™ streams feel like deploying serverless functions.
⚠️ This product is still in alpha. If you’d like to be added as an alpha tester, please contact jason@lengstorf.com.
How it works
- Join Stream Blitz
- Create a serverless handler
- Deploy to Netlify
- Run your sound effect!
Creating a Stream Blitz serverless handler
Install the serverless handler util
# install the handler util yarn add @stream-blitz/create-handler
Create a serverless function:
const createHandler = require('@stream-blitz/create-handler'); exports.handler = createHandler(() => ({ name: 'boop', // command to trigger this effect in chat, e.g. `!boop` message: 'you triggered !boop Kappa', // sent to the chat by Stream Blitz description: 'Information about the command', // shown in Stream Blitz audio: 'https://example.org/path/to/sound.mp3', // played in your overlay image: 'https://example.org/image.gif', // shown in the overlay duration: 10, // how long (in seconds) to show the overlay }));
Note: only
name
is required — the rest of the fields are optional and will be omitted if left out (e.g. you can send a chat message without an overlay and vice versa)Register your serverless function
Visit your Stream Blitz dashboard to pull in your effects!
API
The API for @stream-blitz/create-handler
tries to keep things as simple as possible:
Arguments
The handler function receives
TODO
- register chat handlers
- register custom overlay styles
- register custom overlay scripts
- add support for multi-channel commands (e.g. teams opting into SFX)