In case you have seen my previous posts, this is an update for berb.app, a WebRTC file sharing app. My goal is simple: send files between devices in real-time without installing crap or uploading to any servers.
https://github.com/dmotz/trystero is a one tool I've used to build these kinds of apps.
Either way, would love to know your thoughts on improving trust with this.
util.js also contains "copyToClipboard = (value) => {", not sure why that would be needed.
and googletagmanager for tracking error/diagnostics I think? its hard to understand this code without learning the language lol.
Also in privacy.html: "To initiate a peer-to-peer connection, Berb uses a temporary signaling server to exchange network metadata (such as IP addresses, session descriptions, and ICE candidates)."
As for analytics, you are exactly right. I need to know if people are using the app the way it was intended and soon need to add more events for errors. Though perhaps it is something I can maintain on a separate repo? idk, the goal for me was to truly make everything on berb.app open source. no hiding anything
Except an impressively large amount of people in the world are behind symmetrical or CGNAT and would require a TURN server.
Because of this, I've personally never gotten a single p2p/WebRTC site to work with another person.
My understanding is that ICE tries to establish a direct p2p connection between clients and only if there is no path, it uses TURN?
In either case, the files definitely don't go through my servers and are not stored anywhere and are e2e encrypted which really matters the most.
And because a large number of people do need TURN (always), coupled with the majority of WebRTC apps not properly supporting TURN (giving no way to set your own details, or provide a free one, of which there really aren't any reliable public ones)... I've basically never seen it work.
No p2p WebRTC app I have ever tried with a friend has worked.
My personal choice for this kind of situation is Wormhole-William, but it is not something my dad could use when he asks me to send the last year's worth of his granddaughter's photos to make a photobook of.
Beside the fact that this JUST got launched and can either be liked and used by many, or another dead product in a year, I have found myself using it multiple times so far. Like sending a large file to/from my work computer etc. If this is solving a problem for even a small number of people, that is great!