We're testing js-ipfs client on browser to index everything from Nostr & eth sides as linked data.

**still missing some full ipfs node features on browser & really hard to pubsub.. That's why we're using Nostr instead of ipfs-pubsub. ;) but for basic distributed storage & linked data it's similar tech stack as web+torrent with magnet link like content identifier/hash.

```

const _ipfs = await Ipfs.create({

config: {

Addresses: {

Swarm: [

// This is a public webrtc-star server, add more

"/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star",

"/ip4/127.0.0.1/tcp/13579/wss/p2p-webrtc-star" // run your own webrtc

]

},

Bootstrap: ["/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",

// add more bootnodes,

]

}

});

let test = {

".well-known": {

"nostr.json": {

"hello" : "world"

}

}

};

let ipld = await _ipfs.dag.put(test);

console.log("ipld://" + ipld.toString());

```

Reply to this note

Please Login to reply.

Discussion

No replies yet.