Pear Docs

Pear

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

Pear is an installable peer-to-peer runtime, development, and deployment platform. Build, share, and extend unstoppable, zero-infrastructure P2P apps for mobile, desktop, and terminal.

Welcome to the Internet of Peers.

  – Holepunch, the P2P Company

Pear runs on Bare, the zero-core JavaScript runtime underneath it—which you can also use entirely on its own, embedded in a native app or compiled into a standalone binary. How the stack fits together maps the layers.

Install Pear

Get the pear CLI from install.pears.com:

curl https://install.pears.com/pear.sh | sh

See Getting started for Windows, npx, and Docker installs, then what to do next—ship an app you already have, or start from a template.

Boilerplates & key docs

Starter paths and the most relevant docs for building and shipping a Pear desktop app (macOS / Linux / Windows):

The upstream Electron template used by the team is holepunchto/hello-pear-electron on GitHub (clone there for a ready-made repo; use the links above for explanations and procedures).

How-to guides by task

Goal-oriented recipes, grouped by task. Releasing and distributing your app lives here too—shipping and updating is a how-to, spanning manual deployment, multisig, build & package, and CI; the why is in Release pipeline.

Module catalog

The full list of pear-* modules—application libraries, UI libraries, common libraries, developer libraries, integration libraries—lives at Reference → Modules. Building-block libraries (Hypercore, Hyperbee, Hyperdrive, …), helpers (Corestore, Localdrive, …), and CLI tools have full reference pages under P2P's Reference. The runtime underneath has its own reference—the bare-* modules, the Bare runtime API, the bare CLI, and Bare Kit for native embedding.

On this page