{"id":33295941,"url":"https://github.com/waerhert/shimmer","last_synced_at":"2026-06-22T10:31:30.506Z","repository":{"id":324594384,"uuid":"1097755584","full_name":"waerhert/shimmer","owner":"waerhert","description":"Nearby peer discovery through environmental observations","archived":false,"fork":false,"pushed_at":"2025-11-16T19:54:46.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-16T21:15:40.913Z","etag":null,"topics":["libp2p","lsh","minhash","peer-discovery","rendezvous"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waerhert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-11-16T19:09:56.000Z","updated_at":"2025-11-16T19:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/waerhert/shimmer","commit_stats":null,"previous_names":["waerhert/shimmer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/waerhert/shimmer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waerhert%2Fshimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waerhert%2Fshimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waerhert%2Fshimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waerhert%2Fshimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waerhert","download_url":"https://codeload.github.com/waerhert/shimmer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waerhert%2Fshimmer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34645681,"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-22T02:00:06.391Z","response_time":106,"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":["libp2p","lsh","minhash","peer-discovery","rendezvous"],"created_at":"2025-11-18T03:00:49.094Z","updated_at":"2026-06-22T10:31:30.501Z","avatar_url":"https://github.com/waerhert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shimmer\n\nNearby peer discovery through environmental observations\n\n## ⚠️ Development Status\n\n**This software is in active development and subject to breaking changes. Not intended for production use.**\n\nAPIs may change without notice, features are experimental, and there are known security considerations that have not been fully addressed. Use at your own risk.\n\n## What is it?\n\nShimmer helps peers in the **same physical location** discover each other by observing their shared environment (WiFi networks, Bluetooth devices, cell towers). If you and I both see the same WiFi SSIDs, we're probably nearby - Shimmer lets us find each other.\n\n```\n     Home                             Library\n┌──────────────┐                  ┌──────────────┐\n│ WiFi: [      │                  │ WiFi: [      │\n│  \"MyWifi\"    │                  │  \"LibraryNet\"│\n│  \"FlyWifi\"   │                  │  \"PublicNet\" │\n│  \"Guest\"     │                  │ ]            │\n│ ]            │                  │              │\n│  Peer A ────┐│                  │  Peer C      │\n│  Peer B ────┘│                  │              │\n└──────────────┘                  └──────────────┘\n       │                                 │\n       │ 1. Sketch observations          │\n       ▼                                 ▼\n  [tag1,tag2]                      [tag5,tag6]\n       │                                 │\n       │ 2. Announce to Rendezvous       │\n       └────────►┌──────────┐◄───────────┘\n                 │Rendezvous│\n                 └────┬─────┘\n       ┌──────────────┴──────────────┐\n       │ 3. Discover matches         │\n       ▼                             ▼\n  A \u0026 B match!                 C (no match)\n       │\n       └──── 4. Compute 90% similarity\n                (same location!)\n```\n\n## How it works\n\n1. **Observe environment**: Scan WiFi SSIDs, Bluetooth devices, or cell towers\n2. **Sketch**: Convert observations into compact LSH (Locality-Sensitive Hashing) signatures\n3. **Announce**: Publish signatures to a rendezvous server\n4. **Discover**: Find peers with matching signatures\n5. **PSI**: Use Private Set Intersection to compute exact similarity\n\n## Quick Example\n\nBased on [src/scripts/four.ts](src/scripts/four.ts):\n\n```typescript\nimport { createLibp2p } from 'libp2p';\nimport { tcp } from '@libp2p/tcp';\nimport { noise } from '@chainsafe/libp2p-noise';\nimport { yamux } from '@chainsafe/libp2p-yamux';\nimport { shimmer } from './shimmer.js';\nimport { httpRendezvous } from './rendezvous/factories.js';\n\nconst node = await createLibp2p({\n  addresses: {\n    listen: ['/ip4/0/tcp/0']\n  },\n  transports: [tcp()],\n  connectionEncrypters: [noise()],\n  streamMuxers: [yamux()],\n  services: {\n    shimmer: shimmer({\n      rendezvous: httpRendezvous('http://localhost:8771'),\n      autoDiscoverInterval: 5000,  // Auto-discover every 5s\n      autoAnnounce: true\n    })\n  }\n});\n\nawait node.start();\nawait node.services.shimmer.start();\n\n// Sketch environmental observations\n// In real application you would use SSID + BSSID\nconst wifiNetworks = ['MyWifi', 'FlyWifi', 'Guest'];\nawait node.services.shimmer.sketch('wifi', wifiNetworks);\n\n// Listen for nearby peers\nnode.addEventListener('peer:discovery', (evt) =\u003e {\n  console.log('Discovered nearby peer:', evt.detail.id);\n});\n\n// Check similarity scores\nnode.services.shimmer.addEventListener('peer:psi:complete', (event) =\u003e {\n  const { peer, result } = event.detail;\n  console.log(`Peer ${peer.peerInfo.id}: ${result.similarity.toFixed(1)}% similar`);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaerhert%2Fshimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaerhert%2Fshimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaerhert%2Fshimmer/lists"}