0x0 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());
```
Published at
2023-04-08 09:18:46Event JSON
{
"id": "b2021c907ab252ef510fa3f71edc476c7f7f7f1f436bfde0e9af8acfbfd09e2f",
"pubkey": "f1c44bc06f7028fa94769899177af2bf3f678736892c8a77e7f8782775eac2a7",
"created_at": 1680945526,
"kind": 1,
"tags": [
[
"e",
"82cecf99815fbc29d59ace2293491c55e648a3e7b9040d311da0f329bbe0b8c0",
"",
"root"
],
[
"e",
"580e6d33a11a7d8a5dc9d6ddefdaf1dd8b98083178746c776c147072f2112efc",
"",
"reply"
],
[
"p",
"f1c44bc06f7028fa94769899177af2bf3f678736892c8a77e7f8782775eac2a7",
"",
"0xc0de4c0ffee"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "We're testing js-ipfs client on browser to index everything from Nostr \u0026 eth sides as linked data. \n\n**still missing some full ipfs node features on browser \u0026 really hard to pubsub.. That's why we're using Nostr instead of ipfs-pubsub. ;) but for basic distributed storage \u0026 linked data it's similar tech stack as web+torrent with magnet link like content identifier/hash.\n\n```\nconst _ipfs = await Ipfs.create({\n config: {\n Addresses: {\n Swarm: [\n // This is a public webrtc-star server, add more\n \"/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star\",\n \"/ip4/127.0.0.1/tcp/13579/wss/p2p-webrtc-star\" // run your own webrtc\n ]\n },\n Bootstrap: [\"/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN\",\n// add more bootnodes, \n ]\n }\n });\n\n let test = {\n \".well-known\": {\n \"nostr.json\": {\n \"hello\" : \"world\"\n }\n }\n };\n let ipld = await _ipfs.dag.put(test);\n console.log(\"ipld://\" + ipld.toString());\n```",
"sig": "aba517b244ab5c514253af6556751d8c040aec4ab37c5a11c7f9e113a21db8ac076238826c6f4a802d79fc1df8266853854f158842eee69b8062b0986c7539dd"
}