Home Guides Protocol Install Awesome Hacks
Guides Hyperspace API

Hyperspace Client API

API Docs https://github.com/hypercore-protocol/hyperspace-client

The API for the Hyperspace daemon. If you're trying to figure out how to start and what to use, see the Getting Started Guide.

const { Client: HyperspaceClient } = require('@hyperspace')

const client = new HyperspaceClient() // connect to the Hyperspace server
const corestore = client.corestore() // make a corestore
const feed = corestore.get(someHypercoreKey) // make a hypercore
await feed.get(42) // get some data from the hypercore