{
"repo": "blind-peering",
"timestamp": "2026-01-16T23:56:00.809Z",
"entryPoint": "index.js",
"exports": {
"packageJson": {
"main": "index.js"
}
},
"api": {
"file": "index.js",
"exports": [
{
"type": "default",
"name": "class"
}
],
"classes": [
{
"name": "BlindPeering"
}
],
"functions": [
{
"name": "getBlocksUploadedTo"
},
{
"name": "getClosestMirrorList"
},
{
"name": "getClosestMirror"
},
{
"name": "isStaticCore"
},
{
"name": "noop"
}
]
},
"readme": {
"content": "# Blind Peering\n\nClient for interacting with [blind peers](https://github.com/holepunchto/blind-peer), sending RPC requests to keep hypercores and autobases available.\n\n## Installl\n\n```\nnpm install blind-peering\n```\n\n## API\n\n#### `const blindPeering = new BlindPeering(swarm, store, opts)`\n\nCreate a new Blind Peering instance. `swarm` is a hyperswarm instance and `store` is a Corestore instance.\n\n`opts` include:\n\n- `mirrors`: a list of blind peer keys (mirrors) to use. You should always set this, otherwise there are no mirrors to contact.\n- `suspended`: whether to start in suspended state (default `false`)\n- `wakeup`: a Wakeup object\n\n#### `await blindPeering.addCore(core, target = core.key, opts)`\n\nAdd a Hypercore to a blind peer.\n\n`target` is an optional key. It looks for blind peers 'close' (using XOR distance) to that key. It defaults to the key of the hypercore, thereby load balancing among the available blind peers. To use a specific blind peer, set `target` to its key.\n\n`opts` in",
"sections": [
"intro",
"installl",
"api"
],
"hasApi": true,
"hasExamples": true,
"exampleCount": 1,
"examples": [
"npm install blind-peering"
]
},
"patterns": [
"append-only-log",
"peer-discovery",
"binary-encoding"
]
}