LogoPear Docs

Pear by Holepunch

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

Install Pear

Get the pear CLI from install.pears.com:

curl https://install.pears.com/pear.sh | sh
irm https://install.pears.com/pear.ps1 | iex
npx pear
docker run -it --rm tetherto/pear

Follow the PATH instructions the installer prints, then run pear directly. Full details, upgrade instructions, and the npm-global alternative are on Install & upgrade. The tetherto/pear image runs Pear inside Ubuntu with pear and pear-install ready to go—a low-risk way to try out Pear apps without installing anything locally.

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-* and bare-* modules—application libraries, UI libraries, common libraries, developer libraries, integration libraries—lives at Reference → Modules and Reference → Bare modules. Building-block libraries (Hypercore, Hyperbee, Hyperdrive, …), helpers (Corestore, Localdrive, …), and CLI tools have full reference pages under Reference. The runtime underneath has its own reference—the Bare runtime API, the bare CLI, and Bare Kit for native embedding.

On this page