Home Guides Protocol Install Awesome Hacks
Guides Hyperspace API RemoteCorestore

RemoteCorestore

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

The API for the Hyperspace daemon "corestore." Mirrors the corestore module.

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

const client = new HyperspaceClient() // connect to the Hyperspace server
const corestore = client.corestore() // make a corestore

const newCore = corestore.get() // create a new hypercore
const existingCore = corestore.get(key) // get an existing hypercore