3 ms·
It surely does, take a look at js-ipfs for full in-browser node (https://github.com/ipfs/js-ipfs https://github.com/ipfs/js-ipfs) and also js-ipfs-api for commu
by diggan 9y ago
It surely does, take a look at js-ipfs for full in-browser node (https://github.com/ipfs/js-ipfs https://github.com/ipfs/js-ipfs) and also js-ipfs-api for communicating with existing go-ipfs/js-ipfs nodes (https://github.com/ipfs/js-ipfs-api https://github.com/ipfs/js-ipfs-api)
Disclaimer: I work at Protocol Labs on IPFS
- eitland 9y agoDoes this mean you can actually connect to the real ipfs network from a browser without connecting to a gateway like ipfs.io?
- dranoel0226 9y agothat, you cannot
- eitland 9y agoDo you now for certain? Because both the parent post and the repo seems to indicate otherwise and the only reason I ask is because that sounds a little to amazing.
- diggan 9y agoYes, you can. Please try to make sure the information you write is correct. Quick look at the repository I linked above would have made this clear.
- fulafel 9y agoWhat part of the repository says this? I'm having trouble imaginging how it would work, unless the mainstream IPFS network now supports WebRTC?
- diggan 9y agoLooking at the readme, I noticed our examples our not as featured as I thought so sorry for the harshness. But following the link to the examples, leads to a example called "Tutorial - Transfer files between the browser and other IPFS nodes" which explains how you can connect a js-ipfs node with other nodes, like go-ipfs that runs on desktop. Link: https://github.com/ipfs/js-ipfs/tree/master/examples/exchange-files-in-browser https://github.com/ipfs/js-ipfs/tree/master/examples/exchang... go-ipfs, which I guess you refer to with the mainstream network, has support for websockets which the browser nodes has support for as well, so they can interop.
- CryoLogic 9y agoIPFS can work in the browser via sharing over WebRTC but not UDP/TCP. So it is not great, but does work. WebTorrent is also WebRTC fyi. The tech isn't quite there yet, but eventually yes everyone's machine could be a CDN of sorts.