holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 134 forks source link

Added extension support #240

Closed RangerMauve closed 5 years ago

RangerMauve commented 5 years ago

Following up on the hypercore extension support, this surfaces the extensions API in hyperdrive so that applications can build on top of it.

This could simplify code for things like Beaker's datPeers API.

Adds:

TODO:

Should I maybe redo this PR against the v10 branch, or could we get it into a v9 release before then?

RangerMauve commented 5 years ago

This is ready for review. Just need to wait for hypercore 7.5.0 to be released on NPM, then I'll need to update the package.json version