Ashwagandhae / debate-flow

A flowing app for debate
https://debate-flow.vercel.app
GNU General Public License v3.0
12 stars 5 forks source link

Self-hosting/Sharing #10

Open alexdr0 opened 1 month ago

alexdr0 commented 1 month ago

Hi,

I was wondering if their was a way or a plan to create a version in which one could self-host a server and be able to edit with two users without peer-to-peer so everything could be on the server.

Ashwagandhae commented 1 month ago

Hi, thank you for the suggestion! There currently isn't a plan for a self-hosted version, because I didn't think that there would be many Flower users who would use that feature.

However, a self-hosted server should be reasonably easy to implement; the WebRTC-specific parts are wrapped up in a Channel interface (see sharingChannel.ts). To make a self-hosted version, you could implement the same interface with a WebSockets.

I probably won't be working on a feature like this in the near future. However, if you're interested in doing some experimentation to create a self-hosted version, I'll be happy to answer any questions and help out!