mattdesl / pear-desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pear by Holepunch

Pear loads applications remotely from peers and allows anyone to create and share applications with peers.

Pear by Holepunch is a combined Peer-to-Peer (P2P) Runtime, Development & Deployment tool.

Build, share & extend unstoppable, zero-infrastructure P2P applications for Desktop, Terminal & Mobile.

Welcome to the Internet of Peers

  – Holepunch, the P2P Company

Table of Contents

Reference

Guides

How-tos

Building blocks

Module Stability
hypercore stable
hyperbee stable
hyperdrive stable
autobase experimental
hyperswarm stable
hyperdht stable

Hypercore

The hypercore module is a distributed, secure append-only log for creating fast and scalable applications without a backend, as it is entirely peer-to-peer.

Notable features include:

  • Improved fork detection in the replication protocol, to improve resilience.
  • Optional on-disk encryption for blocks (in addition to the existing transport encryption).
  • A write-ahead log in the storage layer to ensure that power loss or unexpected shutdown cannot lead to data corruption.
  • The session and snapshot methods for providing multiple views over the same underlying Hypercore, which simplifies resource management.
  • A truncate method for intentionally creating a new fork, starting at a given length. We use this method extensively in autobase.

Hyperswarm

The hyperswarm module is a high-level API for finding and connecting to peers who are interested in a "topic."

Notable features include:

  • An improved UDP holepunching algorithm that uses arbitrary DHT nodes (optionally selected by the connecting peers) to proxy necessary metadata while being maximally privacy-preserving.
  • A custom-built transport protocol, UDX, that takes advantage of the holepunching algorithm to avoid unnecessary overhead (it doesn't include handshaking since holepunching takes care of that, for example). It's blazing fast.
  • A simplified DHT API that closely resembles NodeJS's net module, but using public keys instead of IP addresses.

Hyperdrive

The hyperdrive module is a secure, real-time distributed file system that simplifies P2P file sharing that provides an efficient way to store and access data across multiple connected devices in a decentralized manner.

  • Uses Hyperbee internally for storing file metadata
  • Major API simplification. Instead of mirroring POSIX APIs, the new API better captures the core requirements of P2P file transfer.
  • Auxiliary tools, localdrive and mirrordrive, that streamline import/export flows and make it easy to mirror drives to and from the local filesystem.

Autobase (experimental)

The autobase experimental module provides a "virtual Hypercore" layer over many Hypercores owned by many different peers.

Notable features include:

  • automatic rebasing of multiple causally-linked Hypercores into a single, linearized Hypercore for multi-user collaboration
  • low-friction integration into higher-level modules like Hyperbee and Hyperdrive: Autobase's output shares the familiar Hypercore API so peer-to-peer multi-user collaboration is achievable with little additional implementation effort.

Autobase is still experimental and is likely to change significantly in the near future.

Hyperdht

The hyperdht module is the Distributed Hash Table (DHT) powering Hyperswarm. Through this DHT, each server is bound to a unique key pair, with the client connecting to the server using the server's public key.

Notable features include:

  • lower-level module provides direct access to the DHT for connecting peers using key pairs

Helpers

Helper modules can be used together with the building blocks to create cutting-edge P2P tools and applications.

  • corestore: A Hypercore factory designed to facilitate the management of sizable named Hypercore collections.
  • localdrive: A file system interoperable with Hyperdrive.
  • mirrordrive: Mirror a hyperdrive or a localdrive into another one.
  • secretstream: SecretStream is used to securely create connections between two peers in Hyperswarm.
  • compact-encoding: A series of binary encoding schemes for building fast and small parsers and serializers. We use this in Keet to store chat messages and in Hypercore's replication protocol.
  • protomux: Multiplex multiple message oriented protocols over a stream.

Tools

The following tools are used extensively employed in the day-to-day development and operation of applications built on Pear

Tools Description
Hypershell A CLI to create and connect to P2P E2E encrypted shells..
Hypertele A swiss-knife proxy powered by HyperDHT.
Hyperbeam A one-to-one and end-to-end encrypted internet pipe.
Hyperssh A CLI to run SSH over the HyperDHT.
Drives CLI to download, seed, and mirror a hyperdrive or a localdrive.

Stability indexing

Throughout the documentation, indications of stability are provided. Some modules are well-established and used widely, making them highly unlikely to ever change. Other modules may be new, experimental, or known to have risks associated with their use.

The following stability indices have been used:

Stability Description
stable Unlikely to change or be removed in the foreseeable future.
experimental New, untested, or have known issues.
deprecated Being removed or replaced in the future.
unstable May change or be removed without warning.

About


Languages

Language:JavaScript 72.1%Language:HTML 27.9%