4 ms·
Hi, author here. Thanks for checking out Bifrost. The short pitch is: any protocol over any transport with seamless cross-platform (browser <-> native) communic
by aperturecjs 3y ago
Hi, author here. Thanks for checking out Bifrost. The short pitch is: any protocol over any transport with seamless cross-platform (browser <-> native) communication.
Building internet applications often involves writing code that is tightly integrated with the choice of communications transport, for example, one has to make the design decision to use either WebSockets or WebRTC, and then all other design decisions are driven by that.
Bifrost aims to allow developing applications without knowing or caring which protocols are used under the hood. The app can just say "Open a stream with peer X" and whatever configured transport(s) make that happen.
I'm still working to improve the docs and new user experience, if you have any suggestions on how I can make it easier to understand, I'd greatly appreciate it!
- BiteCode_dev 3y agoCan it work over bluetooh, or with custom "mic to headphone sound-driver protocols"? Does it include discovering peers on a local network or around you? Do it handle signaling?
- aperturecjs 3y agoBluetooth could work! Just need to implement the Transport interface. Peer discovery is not implemented at the moment but could easily be added (and will be soon). Here's how: any controller can resolve EstablishLinkWithPeer. A peer discovery controller could compare the list of discovered peers with the list of desired connections and initiate connections via UDP when there's a match. Signaling is managed by the Link implementation. For UDP we use quic-go.
- BiteCode_dev 3y agoThis stack could be the basis of a software to share things no matter your connectivity situation. You fire it up, it scans things around. Local network? It uses that. Not local but internet, it uses that. Nothing but BT, you can still detect people around, chat and exchange files. People could be identified by public keys and that's it, not need for an account, signaling done by zeroconf/bt-scanning/bittorent. Basically a solution to the current chat nightmare. But the amount of work is overwhelming, even with this.
- MadnessASAP 3y agoWhile we have your attention, does Bifrost support peer multipathing or weights?
- aperturecjs 3y agoThere is a design for routing in the repo (and tor-like circuits). However it is not implemented yet. I'd love to grow the community and have more people collaborating on this.
- espeed 3y agoShow an example of how two NAT peers communicate, via hole punching and/or libp2p.
- eatbitseveryday 3y agoI see, thanks. I think it would be useful in the docs to describe both some less technical as well as some technical examples of useful applications of your work. Do you have some examples of _concrete problems_ that would be easily solved with this? If so, mention them. Telling folks about technical aspects doesn’t help advertise your work unless you can help a new reader relate it with their own experiences or problems.