datproject-discussions icon indicating copy to clipboard operation
datproject-discussions copied to clipboard

Pure-webapp DAT: is it possible?

Open James-E-A opened this issue 3 years ago • 1 comments

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 avatar Apr 10 '21 03:04 James-E-A

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.

James-E-A avatar Apr 10 '21 03:04 James-E-A