dat-ecosystem-archive / datproject-discussions

a repo for discussions and other non-code organizing stuff [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
65 stars 6 forks source link

Pure-webapp DAT: is it possible? #92

Open James-E-A opened 3 years ago

James-E-A commented 3 years ago

I gravitated towards DAT because it looked technically superior to IPFS, which looked technically superior to BitTorrent, for doing peer-to-peer file transfer.

However, I'm currently writing a pure webapp (runs in the browser from only static files on the server-side), and I see that https://github.com/webtorrent/webtorrent makes it possible to use BitTorrent for this…

Can the DAT protocol be used in the same use-case? Or does it currently require browser-based clients to have a nontrivial "buddy server" to proxy connections and whatnot?

James-E-A commented 3 years ago

It looks like dat-js, “A pure JavaScript browser-friendly api for using dat”, had this functionality; but it's been archived, "superseded" by hyper-sdk… so I'm really hoping that this newer edition of the software hasn't destroyed that functionality.