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
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.

New to the CLI? Run pear --menu (Pear 3.2.0+) to browse every command from a filterable list and fill in its flags as a form, instead of memorizing them. See Browse commands with the interactive menu.

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