Skip to content

trunkyfgc/trunky-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trunky Overlay

Overlay single binary build with Svelte and Rust

Installation

  • Download your OS binary and run, you should see a message that the server had been started
  • That's it!!!

How to use

Assume that you are running the server on 0.0.0.0/8080

  • Go to localhost:8080/app/scoreboard.html and check if you can see the scoreboard
  • Go to localhost:8080/app/control.html and check if you can see the control center

Add to OBS

  • Open your OBS
  • Add a browser in your scene
    • Click the plus button alt text
    • Choose browser
  • Point the link to localhost:8080/app/scoreboard.html
  • Size is 1920x1080 alt text

You should see the overlay come up alt text

Developer setup

Rust

On MacOS / Linux

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

On Windows

  • Download rustup here

Node

  • Use node v18

Start development server

Install dependency for node

cd static
npm install

Necessary first build

Note

To feed the folder static/build for RustEmbed

npm run build # assume you are in static folder

Run Svelte dev

npm run dev # assume you are in static folder

Run rust server

cargo run

or

cargo watch -x run

# If you don't have cargo watch
cargo install cargo-watch