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

Showcase

Peer-to-peer applications built on, deployed with, and running on Pear:

Find what you need

Pick the section that matches what you're trying to do: learn by building an example app or read more about Pear and P2P.

Getting Started—learn by doing

A four-part type-along that builds a peer-to-peer chat app with Electron, adds persistence with Corestore, then ships and updates it. About 15 minutes for the first part; no clone required.

Start the type-along →

Prefer to start from a working template? Start from the hello-pear-electron and hello-pear-bare clones. The boilerplate and walks you through where the frontend, app logic, and preload bridge live before you add a feature end to end.

About Pear—understand this

Conceptual background on Pear's design—runtime and languages, storage and distribution, and dependencies on the network. Use this when you want to know why, not how.

About Pear →

How To—do this specific thing

Goal-oriented recipes for tasks like connecting peers, replicating Hypercores, deploying an app, or troubleshooting common issues. Assumes you already know roughly what you're doing.

Browse how-tos →

Reference—look this up

Authoritative descriptions of Pear's CLI, runtime API, configuration, and the modules underneath. Use this when you need a fact, not a tutorial.

Browse reference →

Module catalog

Pear apps are suppored with pear-* and bare-* modules—application libraries. These are UI libraries, common libraries, developer libraries, and integration libraries—lives. Find the lists 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.

On this page