I’ll try make this short and sweet. Using PeerJs its possible to connect browsers over a fast WebRTC connection. So i slapped on material-ui to see what is possible using this technology.
The app is available here.
my code results in the static files you can save from the link to the app (html, js, css, etc). you can ctrl/cmd+s to save the statics and host them on a static-server of your choice (easier than me providing a .zip?). you can also host your own peerjs-server.
The app is not production ready, but it is provided as a testable work-in-progress demo. it would be great to hear opinions on how the project is shaping up.
(feature requests + bug reports welcome :) )
How do you self host your app?
maybe in the post it isnt clear. there are 2 diferent types of self-hosting.
- selfhost the statics - ctrl/cmd+s to save the statics and host them on a static-server of your choice (easier than me providing a .zip?). this can be done with something like `npx serve /static-folder-with-files`
- the app is made to not rely on a backend for authentication, but peerjs-server is used to make initial connection. you can select the peerjs server on the “create profile” screen. (note: a profile is locked to a specific peerjs-server which is set whern you create a profile)
Well scraping your app is not self hosting. Any reason why you don’t provide your Git repo if you’re ok with people downloading your source?
The app is still very much a work in progress, and while it’s functional, it’s far from being a finished product. Therefore, open-sourcing the code is not currently in our plans, especially for the experimental parts.
We place a strong emphasis on security, and you can find some of our cryptography-related code open-sourced for public review. We’re committed to making sure our security measures are transparent and robust.
If there’s a popular demand for downloadable statistics in a zip format, we can certainly provide that option directly within the app.
For those who are interested in self-hosting the app, it’s important to note that hosting the static files is just one part of the equation; ensuring the app maintains strong security through measures like CSP headers is equally vital to protect your data from potential threats like browser plugins.
Our CSP header configuration and rating can be seen here.