What is Nostr?
0xc0de4c0ffee / 🙏
npub178z…rvyn
2023-04-08 09:18:46
in reply to nevent1q…c6q2

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

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());
```
Author Public Key
npub178zyhsr0wq5049rknzv3w7hjhulk0pek3ykg5al8lpuzwa02c2nsjkrvyn