What does HackerNews think of js-ipfs?

IPFS implementation in JavaScript

Language: JavaScript

#3 in IPFS
#85 in JavaScript
#14 in P2P
#4 in P2P
On the topic of IPFS, but also slightly tangential -- how has nobody written an Activity Pub client/server in Javascript and distributed it as a Browser Addon?

If an IPFS node/server can be literally hosted via a Firefox Extension[1], how has nobody done the same for an arguably easier protocol like Activity Pub?

1: https://github.com/ipfs/js-ipfs

Store the content in ipfs and just put the hash in the URL?

I haven't used https://github.com/ipfs/js-ipfs in this capacity but I'm under the impression that that's moving bits around like that is more or less its purpose.

Although I suppose this puts a burden on the URL-creator to pin the content until the URL-clicker doesn't need it anymore, which is not how URLs are supposed to work.

I've been thinking about this for a localstorage based app that I'm tinkering around with. You can do webrtc without a STUN server, but it requires exchanging a chunk of ugly metadata with another person.

I've been wondering whether IPFS might be a good answer to that - there is this, which supposedly works in the browser. https://github.com/ipfs/js-ipfs

Dump webrtc metadata onto ipfs, give the user the hash back as a "document key" (and maybe a password that was used to encrypt the webrtc metadata) to share with other people; they paste in the key, enter password, and tada, you have a multi user application backed by localstorage.

Of course this wouldn't survive a user changing IP (and perhaps other network attributes) but that might be an OK feature.

I have written a quick proof-of-concept decentralised image host(ing solution) using IPFS' in-browser implementation[0].

It is, as you might guess, not as friction-free as one would expect from other traditional services (e.g. Imgur) but I found it surprisingly easy to develop and to use it. Check the repo I've linked and give deima a try yourself! https://boramalper.github.io/deima/image/#QmW8j8Dhhh3mhedGi2...

It's getting quite late here (2:43 AM) but I would happily respond to your questions & comments in the morning.

[0]: https://github.com/ipfs/js-ipfs