{"id":51305036,"url":"https://github.com/dozyio/js-libp2p-blind-rendezvous","last_synced_at":"2026-06-30T23:02:27.661Z","repository":{"id":367469597,"uuid":"1214293021","full_name":"dozyio/js-libp2p-blind-rendezvous","owner":"dozyio","description":"Blind Rendezvous Points with JS libp2p","archived":false,"fork":false,"pushed_at":"2026-04-19T10:59:51.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-26T07:06:38.971Z","etag":null,"topics":["dht","libp2p","rendezvous"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dozyio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-18T11:25:54.000Z","updated_at":"2026-04-19T10:59:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dozyio/js-libp2p-blind-rendezvous","commit_stats":null,"previous_names":["dozyio/js-libp2p-blind-rendezvous"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dozyio/js-libp2p-blind-rendezvous","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozyio%2Fjs-libp2p-blind-rendezvous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozyio%2Fjs-libp2p-blind-rendezvous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozyio%2Fjs-libp2p-blind-rendezvous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozyio%2Fjs-libp2p-blind-rendezvous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dozyio","download_url":"https://codeload.github.com/dozyio/js-libp2p-blind-rendezvous/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozyio%2Fjs-libp2p-blind-rendezvous/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34986248,"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-06-30T02:00:05.919Z","response_time":92,"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":["dht","libp2p","rendezvous"],"created_at":"2026-06-30T23:02:26.992Z","updated_at":"2026-06-30T23:02:27.656Z","avatar_url":"https://github.com/dozyio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dozyio/libp2p-blind-rendezvous\n\nEpoch-based blind rendezvous for js-libp2p.\n\nThis package derives blinded rendezvous CIDs from:\n\n- shared `secret`\n- `namespace`\n- epoch index\n\nIt then publishes provider records for active epochs via content routing.\n\n## Install\n\n```console\nnpm i @dozyio/libp2p-blind-rendezvous\n```\n\n## Usage\n\n```ts\nimport { createLibp2p } from 'libp2p'\nimport { kadDHT } from '@libp2p/kad-dht'\nimport { blindRendezvous } from '@dozyio/libp2p-blind-rendezvous'\nimport type { BlindRendezvousPointInit } from '@dozyio/libp2p-blind-rendezvous'\n\nasync function loadPairedPointConfig (): Promise\u003cBlindRendezvousPointInit\u003e {\n  // Out of scope for this package (pairing/secret exchange)\n  return {\n    secret: crypto.getRandomValues(new Uint8Array(32)),\n    namespace: 'dozyio/prod/chat'\n  }\n}\n\nconst pairedPoint = await loadPairedPointConfig()\n\nconst node = await createLibp2p({\n  services: {\n    dht: kadDHT(),\n    blindRendezvous: blindRendezvous({\n      addressChangeDebounceMs: 30 * 1000\n    })\n  }\n})\n\nawait node.start()\n\nawait node.services.blindRendezvous.upsertPoint('paired-device', pairedPoint, {\n  publish: true\n})\n\nfor await (const candidate of node.services.blindRendezvous.findPointProviders('paired-device')) {\n  console.log('found blind rendezvous candidate', candidate)\n}\n```\n\n## Defaults\n\n- `epochLengthMs`: `15m`\n- `clockSkewMs`: `3m`\n- `derivationDomain`: `libp2p-blind-rendezvous/v1`\n- `publishIntervalMs`: equal to `epochLengthMs`\n- `pollIntervalMs`: `30s`\n- `publishJitterMs`: `30s..90s`\n- `logPrefix`: `libp2p:blind-rendezvous`\n- `startingEpochMs`: `0` (Unix epoch timestamp)\n\n## Notes\n\n- On start, the service publishes provider records for configured points.\n- A single service instance can manage multiple rendezvous points via `upsertPoint/removePoint`.\n- It republishes periodically and also debounced on `self:peer:update`.\n- Use `startingEpochMs` when you want epochs anchored to pairing time (or another custom timestamp).\n- Provider discovery results are only rendezvous candidates; authentication/authorization of discovered peers is required and intentionally out of scope for this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozyio%2Fjs-libp2p-blind-rendezvous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdozyio%2Fjs-libp2p-blind-rendezvous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozyio%2Fjs-libp2p-blind-rendezvous/lists"}