arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

IPFS for larger attachments #198

Open KyleMaas opened 3 years ago

KyleMaas commented 3 years ago

We should be able to integrate with IPFS in the browser. It'd be nice if we could use that for files which are larger than the maximum blob size.

See: https://github.com/ipfs/js-ipfs/tree/master/examples/browser-browserify

KyleMaas commented 3 years ago

https://github.com/ipfs/in-web-browsers/blob/master/ADDRESSING.md

KyleMaas commented 3 years ago

Well, this led me down quite a rabbit hole. But in short, I'm blocked on this:

https://github.com/multiformats/js-multibase/issues/80

Because ssb-conn pulls in zii, which I can see causing us other issues in the future if it's not eliminated:

https://github.com/staltz/ssb-conn/issues/26

The way it is right now, I can't even initialize IPFS. It just crashes right away.

KyleMaas commented 3 years ago

Now waiting on this:

~https://github.com/multiformats/js-multibase/pull/81~

...after which I think I can make this work.

KyleMaas commented 3 years ago

Making progress. multibase is fixed, and we are now waiting on:

KyleMaas commented 3 years ago

Those two are now fixed. I should be able to move forward on this now.