Author: Harry Scanlan
Date Created: May 31, 2025
Created for my friend; you know who you are.
This application allows you to open at 1920x1080 Browser window full screen that you can then attach to OBS in order to stream your PS5/XBOX/Console to other streaming services, without having to pay for a stream relay.
A minimal Node.js/Express application that serves a full-screen Twitch embed plus a cropped, scaled-up overlay of a specific rectangle (e.g. where an “error” message appears). The app uses EJS for templating and serves static assets from public/.
- Full-screen Twitch player (16:9) served at
http://localhost:3000 - Built with Express (ESM) and EJS.
- Customizable CSS offsets to target any rectangle in the 1920×1080 embed.
- Node.js ≥ 14
- npm
- Clone or download this repository.
- From the project root, run:
This installs:
npm install
expressejs
In views/index.ejs, locate the <iframe> tag:
<iframe
id="twitch-base"
src="https://player.twitch.tv/?channel=TWITCH_USERNAME&parent=localhost"
allowfullscreen="true"
scrolling="no">
</iframe>- Replace
TWITCH_USERNAMEwith your Twitch channel name. - If you serve from a domain other than
localhost, changeparent=localhostto your domain (e.g.parent=example.com).
- From project root:
node server.js
- Open your browser to:
http://localhost:3000 - You should see:
- The full-screen Twitch player in the background
- Parent mismatch error
- Twitch requires the
parent=parameter to exactly match your host (nohttp://). - If testing on
localhost:3000, useparent=localhost. - If deployed to
example.com, useparent=example.com.
- Twitch requires the
- Open OBS
- Add a new source by clicking the + button
- Select
"Browser", create new - set the URL to
http://localhost:3000 - set the width to
1920 - set the height to
1080- This is not where you setup your vertical resolution. It must be 1920x1080 to get the best quality and retain aspect ratio
- You can likely google this for now, but I will add more if required.
- You can likely google this for now, but I will add more if required.
This project is provided “as-is” without warranty. Feel free to modify and use in your own projects.