LogoPear Docs

How To

Goal-oriented recipes for building peer-to-peer logic on Bare—connecting peers, replicating data, streaming media, and running on native and mobile.

How-tos are goal-oriented recipes. Each one assumes you already know roughly what you're doing and just need the steps for a particular task—connecting two peers with HyperDHT, replicating with Hypercore, or porting an existing Node.js app.

If you want to look up an API or a module, that's Reference. For the conceptual "why," see About Bare.

This section covers peer-to-peer logic that runs on Bare alone—no Pear app required. If you're building or shipping a Pear app instead (staging, seeding, provisioning, updating), see the how-to guides on the Pear tab.

In this section

Connecting peers

Storage and replication

Managing identity

Stream and share media

Run on mobile & native

On this page