News for hackers. Stuff that matters.
Re:Dweb: Building a Resilient Web with WebTorrent by vishnu_ks on Tuesday August 28, 2018 @02:52PM (#17861708)
So for keeping something in ipfs you need to have a server running ipfs seeding the files. You can use ipfs.js but it still needs to connect to an IPFS server. Webtorrent don't require any server running. All you need is the webtorrent.js file. That said you can still use a third party service like Infura for putting files in IPFS without running your own server. But Infura discards the file after seeding it for like 2 weeks. So you are not in total control of the file. In webtorrent you don't need any third party service. All you need is a browser with the webtorrent.js file. At the same time it is reccomended to run a STUN server to increase the reach of the files seeded by your webtorrent application. If you are creating a webtorrent application without a STUN server chances are that a lot of people would not be able to connect to it. I think IPFS on the other hand don't have this issue. Once a file is uploaded and is seeded by atleast one server it should be accessible to everyone else. (I am not 100% sure about this though). So choose wisely.
Re:Dweb: Building a Resilient Web with WebTorrent by temp64201292 on Tuesday August 28, 2018 @03:05PM (#17861853)
> At the same time it is reccomended to run a STUN server to increase the reach of the files seeded by your webtorrent application.

Or just start using IPv6 already.

Re:Dweb: Building a Resilient Web with WebTorrent by StavrosK on Tuesday August 28, 2018 @05:28PM (#17863066)
But the problem with Web Torrent is that the seeds go away when you close the tab, whereas with IPFS the page keeps getting seeded.
Re:Dweb: Building a Resilient Web with WebTorrent by vishnu_ks on Wednesday August 29, 2018 @03:04AM (#17866287)
It is also the advantage of webtorrent. All a person need to seed a file in webtorrent is open a browser window. You can't rely on users of your application to start an IPFS server and seed the files.

If you want to seed a file for long term you can use the webtorrent-cli or webtorrent app as well.

Re:Dweb: Building a Resilient Web with WebTorrent by diegorbaquero on Wednesday August 29, 2018 @12:46AM (#17865709)
You can use webseeds so it works even when there are no peers