Interconnections Guide
Hypercore + Hyperswarm + Hyperdrive Stack
Hypercore (logs) → Hyperdrive (FS) → Hyperswarm (swarm)
↓ DHT announce
HyperDHT (discovery)
Example: Collaborative FS
const Hypercore = require('hypercore')
const Hyperdrive = require('hyperdrive')
const Hyperswarm = require('hyperswarm')
const core = new Hypercore(Randy('./meta'))
const drive = new Hyperdrive('./drive', core)
const swarm = new Hyperswarm()
swarm.join(core.discoveryKey)
swarm.on('connection', (conn) => drive.replicate(conn))
Tradeoffs Table
| Combo | Use Case | Perf Note |
|---|---|---|
| Hypercore + Swarm | Chat logs | Low latency gossip |
| Drive + DHT | File share | Sparse replication |
| Bee + Multisig | DB collab | Append-proof integrity |
More: Autobase for CRDT over cores.