Files
modules/indexes-search/hyper-p2p-inverted-index
Raven ScottandCursor b8b815fce6 Add features across agents, collab, trust, indexes, and hyperbee.
Manual pass: task cancelTask, workflow topologicalOrder/fail/reset, collab kick/replay, trust trustedPeers and multisig TTL sweep, graph shortestPath, inverted topTerms, dedup filterNew, bee notifyBatch/seekVersion — all with tests.

Co-authored-by: Cursor <[email protected]>
2026-05-21 01:04:42 -04:00
..
2026-05-20 23:36:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 22:56:32 -04:00

hyper-p2p-inverted-index

Distributed inverted index with term-level gossip sync over Hyperswarm.

Category: indexes-search

Composes with: hyper-p2p-topic-channel

Protocol: inverted-index/v1

When to use

Peer-assisted document lookup where each node indexes local docs and merges remote term postings via gossip.

When not to use

Large-scale search requiring ranked full-text scoring (use hyper-p2p-fulltext-lite) or exact global consistency without merge semantics.

Quick start

const { HyperP2PInvertedIndex } = require('hyper-p2p-inverted-index')
const topic = process.argv[2]
const mod = new HyperP2PInvertedIndex({ topic })
await mod.ready()
mod.index('doc-1', ['pear', 'p2p'])
console.log(mod.search('pear'))
await mod.close()

Docs

Test

npm install && npm test