Welcome to Petal, an independent platform for video streaming and text chatting.
Petal doesn't take a cut of your donations. Petal also doesn't force your viewers to watch ads. Petal is free-to-use, open-source, and will remain this way forever.
Petal is currently in alpha and is a proof-of-concept acting as my own website. If you would like to contribute to this project, please contact me for more information.
index.html
contains a webpage with a broadcast viewer (WHIP client) + text chat (WebSockets client)server.js
contains a web server implemented with Bun.serve()- You must run your own WHEP server (ex. MediaMTX) and WHEP client (ex. OBS 30.1 or later) in order to use the WHIP viewer.
- In addition to replying to JSON payloads over WebSockets, the server also listens for POST requests from Ko-fi. In order to verify that the requests are from Ko-fi, you need to set
kofiVerificationToken
indata.json
. - You should also consider updating the following values in
data.json
:broadcaster, moderators, cert, key, port, passwordSalt, hashIterations, hashBytes, hashDigest