Overlay hosting that just works in OBS
A custom overlay is a small web page that OBS shows as a browser source. To load reliably in every stream, it belongs on a fixed address with HTTPS, not on your PC. On EStage it runs on your domain.
How an overlay gets into OBS
OBS has a source called browser source. It shows a web page in your scene, at the width and height you set. Anything a web page can do, your overlay can do: animations, sounds, images, text that changes live.
An overlay therefore has two parts:
- The page itself: HTML, CSS and JavaScript that OBS loads.
- A small server, if the overlay should react to something: it receives events from Twitch or your bot and sends them to the page in OBS by WebSocket or server-sent events.
On EStage both run as one service on an address such as https://overlay.yourchannel.tv. In OBS you only enter that address.
Why not on the streaming PC
An overlay server on the same PC that streams works until it does not. It takes processing time from the encoder. It does not come back when Windows restarts. And to receive Twitch events by webhook it would need a public HTTPS address, which a home connection does not have.
On EStage it runs independently of your PC, with a proper certificate and no open ports at home.
How to set it up
- Push a repo. A static overlay needs only HTML files and the static site template. An overlay with its own server is built with a
Dockerfileorinit.sh, in any language. - Enter a domain. For example
overlay.yourchannel.tv. After you confirm it with a TXT record, we fetch the certificate. - Add it to OBS. New browser source, enter the address, set width and height to your scene, usually 1920 by 1080.
- Connect it to your bot. If your bot runs in the same account, the overlay reaches it on the private network, without a detour through the internet.
Step by step, with a transparent background and a connection that comes back by itself after a drop, it is in the guide OBS overlay on your own domain.
What an overlay needs
A static overlay needs very little memory; 128 MB is plenty. An overlay with its own server in Node.js or Python usually needs 128 to 256 MB. So in the smallest 2 GB plan, an overlay, a bot and a database run side by side. What a plan includes is on Pricing.
Common questions
Why not just load a local file in OBS?
For an image that is enough. As soon as your overlay should react to events, it needs a server that receives events from Twitch or your bot and passes them on to OBS. Running that server on your streaming PC costs performance there and fails with every restart.
Does a transparent background work?
Yes. The OBS browser source shows a transparent page background as see-through. Set the background of html and body to transparent in your CSS.
Can I share an overlay with friends or mods?
Yes. The address works in any OBS, co-streams included. If the overlay should stay private, add a long key to the address and check it in your code.
How do I update the overlay during a stream?
Push the new version. As soon as the build is done it runs, and when you reload the browser source, OBS shows it.