{"id":15521024,"url":"https://github.com/sloev/orbitdb-nodejs-local-demo","last_synced_at":"2026-05-28T01:02:03.936Z","repository":{"id":218712294,"uuid":"747163338","full_name":"sloev/orbitdb-nodejs-local-demo","owner":"sloev","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-23T19:50:26.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T02:14:35.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-23T11:50:21.000Z","updated_at":"2024-01-23T11:51:22.000Z","dependencies_parsed_at":"2025-01-17T11:25:08.368Z","dependency_job_id":null,"html_url":"https://github.com/sloev/orbitdb-nodejs-local-demo","commit_stats":null,"previous_names":["sloev/orbitdb-nodejs-local-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sloev/orbitdb-nodejs-local-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Forbitdb-nodejs-local-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Forbitdb-nodejs-local-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Forbitdb-nodejs-local-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Forbitdb-nodejs-local-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloev","download_url":"https://codeload.github.com/sloev/orbitdb-nodejs-local-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Forbitdb-nodejs-local-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:31:47.672Z","updated_at":"2026-05-28T01:02:03.921Z","avatar_url":"https://github.com/sloev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of local nodejs replication of orbitdb\n\n\n\n## Usage\n\ncreate db:\n```bash\n$ node create_db.js 13245 FOOBAR\nrunning with port:13245 and ./FOOBAR\nclientEventsDb address /orbitdb/zdpuAkn4eb7Xdy5UFCvFGEcYd5HDhufhJHWAgYgVMpWK7U5wF\n```\n\nrun server\n```bash\n$ node server.js 13245 FOOBAR  /orbitdb/zdpuAkn4eb7Xdy5UFCvFGEcYd5HDhufhJHWAgYgVMpWK7U5wF\nrunning with port:13245 and ./FOOBAR\nclientEventsDb address /orbitdb/zdpuArg5XeMUYwsXT37iuhsSwxJBvuJB4M6FHEdWmmACTkgWq\n[]\nentry { op: 'ADD', key: null, value: 'hello from ./FOOBAR 1' }\n(node:75788) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\nentry { op: 'ADD', key: null, value: 'hello from ./FOOBAR 2' }\n```\n\nrun clients (unique port and directory name!)\n```bash\n$ node server.js 13255 FOOBARBAZ  /orbitdb/zdpuAkn4eb7Xdy5UFCvFGEcYd5HDhufhJHWAgYgVMpWK7U5wF\nrunning with port:13255 and ./FOOBARBAZ\nclientEventsDb address /orbitdb/zdpuArg5XeMUYwsXT37iuhsSwxJBvuJB4M6FHEdWmmACTkgWq\n[]\nentry { op: 'ADD', key: null, value: 'hello from ./FOOBARBAZ 1' }\n(node:76188) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\nentry { op: 'ADD', key: null, value: 'hello from ./FOOBARBAZ 2' }\nentry { op: 'ADD', key: null, value: 'hello from ./FOOBARBAZ 3' }\n```\n\n## errors\n\nsee this issue on orbitdb https://github.com/orbitdb/orbitdb/issues/1154\n\n```\nr➜  saysheep node server.js 13245 FOOBAR  /orbitdb/zdpuAkn4eb7Xdy5UFCvFGEcYd5HDhufhJHWAgYgVMpWK7U5wF\nrunning with port:13245 and ./FOOBAR\nclientEventsDb address /orbitdb/zdpuAkn4eb7Xdy5UFCvFGEcYd5HDhufhJHWAgYgVMpWK7U5wF\n[\n  {\n    hash: 'zdpuB3avp7QNiLGRrqW4VGRaMaiBnVXb5uNxM9pDnh1WMedrG',\n    value: 'hello from ./FOOBAR 0'\n  },\n  {\n    hash: 'zdpuAnEBejvHf7eV3V8GdmxZ3eohHC2b99HeArDwirFEKbL12',\n    value: 'hello from ./FOOBARBAZ 0'\n  },\n  {\n    hash: 'zdpuAkZfwcpwSkZD5pjueZ23vFkRdCkEQBP5kPr7DQ5vJpzX2',\n    value: 'hello from ./FOOBAR 1'\n  },\n  {\n    hash: 'zdpuAksgzcANHLxzAAdmBoJ5YvQ1keC8JPB8hgULAjv5QLWhT',\n    value: 'hello from ./FOOBAR 2'\n  },\n  {\n    hash: 'zdpuApjmxQZSuRdU5Jox3tdgWo989g75HcvuH83Ty2LjjfjE4',\n    value: 'hello from ./FOOBAR 3'\n  },\n  {\n    hash: 'zdpuB21RVBxSH1PDupAiT9S3shwvTohRe7ZbpDs4FBdzQirJ2',\n    value: 'hello from ./FOOBAR 4'\n  },\n  {\n    hash: 'zdpuArotYNoZRjRmWvMquVwajtK2afVSqzjgeoUwN2XSo6wBa',\n    value: 'hello from ./FOOBAR 5'\n  },\n  {\n    hash: 'zdpuAm3srWH8BrZq3PNSts9E5SdD9xR5pDQFBZYdCMXtissFq',\n    value: 'hello from ./FOOBAR 6'\n  },\n  {\n    hash: 'zdpuAxhrzCC1CFfvwQCR7QT1Jwo1KPVgzTVF5CMZmY5gJFpws',\n    value: 'hello from ./FOOBAR 7'\n  },\n  {\n    hash: 'zdpuApkeaaSKWbrAUJqpbhoRoooemTzFAKhbcpqugx1U28T14',\n    value: 'hello from ./FOOBARBAZ 0'\n  },\n  {\n    hash: 'zdpuAtEWxR7hiJZ5zHUrXzSe1L4jjaTk3RdfSQiyVZPPe5XoX',\n    value: 'hello from ./FOOBAR 8'\n  },\n  {\n    hash: 'zdpuAkhtjZ6W81zLHHnPaynoX9PDn5QTizTgRAzZ3ZZ2pCskQ',\n    value: 'hello from ./FOOBARBAZ 1'\n  },\n  {\n    hash: 'zdpuAo4RLpKKFa56F3TAtk3uW2dAiAkJRnrHoz3hjfG8MbL64',\n    value: 'hello from ./FOOBAR 9'\n  },\n  {\n    hash: 'zdpuAp9cZULMutQwVK8GWny2rg4WQSLZxUAU9XcvEJJa8RSiG',\n    value: 'hello from ./FOOBAR 10'\n  },\n  {\n    hash: 'zdpuAmno4QAPBSBBj7sfFs4ir5g36GQ9BrJME9EXfGmDSupWr',\n    value: 'hello from ./FOOBAR 11'\n  },\n  {\n    hash: 'zdpuAsHa13ue7EEsx2WZ9JrYcJDnmmgDxTeMPBnJ3y21cMGR7',\n    value: 'hello from ./FOOBAR 12'\n  },\n  {\n    hash: 'zdpuAtuWs18SKPJNaRtBNqAhgYLbWccYLEWRZpLKF5zx8gEdS',\n    value: 'hello from ./FOOBAR 13'\n  },\n  {\n    hash: 'zdpuAupmJMBpeLZM9x82gDneWnHqpsyB6rTVkvdpcobBYqFEL',\n    value: 'hello from ./FOOBAR 14'\n  },\n  {\n    hash: 'zdpuAobn8C3rYZnutnBpKUrnRcX8dYe8uPFKCGYcFxF7LRChc',\n    value: 'hello from ./FOOBAR 15'\n  },\n  {\n    hash: 'zdpuAyARSECBDtue8PpjfnsL8FwHQkFhxBh6UU2iXwY3tB1uk',\n    value: 'hello from ./FOOBAR 16'\n  },\n  {\n    hash: 'zdpuAw1bVt8pS6c2MUJkch8yvjEa8SEwSxiCMo4q4BFm9e3Jf',\n    value: 'hello from ./FOOBAR 17'\n  },\n  {\n    hash: 'zdpuArLhmsuyLvKEui2Dw8cV1mCZcs7pTChjzfLhHVKJWsTfj',\n    value: 'hello from ./FOOBAR 18'\n  }\n]\n(node:78587) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\n\n\n\n\nnode:internal/process/promises:289\n            triggerUncaughtException(err, true /* fromPromise */);\n            ^\n\n[AggregateError: All promises were rejected] {\n  [errors]: [\n    Error: Want for bafyreiaeg347tyzk4o5ixpsgsstemg5u5fhyyui6isuqlhm2qvbbwi54eu aborted\n        at EventTarget.\u003canonymous\u003e (file:///home/nihil/Documents/saysheep/node_modules/ipfs-bitswap/dist/src/notifications.js:56:24)\n        at [nodejs.internal.kHybridDispatch] (node:internal/event_target:814:20)\n        at EventTarget.dispatchEvent (node:internal/event_target:749:26)\n        at abortSignal (node:internal/abort_controller:371:10)\n        at AbortController.abort (node:internal/abort_controller:393:5)\n        at EventTarget.onAbort (file:///home/nihil/Documents/saysheep/node_modules/any-signal/dist/src/index.js:8:20)\n        at [nodejs.internal.kHybridDispatch] (node:internal/event_target:814:20)\n        at EventTarget.dispatchEvent (node:internal/event_target:749:26)\n        at abortSignal (node:internal/abort_controller:371:10)\n        at AbortController.abort (node:internal/abort_controller:393:5),\n    AggregateError: unable to fetch raw block for CID bafyreiaeg347tyzk4o5ixpsgsstemg5u5fhyyui6isuqlhm2qvbbwi54eu from any gateway\n        at TrustlessGatewayBlockBroker.retrieve (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/trustless-gateway/broker.js:52:15)\n        at processTicksAndRejections (node:internal/process/task_queues:95:5)\n        at runNextTicks (node:internal/process/task_queues:64:3)\n        at listOnTimeout (node:internal/timers:540:9)\n        at process.processTimers (node:internal/timers:514:7)\n        at async file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:182:31\n        at async Promise.any (index 1)\n        at async raceBlockRetrievers (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:179:16)\n        at async NetworkedStorage.get (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:91:27)\n        at async BlockStorage.get (file:///home/nihil/Documents/saysheep/node_modules/helia/dist/src/storage.js:68:20) {\n      [errors]: [\n        Error: fetching raw block for CID bafyreiaeg347tyzk4o5ixpsgsstemg5u5fhyyui6isuqlhm2qvbbwi54eu from gateway https://dweb.link/ipfs/bafyreiaeg347tyzk4o5ixpsgsstemg5u5fhyyui6isuqlhm2qvbbwi54eu?format=raw was aborted\n            at TrustlessGateway.getRawBlock (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/trustless-gateway/trustless-gateway.js:71:23)\n            at processTicksAndRejections (node:internal/process/task_queues:95:5)\n            at runNextTicks (node:internal/process/task_queues:64:3)\n            at listOnTimeout (node:internal/timers:540:9)\n            at process.processTimers (node:internal/timers:514:7)\n            at async TrustlessGatewayBlockBroker.retrieve (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/trustless-gateway/broker.js:25:31)\n            at async file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:182:31\n            at async Promise.any (index 1)\n            at async raceBlockRetrievers (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:179:16)\n            at async NetworkedStorage.get (file:///home/nihil/Documents/saysheep/node_modules/@helia/block-brokers/dist/src/utils/networked-storage.js:91:27)\n      ]\n    }\n  ]\n}\n\nNode.js v20.10.0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Forbitdb-nodejs-local-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloev%2Forbitdb-nodejs-local-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Forbitdb-nodejs-local-demo/lists"}