Secure distributed append-only log for large datasets and realtime streams.
Documented against v11.36.1
stable
Hypercore is a secure, distributed append-only log for sharing large datasets and realtime streams. It supports sparse replication, verified reads, optional block encryption, and session-based workflows for building higher-level local-first and peer-to-peer data structures.
Coded errors this module can throw — catch them via err.code.
Error
Thrown when
ASSERTION
if index is not a valid block index.; if bytes is not a valid byte offset.; if the start/end range is invalid.; if the provider does not satisfy the HypercoreEncryption interface.; if the core is already in gc mode, or is a named or atomic session.
BAD_ARGUMENT
if an appended block exceeds the maximum suggested block size.
INVALID_OPERATION
if the append is inconsistent with the manifest prologue.; if the truncation would break the manifest prologue.; if no database batch was passed, or the tree changed during the batch.
SESSION_CLOSED
if called on a core that is already closing.; if the core has been closed.