Just a lil' pal popping up on your stream.
When added as a browser source to your streaming software of choice (e.g. OBS), a lil' pal will appear after a random amount of time on a corner of your screen. Why? Because it's fun!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Before you begin, ensure you have met the following requirements:
- Download and install Node.js matching for your operating system.
- The LTS (Long-term Support) version is recommended for most users.
- For deployment, any static hosting service (Netlify, Vercel, GitHub Pages, etc.)
- Download the code and go to the Streampals folder.
- Install dependencies:
npm install - For development:
npm run dev(starts Vite dev server on http://localhost:5173) - For production build:
npm run build - For testing production build:
npm run serve(starts Vite preview server on http://localhost:4173)
Streampals is now a static web application that can be deployed to any static hosting service.
- Run
npm run buildto create the production build - The built files will be in the
distfolder
Netlify:
- Connect your GitHub repository to Netlify
- Set build command:
npm run build - Set publish directory:
dist - Deploy!
Vercel:
- Connect your GitHub repository to Vercel
- Vercel will automatically detect Vite and configure the build
- Deploy!
GitHub Pages:
- Enable GitHub Pages in repository settings
- Set source to GitHub Actions
- Create
.github/workflows/deploy.ymlwith Vite build action - Push to trigger deployment
Manual Deployment:
- Upload the contents of the
distfolder to your web server - Point your domain to the
index.htmlfile - That's it!
- Add a new Browser Source to your broadcasting software (e.g. OBS).
- In the URL field, enter your deployed URL (e.g.,
https://your-domain.comorhttps://streampals.zephsinx.com).- If running locally, use
http://localhost:5173(dev server) orhttp://localhost:4173(preview server)
- If running locally, use
- Enjoy!
The default behavior of Streampals can be modified by adding query parameters to the Streampals URL.
Example:
https://your-domain.com?skipDelay=true&maxWidth=30&maxHeight=45The displayed media can be overriden using the mediaUrl parameter. Keep in mind, while Streampals attempts to
calculate the media duration, you may need to manually specify the display time (in seconds) via the mediaDuration
parameter.
For example:
https://your-domain.com?mediaUrl=https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif&mediaDuration=2.75| Parameter | Type | Default | Description |
|---|---|---|---|
skipDelay |
bool |
false |
Whether to skip the delay between media plays |
min |
float |
30 |
The minimum amount time to wait between media plays in minutes |
max |
float |
90 |
The maximum amount of time to wait between media plays in minutes |
maxHeight |
float |
25 |
The maximum height of the media being displayed on screen. Value is a percentage of the total screen size |
maxWidth |
float |
25 |
The minimum height of the media being displayed on screen. Value is a percentage of the total screen size |
mediaUrl |
float |
default-media.gif |
Override URL of media to display. Used to provide a custom image or video to play |
mediaDuration |
float |
None (calculated) | Duration of media in seconds (decimals are accepted). Streampals attempts to calculate the media duration, but in the case the calculation fails it should be provided here |
Streampals uses SemVer for versioning. For the versions available, see the tags on this repository.
Please note that any release prior to 1.0.0 should be expected to contain breaking changes.
- zephsinx - Development - zephsinx
- Dudlik - Main idea & design consultation - ttv/Dudlik, Dudlik
See also the list of contributors who participated in this project.
This project is licensed under the ISC License - see the LICENSE file for details
- Credit for the idea for Streampals goes to Mark Dudlik. Find his work at dudlik.co, or
streaming on Twitch
at twitch.tv/dudlik
- Credit for the worm GIFs goes to:
- Michelle Porucznik - porucz.com
- Shenja Tatschke - shenjatatschke.com
- Kat G Morris - katgmorris.com
- Alex Strasser - alexstrasser.com
- Magda Kreps - magdakreps.com