# Pear Docs > Pear loads applications remotely from peers and lets anyone create and share them. P2P is the set of building blocks it is made from (Hypercore, Hyperswarm, Hyperbee, Hyperdrive, Autobase, HyperDHT, Corestore), usable with or without Pear. Bare is the small JavaScript runtime underneath, for desktop, mobile, and embedded use. Every page link below points at its Markdown version. MCP server: https://mcp.pears.com/mcp (streamable HTTP, no authentication). Tools: search_docs for semantic search, fetch_doc for a page as Markdown. Server card: https://docs.pears.com/.well-known/mcp/server-card.json ## Overview - [Pear](https://docs.pears.com/index.md): Pear loads applications remotely from peers and lets anyone create and share applications with peers. - [P2P](https://docs.pears.com/p2p.md): P2P is the peer-to-peer building blocks—Hypercore, Hyperswarm, Autobase, Hyperbee, Hyperdrive, HyperDHT, and Corestore—independent JavaScript modules for storage, discovery, and replication, usable with or without Pear. - [Bare](https://docs.pears.com/bare.md): Bare is a zero-core JavaScript runtime for desktop and mobile: embed it in a native app, compile a script into a standalone binary, and run the same peer-to-peer core on all of them. ## Pear: Getting started - [Getting started](https://docs.pears.com/pear/getting-started.md): Install the pear CLI, then ship an app you already have—stage, seed, and release it over the air. ## Pear: How-to guides - [How To](https://docs.pears.com/pear/how-to.md): Goal-oriented recipes for getting things done with Pear. Each guide solves one specific problem from start to finish. - [Browse commands with the interactive menu](https://docs.pears.com/pear/how-to/browse-commands-with-the-interactive-menu.md): Use pear --menu to find and run CLI commands from a filterable list and a real form, instead of memorizing flags. - [Look up this machine's network keys](https://docs.pears.com/pear/how-to/look-up-network-keys.md): Use pear identity to read the seed, blind relay, blind peer, and blind peer client keys this machine presents to the network, and hand the right one to the right peer. - [Manage installed applications](https://docs.pears.com/pear/how-to/manage-installed-applications.md): Find the Pear applications installed on your machine and reset an app's local storage when you need a clean slate. - [Release & distribute your app](https://docs.pears.com/pear/how-to/operate-an-app.md): Build, sign, deploy, and multisig a Pear app: distributables, manual stage → provision, quorum signing, CI, changelogs, and migration. - [Build & package](https://docs.pears.com/pear/how-to/operate-an-app/build-and-package.md): Produce signed desktop distributables, a standalone bootstrap binary, and app-store packages for a Pear app. - [Build desktop distributables](https://docs.pears.com/pear/how-to/operate-an-app/build-and-package/build-desktop-distributables.md): Produce signed macOS, Windows, and Linux artifacts for a Pear Electron app, then assemble a multi-architecture deployment directory for pear stage. - [Distribute as a binary](https://docs.pears.com/pear/how-to/operate-an-app/build-and-package/distribute-as-binary.md): Ship a Pear application as a small bootstrap binary that pulls the latest version from the swarm. One binary serves every future release. - [Submit to app stores](https://docs.pears.com/pear/how-to/operate-an-app/build-and-package/submit-to-app-stores.md): Package a Pear app for platform stores—Flathub, the Snap Store, and the Mac App Store on desktop, the App Store and Google Play on mobile. - [CI/CD with GitHub Actions](https://docs.pears.com/pear/how-to/operate-an-app/github-actions.md): Build, code-sign, and publish a Pear app from GitHub Actions so shipping a new version is a git push. - [Build and sign desktop apps with GitHub Actions](https://docs.pears.com/pear/how-to/operate-an-app/github-actions/build-and-sign-in-ci.md): Build, code-sign, and notarize a Pear Electron app on macOS, Windows, and Linux from GitHub Actions with the make-pear-app action, build its Mac App Store package, then hand the artifacts to pear build or pear-ci. - [Publish with GitHub Actions](https://docs.pears.com/pear/how-to/operate-an-app/github-actions/publish-with-github-actions.md): Auto-publish and update a Pear app from CI with the pear-ci GitHub Action—push to your repo and a stable pear:// link is staged for you. - [Integrate Pear OTA into an existing app](https://docs.pears.com/pear/how-to/operate-an-app/integrate-pear-ota.md): Add over-the-air updates to an app you already have, on desktop or mobile, without changing its existing structure. - [Integrate Pear OTA into an existing Electron app](https://docs.pears.com/pear/how-to/operate-an-app/integrate-pear-ota/electron.md): Add over-the-air updates to an app you already have: install pear-runtime, mint an upgrade link, add a dedicated updater worker, and wire the main-process apply/relaunch flow. - [Integrate Pear OTA into an existing mobile app](https://docs.pears.com/pear/how-to/operate-an-app/integrate-pear-ota/mobile.md): Add over-the-air updates to a React Native or Expo app you already have: install pear-mobile, bundle a Bare worklet, wire the updater and minver gate, and handle the platform-specific restart. - [Manual deployment](https://docs.pears.com/pear/how-to/operate-an-app/manual-deployment.md): The full-control desktop release flow—touch, upgrade link, version, build, stage, provision—plus release troubleshooting. Includes the mobile OTA payload flow. - [Deploy your application](https://docs.pears.com/pear/how-to/operate-an-app/manual-deployment/deployment.md): Operator how-to for the eight Foundational Steps of the desktop release flow: touch, upgrade link, version, make, pear build, stage, provision, and multisig. - [Deploy your mobile application](https://docs.pears.com/pear/how-to/operate-an-app/manual-deployment/mobile.md): Operator how-to for the mobile release flow: build the OTA payload, mobile release lines, and store submissions—the steps that differ from the desktop Foundational Steps. - [Preflight a release before staging](https://docs.pears.com/pear/how-to/operate-an-app/manual-deployment/preflight-a-release.md): Check a deployment directory and your write access before you stage: confirm every architecture landed with pear build --json, check pear info's writable field, then dry-run the stage. Includes a CI version. - [Troubleshoot desktop releases](https://docs.pears.com/pear/how-to/operate-an-app/manual-deployment/troubleshoot-desktop-releases.md): Fix common Pear desktop OTA and staging problems—version bumps, upgrade links, seeding, lost keys, and pear build folder layout. - [Migrate from pear run to Pear OTA](https://docs.pears.com/pear/how-to/operate-an-app/migration.md): Move off the removed pear run runtime and the global Pear API onto Pear OTA (the pear-runtime library). - [Multisig](https://docs.pears.com/pear/how-to/operate-an-app/multisig.md): Set up a quorum-signed production drive and run the repeatable multisig release flow—request, sign, verify, commit. - [Set up multisig](https://docs.pears.com/pear/how-to/operate-an-app/multisig/set-up-multisig.md): One-time setup for a multisig production drive: generate signing keys, configure pear.json, compute the multisig link, and point upgrade at it. - [Sign with multisig](https://docs.pears.com/pear/how-to/operate-an-app/multisig/sign-with-multisig.md): The repeatable multisig release flow: prepare a signing request, collect a quorum of signatures, verify, and commit the production drive. - [Troubleshoot multisig](https://docs.pears.com/pear/how-to/operate-an-app/multisig/troubleshoot-multisig.md): Fix multisig release problems: requests refused for unhealthy seeding, interrupted commits, INCOMPATIBLE_SOURCE_AND_TARGET, and recovering lost write access. - [Publish a changelog for your app](https://docs.pears.com/pear/how-to/operate-an-app/publish-a-changelog.md): Ship a CHANGELOG.md with your Pear app so users read release notes over peer-to-peer with the pear changelog command. - [Troubleshoot common issues](https://docs.pears.com/pear/how-to/troubleshooting.md): Fixes for Pear CLI and deployment issues. ## Pear: Reference - [Reference](https://docs.pears.com/pear/reference.md): Authoritative descriptions of Pear's CLI, runtime APIs, configuration, building blocks, and helper modules. Use this when you need a fact, not a tutorial. - [Desktop release npm scripts](https://docs.pears.com/pear/reference/ci-and-release/desktop-release-npm-scripts.md): Reference for common npm scripts in Pear Electron desktop repos—dev start, lint, package, and make targets before pear build. - [Holepunch GitHub Actions](https://docs.pears.com/pear/reference/ci-and-release/github-actions.md): Reference for the shared composite GitHub Actions in holepunchto/actions used to build, sign, publish, and recover Pear applications. - [pear-ci GitHub Action](https://docs.pears.com/pear/reference/ci-and-release/pear-ci-action.md): Reference for the holepunchto/actions/pear-ci GitHub Action—inputs, outputs, validation, and the underlying pear-ci CLI for staging a Pear app from CI. - [Modules](https://docs.pears.com/pear/reference/modules/pear-modules.md): Catalog of installable Pear modules—application, UI, common, developer, and integration libraries shipped as `pear-*` packages. - [Application Programming Interface (API)](https://docs.pears.com/pear/reference/pear/api.md): Reference for the removed global.Pear direct-access API. - [Command Line Interface (CLI)](https://docs.pears.com/pear/reference/pear/cli.md): Pear CLI: stage, seed, build, install, and day-to-day development commands. - [Configuration](https://docs.pears.com/pear/reference/pear/configuration.md): Pear package.json fields and pear application configuration. - [Pear Mobile OTA](https://docs.pears.com/pear/reference/pear/mobile.md): Pear Mobile OTA (the pear-mobile module) for embedding Pear's over-the-air updates and Bare worklets into React Native and Expo apps. - [Mobile OTA Boot Control](https://docs.pears.com/pear/reference/pear/mobile-boot-control.md): The pear-runtime-react-native Expo config plugin: how it chooses between a native build's bundled JS and a downloaded Pear OTA update. - [Pear OTA](https://docs.pears.com/pear/reference/pear/runtime.md): Pear OTA (the pear-runtime module) for peer-to-peer application deployment and over-the-air updates. ## Pear: Explanation - [About Pear](https://docs.pears.com/pear/explanation.md): Why Pear is shaped the way it is—peer-to-peer, append-only logs, the runtime split, and the trade-offs behind each choice. - [Availability and distribution](https://docs.pears.com/pear/explanation/availability-and-blind-peering.md): Keeping Pear application bundles reachable when authors go offline—seeding with pear seed, its limits, and finding the keys that need to stay available. - [Dependencies](https://docs.pears.com/pear/explanation/dependencies-and-network.md): Why Pear ships with npm as the install path, and what your dependencies actually do at stage and runtime. - [Deployment - Releasing Apps P2P](https://docs.pears.com/pear/explanation/deployment-releasing-apps-p2p.md): Why Pear desktop releases use stage, provision, and multisig pear links—the trust ladder, release lines, deployment directory, and recurring cycle. - [Pear desktop application architecture](https://docs.pears.com/pear/explanation/pear-desktop-architecture.md): How a typical Pear + Electron desktop app splits OTA updates, on-disk storage, and Bare workers—main process, renderer, and data plane. - [Pear mobile application architecture](https://docs.pears.com/pear/explanation/pear-mobile-architecture.md): How a typical Pear + React Native app splits OTA updates, on-disk storage, and a Bare worklet—the view runtime, the local backend, and the IPC pipe connecting them. - [Runtime and languages](https://docs.pears.com/pear/explanation/runtime-and-languages.md): Pear runs JavaScript on the Bare runtime; here's why, what other languages can plug in via native addons, and how to structure code so one app runs everywhere. - [Storage and distribution](https://docs.pears.com/pear/explanation/storage-and-distribution.md): Where Pear keeps applications and their data on disk, why it's structured that way, and how the swarm gets new versions to your peers. - [Workers](https://docs.pears.com/pear/explanation/workers.md): Why a Pear app's peer-to-peer logic lives in a Bare worker behind a single IPC stream—what the pattern buys you, where to put the boundary, and how the host and worker halves talk. ## Pear: Release overview - [Release Overview](https://docs.pears.com/pear/release-overview.md): Curated overview of releases across Pear and its pear-* modules—breaking changes, removals, and additions, with migration guidance for each. ## P2P: Getting started - [Getting started](https://docs.pears.com/p2p/getting-started.md): A four-part onboarding path that takes you from a 5-file local Pear chat to the full hello-pear-electron production scaffold to a live OTA cycle and a multisig release. - [Build a peer-to-peer chat](https://docs.pears.com/p2p/getting-started/build-a-peer-to-peer-chat/build-a-peer-to-peer-chat.md): First of four onboarding steps: type along five files to get a working Electron chat that finds peers on the public DHT and streams messages directly. - [Reshape into a production app](https://docs.pears.com/p2p/getting-started/build-a-peer-to-peer-chat/reshape-into-a-production-app.md): Second of four onboarding steps: take part 1's from-scratch chat and reshape it into the production hello-pear-electron scaffold—a Bare chat worker, an Autobase room with blind-pairing invites, on-disk persistence, a separate OTA updater worker, and a polished Tailwind UI with a copy-invite button. - [Ship your app](https://docs.pears.com/p2p/getting-started/build-a-peer-to-peer-chat/ship.md): Third of four onboarding steps: pear touch, an upgrade link, electron-forge make, pear build, pear stage, and pear provision to publish your first version. - [Deploy over-the-air updates](https://docs.pears.com/p2p/getting-started/build-a-peer-to-peer-chat/update.md): Fourth of four onboarding steps: run the installed app, ship a second version, watch the OTA cycle, and preview multisig. - [Start from a template](https://docs.pears.com/p2p/getting-started/from-a-template.md): Official Pear boilerplates to start from—hello-pear-electron for desktop GUI apps, hello-pear-bare for long-running terminal binaries, hello-pear-daemon for short-lived CLIs, hello-pear-qvac-tui for on-device AI in the terminal, and hello-pear-react-native for mobile apps—all with peer-to-peer over-the-air updates. Pick the one that matches what you're shipping. - [Start a terminal app from the hello-pear-bare template](https://docs.pears.com/p2p/getting-started/from-a-template/start-from-hello-pear-bare.md): An alternative getting started path for terminal apps: clone the hello-pear-bare boilerplate and learn how a standalone Bare process wires pear-runtime over-the-air updates, Corestore, and Hyperswarm—then build it into a cross-platform binary. - [Start a short-lived CLI from the hello-pear-daemon template](https://docs.pears.com/p2p/getting-started/from-a-template/start-from-hello-pear-daemon.md): An alternative getting started path for short-lived command-line tools: clone the hello-pear-daemon boilerplate and learn how a foreground command spawns a detached bare-daemon updater that checks for pear-runtime over-the-air updates in the background after the command has exited—then build it into a cross-platform binary. - [Start a desktop app from the hello-pear-electron template](https://docs.pears.com/p2p/getting-started/from-a-template/start-from-hello-pear-electron.md): An alternative getting started path: clone the hello-pear-electron boilerplate and learn where the frontend lives, where the app logic lives, and how the preload bridge and worker IPC connect them—then add a feature end to end. - [Start an on-device AI terminal app from the hello-pear-qvac-tui template](https://docs.pears.com/p2p/getting-started/from-a-template/start-from-hello-pear-qvac-tui.md): An alternative getting started path for AI in the terminal: clone the hello-pear-qvac-tui boilerplate and learn how two Bare workers, QVAC on-device inference, and a bare-tui interface fit together—then build it into a cross-platform binary that updates itself over the air. - [Start a mobile app from the hello-pear-react-native template](https://docs.pears.com/p2p/getting-started/from-a-template/start-from-hello-pear-react-native.md): An alternative getting started path: clone the hello-pear-react-native boilerplate and learn where the React Native view lives, where the app logic lives, and how pear-mobile wires a Bare worklet and over-the-air updates into an Expo app. ## P2P: How-to guides - [How To](https://docs.pears.com/p2p/how-to.md): Goal-oriented recipes for the peer-to-peer building blocks—connecting peers, replicating data, managing identity, and streaming media. - [Add typed RPC to a Pear app](https://docs.pears.com/p2p/how-to/add-typed-rpc-to-a-pear-app.md): Replace hand-checked message types on a Pear app's worker IPC stream with generated, typed request/response methods using HRPC. - [Blind peering](https://docs.pears.com/p2p/how-to/blind-peering.md): Keep Hypercores, Autobases, and chat rooms available when no writer is online by attaching a blind-peering client. - [Add blind peering to a chat app](https://docs.pears.com/p2p/how-to/blind-peering/add-blind-peering-to-a-chat-app.md): Keep a chat room reachable when none of its writers are online by attaching a blind-peering relay on top of the pear-chat scaffold. - [Keep data available with blind peering](https://docs.pears.com/p2p/how-to/blind-peering/keep-data-available-with-blind-peering.md): Use a blind-peering client to ask blind peers to keep your Hypercores and Autobases available even when no writer is online—the Pear/Bare logic, no UI required. - [Connect to peers](https://docs.pears.com/p2p/how-to/connect-to-peers.md): Discover and connect peers with HyperDHT and Hyperswarm—by public key, by topic, and across multiple rooms in one app. - [Connect to many peers by topic with Hyperswarm](https://docs.pears.com/p2p/how-to/connect-to-peers/connect-to-many-peers-by-topic-with-hyperswarm.md): Discover peers on a topic and keep connections alive with Hyperswarm. - [Connect two peers by key with HyperDHT](https://docs.pears.com/p2p/how-to/connect-to-peers/connect-two-peers-by-key-with-hyperdht.md): Connect client and server peers by public key using HyperDHT hole punching. - [Host multiple rooms in one chat app](https://docs.pears.com/p2p/how-to/connect-to-peers/host-multiple-rooms-in-one-chat-app.md): Extend the pear-chat scaffold from a single room to an account that owns and joins many rooms, each with its own Autobase. - [Relay connections through a blind relay](https://docs.pears.com/p2p/how-to/connect-to-peers/relay-connections-through-a-blind-relay.md): Run a blind relay and point peers at it with --relay, for networks where hole punching cannot establish a direct connection. - [Manage identity](https://docs.pears.com/p2p/how-to/manage-identity.md): Create portable Keet identity keys from a mnemonic and wire them into a peer-to-peer app. - [Add Keet identity to a chat app](https://docs.pears.com/p2p/how-to/manage-identity/add-keet-identity-to-a-chat-app.md): Anchor a chat user to a portable identity key derived from a mnemonic, using keet-identity-key on top of the pear-chat scaffold. - [Create a portable identity with Keet identity keys](https://docs.pears.com/p2p/how-to/manage-identity/create-a-portable-identity-with-keet-identity-key.md): Derive a portable identity from a mnemonic, attest a per-device key, then sign and verify data with it—the Pear/Bare logic, no UI required. - [Store and replicate](https://docs.pears.com/p2p/how-to/store-and-replicate.md): Persist and replicate peer-to-peer data with Hypercore, Corestore, and Hyperbee. - [Build a multiwriter app with Autobase](https://docs.pears.com/p2p/how-to/store-and-replicate/build-a-multiwriter-app-with-autobase.md): Let several peers write to one shared, eventually consistent view with Autobase. - [Build a multiwriter database with Autobee](https://docs.pears.com/p2p/how-to/store-and-replicate/build-a-multiwriter-database-with-autobee.md): Give a Hyperbee many writers and query the shared key/value view from every peer. - [Replicate and persist with Hypercore](https://docs.pears.com/p2p/how-to/store-and-replicate/replicate-and-persist-with-hypercore.md): Persist messages and streams with append-only Hypercore replication. - [Share append-only databases with Hyperbee](https://docs.pears.com/p2p/how-to/store-and-replicate/share-append-only-databases-with-hyperbee.md): Writer and reader peers with Hyperbee, Corestore, and Hyperswarm. - [Work with many Hypercores using Corestore](https://docs.pears.com/p2p/how-to/store-and-replicate/work-with-many-hypercores-using-corestore.md): Manage and co-replicate many named cores from one Corestore. - [Stream and share media](https://docs.pears.com/p2p/how-to/stream-and-share-media.md): Share files and stream photos, stored video, and live camera peer-to-peer with Hyperdrive and Hyperblobs. - [Back up photos in a peer-to-peer app](https://docs.pears.com/p2p/how-to/stream-and-share-media/back-up-photos-in-a-peer-to-peer-app.md): Decode local photos with bare-ffmpeg/bare-media and push them into a Hyperblobs store on top of the hello-pear-electron scaffold. - [Create a full peer-to-peer filesystem with Hyperdrive](https://docs.pears.com/p2p/how-to/stream-and-share-media/create-a-full-peer-to-peer-filesystem-with-hyperdrive.md): Mirror local folders into Hyperdrive and replicate with reader peers. - [Share files in a peer-to-peer app](https://docs.pears.com/p2p/how-to/stream-and-share-media/share-files-in-a-peer-to-peer-app.md): Swap the hello-pear-electron room for a Hyperdrive so peers can publish files into a shared folder and replicate them through the same scaffold. - [Store and serve large media with Hyperblobs](https://docs.pears.com/p2p/how-to/stream-and-share-media/store-and-serve-large-media-with-hyperblobs.md): Store large files and media as blobs on a Hypercore, replicate them over Hyperswarm, and serve them to a UI over local HTTP with range requests—the Pear/Bare logic, no UI required. - [Stream a live camera in a peer-to-peer app](https://docs.pears.com/p2p/how-to/stream-and-share-media/stream-a-live-camera-in-a-peer-to-peer-app.md): Chunk live camera frames into Hyperblobs and serve them with hypercore-blob-server on top of the hello-pear-electron scaffold. - [Stream stored video in a peer-to-peer app](https://docs.pears.com/p2p/how-to/stream-and-share-media/stream-stored-video-in-a-peer-to-peer-app.md): Serve stored video files over hypercore-blob-server so peers can stream them with range requests on top of the hello-pear-electron scaffold. - [Troubleshoot common issues](https://docs.pears.com/p2p/how-to/troubleshooting.md): Fixes for peer-to-peer building-block issues. ## P2P: Reference - [Reference](https://docs.pears.com/p2p/reference.md): Authoritative descriptions of the peer-to-peer building blocks, helpers, and tools—Hypercore, Hyperswarm, Autobase, and the rest. Use this when you need a fact, not a tutorial. - [Autobase](https://docs.pears.com/p2p/reference/building-blocks/autobase.md): Multi-writer linearization layer for building deterministic views from many Hypercores. - [Autobee](https://docs.pears.com/p2p/reference/building-blocks/autobee.md): Multiwriter Hyperbee: many writers linearized into one deterministic key/value view. - [Hyperbee](https://docs.pears.com/p2p/reference/building-blocks/hyperbee.md): Append-only B-tree on Hypercore for sorted key/value data. - [Hypercore](https://docs.pears.com/p2p/reference/building-blocks/hypercore.md): Secure distributed append-only log for large datasets and realtime streams. - [HyperDHT](https://docs.pears.com/p2p/reference/building-blocks/hyperdht.md): P2P DHT for keyed peer lookup, hole punching, and encrypted direct connections. - [Hyperdrive](https://docs.pears.com/p2p/reference/building-blocks/hyperdrive.md): Secure real-time distributed filesystem built on Hypercore-based storage. - [Hyperswarm](https://docs.pears.com/p2p/reference/building-blocks/hyperswarm.md): Topic-based peer discovery and encrypted connections on top of HyperDHT. - [blind-peer](https://docs.pears.com/p2p/reference/helpers/blind-peer.md): Server library that stores and serves Hypercores for other peers without reading them: embed one in your process, set its limits and observe it. - [blind-peering](https://docs.pears.com/p2p/reference/helpers/blind-peering.md): Client that asks blind peers to keep Hypercores and Autobases available and to forward push notifications. - [compact-encoding](https://docs.pears.com/p2p/reference/helpers/compact-encoding.md): Small binary encoding toolkit for protocol messages and storage formats. - [Corestore](https://docs.pears.com/p2p/reference/helpers/corestore.md): Factory and replication manager for groups of named Hypercores. - [HRPC](https://docs.pears.com/p2p/reference/helpers/hrpc.md): Schema-generated typed RPC client and server stubs over a duplex stream. - [Hyperschema](https://docs.pears.com/p2p/reference/helpers/hyperschema.md): Declarative, versioned binary schemas that generate compact-encoding codecs and enforce append-only updates. - [Localdrive](https://docs.pears.com/p2p/reference/helpers/localdrive.md): Local filesystem adapter with a Hyperdrive-like API. - [MirrorDrive](https://docs.pears.com/p2p/reference/helpers/mirrordrive.md): Diff and sync engine for copying between drive-like APIs. - [Protomux](https://docs.pears.com/p2p/reference/helpers/protomux.md): Multiplex multiple framed protocols over one transport stream. - [NoiseSecretStream](https://docs.pears.com/p2p/reference/helpers/secretstream.md): Noise-encrypted duplex stream used for Holepunch peer transports. - [Drives](https://docs.pears.com/p2p/reference/tools/drives.md): Reference for the Drives CLI: create drives, mirror directories, and seed Hyperdrives. - [Hyperbeam](https://docs.pears.com/p2p/reference/tools/hyperbeam.md): Reference for the Hyperbeam CLI: create an end-to-end encrypted one-to-one pipe over HyperDHT. - [Hypershell](https://docs.pears.com/p2p/reference/tools/hypershell.md): Reference for the Hypershell CLI tools: key generation, remote shell access, file copy, and tunneling. - [Hyperssh](https://docs.pears.com/p2p/reference/tools/hyperssh.md): Reference for the Hyperssh CLI: SSH, SSHFS, and RDP access over HyperDHT. - [Hypertele](https://docs.pears.com/p2p/reference/tools/hypertele.md): Reference for the Hypertele CLI: expose a local TCP or Unix service over HyperDHT and consume it from a local listener. ## P2P: Explanation - [A production Autobase-backed chat room](https://docs.pears.com/p2p/explanation/autobase-backed-chat-room.md): Tracing the P2P worker internals of pear-chat, the production scaffold behind Pear's getting-started tutorial: a Corestore + Hyperswarm + Autobase worker, blind-pairing invites, and a generated HyperDB/HyperDispatch schema. - [Blind peering](https://docs.pears.com/p2p/explanation/blind-peering.md): A dedicated replicator that stores and serves Hypercores and Autobases without decrypting them—running a blind-peer server and wiring the client into an app. - [From append-only logs to files](https://docs.pears.com/p2p/explanation/from-logs-to-files.md): How Hypercore, Hyperblobs, and Hyperdrive stack—and which layer to use for blocks, large objects, and path-addressed files. - [How the stack fits together](https://docs.pears.com/p2p/explanation/how-the-stack-fits-together.md): How Pear, P2P, and Bare fit together—from the native C foundations up through the Bare runtime, the P2P building blocks, and the Pear platform to the apps people run. - [Peer-to-peer, demystified](https://docs.pears.com/p2p/explanation/peer-to-peer-demystified.md): What changes when peer-to-peer applications connect without a central server—hole punching, public-key identity, and the roles of HyperDHT and Hyperswarm. ## P2P: Release overview - [Release Overview](https://docs.pears.com/p2p/release-overview.md): Curated overview of releases across P2P's building blocks and helpers—Hypercore, Hyperdrive, HyperDHT, and Corestore—breaking changes, removals, and additions. ## Bare: How-to guides - [How To](https://docs.pears.com/bare/how-to.md): Goal-oriented recipes for Bare—migrating an existing Node.js app, embedding Bare in a native or mobile app, running on-device AI, and connecting nearby devices over Bluetooth. - [Add on-device AI](https://docs.pears.com/bare/how-to/add-on-device-ai.md): Run an LLM locally in a Bare app—no API key, no cloud round-trip—using QVAC on-device inference. - [Build a local AI chat TUI with QVAC](https://docs.pears.com/bare/how-to/add-on-device-ai/build-a-local-ai-chat-tui-with-qvac.md): Layer bare-tui and QVAC on-device inference onto the hello-pear-bare template to build a terminal chat app that runs an LLM on the user's own machine—no API key, no cloud round-trip. - [Connect over Bluetooth](https://docs.pears.com/bare/how-to/connect-over-bluetooth.md): Find nearby devices and exchange data with them over Bluetooth Low Energy from a Bare app, on iOS, Android, macOS and Linux, with no network in between. - [Build a Bluetooth chat for iOS and Android](https://docs.pears.com/bare/how-to/connect-over-bluetooth/build-a-bluetooth-chat-for-ios-and-android.md): Walk through the Bluetooth chat in bare-mobile-doctor: two phones find each other over Bluetooth Low Energy and trade messages over an L2CAP channel. - [Exchange data over L2CAP](https://docs.pears.com/bare/how-to/connect-over-bluetooth/exchange-data-over-l2cap.md): Open an L2CAP channel between two devices with bare-bluetooth, use it as a duplex stream, and hand its PSM to the other side through GATT. - [Read, write and subscribe with GATT](https://docs.pears.com/bare/how-to/connect-over-bluetooth/read-write-and-subscribe-with-gatt.md): Scan for nearby devices with bare-bluetooth, expose a GATT service from a Server, and write to a characteristic and get notifications from a Central. - [Set up Bluetooth in a mobile app](https://docs.pears.com/bare/how-to/connect-over-bluetooth/set-up-bluetooth-in-a-mobile-app.md): Declare and request the iOS and Android Bluetooth permissions, link bare-bluetooth's native addons, and start the worklet only after access is granted. - [Use platform-specific Bluetooth features](https://docs.pears.com/bare/how-to/connect-over-bluetooth/use-platform-specific-bluetooth-features.md): Use bare-bluetooth-apple and bare-bluetooth-android for what bare-bluetooth leaves out: reconnect without scanning, dial bonded devices, tune MTU and scan mode. - [Migrate a Node.js app to Bare](https://docs.pears.com/bare/how-to/migrate-a-nodejs-app-to-bare.md): Port an existing Node.js app to run on Bare: swap builtins for bare-* modules, handle native addons, and verify the port runs identically under both runtimes. - [Run an addon sandboxed in WebAssembly](https://docs.pears.com/bare/how-to/run-an-addon-sandboxed-in-webassembly.md): Load a native addon's WebAssembly build in Bare and limit what it can reach with WASI: grant one directory, narrow its rights, or keep its files in memory. - [Run on mobile & native](https://docs.pears.com/bare/how-to/run-on-native.md): Embed Bare in native and React Native apps, type the RPC bridge, bundle a Bare app, and handle suspension. - [Bundle a Bare app](https://docs.pears.com/bare/how-to/run-on-native/bundle-a-bare-app.md): Package a Bare program two ways: an embeddable bundle for worklets with bare-pack, and a standalone executable for desktop and terminal with bare-build. - [Embed Bare in a React Native app](https://docs.pears.com/bare/how-to/run-on-native/embed-bare-in-react-native.md): Run a Bare worklet from a React Native or Expo app and exchange messages with it over the bare-kit IPC channel. - [Handle app suspension](https://docs.pears.com/bare/how-to/run-on-native/handle-app-suspension.md): When a Bare process enters suspend state every active I/O handle must be stopped or unreffed—otherwise the OS will force-terminate the app without warning. - [Type a native RPC bridge](https://docs.pears.com/bare/how-to/run-on-native/type-a-native-rpc-bridge.md): Replace raw IPC bytes between a native shell and a Bare worklet with a typed, schema-generated RPC seam using hyperschema and bare-rpc. - [Troubleshoot common issues](https://docs.pears.com/bare/how-to/troubleshooting.md): Fixes for Bare runtime issues. ## Bare: Reference - [Reference](https://docs.pears.com/bare/reference.md): Authoritative descriptions of the Bare runtime, its CLI, building blocks, and the bare-* module catalog. Use this when you need a fact, not a tutorial. - [Bare Kit](https://docs.pears.com/bare/reference/bare/bare-kit.md): Reference for Bare Kit and its bindings: the Worklet API of react-native-bare-kit, bare-kit-swift, and bare-kit-kotlin for running an isolated Bare thread inside a native app, the IPC channel between host and worklet, and the C library underneath. - [Bare CLI](https://docs.pears.com/bare/reference/bare/cli.md): Reference for the bare command: evaluate a script, start a REPL, and the flags for inspecting, evaluating, and printing. - [Embedder context API](https://docs.pears.com/bare/reference/bare/embedder-context.md): Reference for Bare's embedder context API: publish native handles with bare_context_set(), read them in addons with bare_context_get(), attach a process to a thread with bare_attach(), and the keys in use. - [Bare modules](https://docs.pears.com/bare/reference/bare/modules.md): Catalog of `bare-*` runtime modules that supply Bare's standard-library functionality (process, fs, net, crypto, streams, …), grouped by area. - [bare-abort](https://docs.pears.com/bare/reference/bare/modules/bare-abort.md): Cause abnormal program termination and generate a crash report - [bare-abort-controller](https://docs.pears.com/bare/reference/bare/modules/bare-abort-controller.md): Abort controller support for Bare - [bare-addon-resolve](https://docs.pears.com/bare/reference/bare/modules/bare-addon-resolve.md): Low-level addon resolution algorithm for Bare - [bare-ansi-escapes](https://docs.pears.com/bare/reference/bare/modules/bare-ansi-escapes.md): Parse and produce ANSI escape sequences - [bare-apk](https://docs.pears.com/bare/reference/bare/modules/bare-apk.md): Reference for bare-apk: Android APK and app-bundle packaging tools for Bare. - [bare-assert](https://docs.pears.com/bare/reference/bare/modules/bare-assert.md): Assertion library for JavaScript - [bare-atomics](https://docs.pears.com/bare/reference/bare/modules/bare-atomics.md): Native synchronization primitives for JavaScript - [bare-bluetooth](https://docs.pears.com/bare/reference/bare/modules/bare-bluetooth.md): Reference for bare-bluetooth: cross-platform Bluetooth LE for Bare over the Apple, Android and Linux bindings. - [bare-bluetooth-android](https://docs.pears.com/bare/reference/bare/modules/bare-bluetooth-android.md): Android Bluetooth bindings for Bare - [bare-bluetooth-apple](https://docs.pears.com/bare/reference/bare/modules/bare-bluetooth-apple.md): CoreBluetooth bindings for Bare - [bare-bluetooth-linux](https://docs.pears.com/bare/reference/bare/modules/bare-bluetooth-linux.md): BlueZ D-Bus bindings for Bare - [bare-broadcast-channel](https://docs.pears.com/bare/reference/bare/modules/bare-broadcast-channel.md): Multi-producer, multi-consumer inter-thread broadcast messaging for JavaScript - [bare-buffer](https://docs.pears.com/bare/reference/bare/modules/bare-buffer.md): Native buffers for JavaScript - [bare-bundle](https://docs.pears.com/bare/reference/bare/modules/bare-bundle.md): Application bundle format for JavaScript - [bare-bundle-id](https://docs.pears.com/bare/reference/bare/modules/bare-bundle-id.md): Construct a unique ID for a bundle - [bare-channel](https://docs.pears.com/bare/reference/bare/modules/bare-channel.md): Reference for bare-channel: point-to-point inter-thread messaging for Bare, with transferable handles and stream interfaces. - [bare-collabora](https://docs.pears.com/bare/reference/bare/modules/bare-collabora.md): Collabora bindings for Bare - [bare-console](https://docs.pears.com/bare/reference/bare/modules/bare-console.md): WHATWG debugging console for JavaScript - [bare-crypto](https://docs.pears.com/bare/reference/bare/modules/bare-crypto.md): Cryptographic primitives for JavaScript - [bare-dgram](https://docs.pears.com/bare/reference/bare/modules/bare-dgram.md): Native UDP sockets for JavaScript - [bare-directory](https://docs.pears.com/bare/reference/bare/modules/bare-directory.md): Capability based directory access for Bare - [bare-dns](https://docs.pears.com/bare/reference/bare/modules/bare-dns.md): Domain name resolution for JavaScript - [bare-encoding](https://docs.pears.com/bare/reference/bare/modules/bare-encoding.md): WHATWG text encoding interfaces for JavaScript - [bare-env](https://docs.pears.com/bare/reference/bare/modules/bare-env.md): Environment variable support for JavaScript - [bare-events](https://docs.pears.com/bare/reference/bare/modules/bare-events.md): Event emitters for JavaScript - [bare-fetch](https://docs.pears.com/bare/reference/bare/modules/bare-fetch.md): WHATWG Fetch implementation for Bare - [bare-file-logger](https://docs.pears.com/bare/reference/bare/modules/bare-file-logger.md): File system logger for Bare - [bare-form-data](https://docs.pears.com/bare/reference/bare/modules/bare-form-data.md): Reference for bare-form-data: WHATWG FormData, Blob, and File support for Bare, with a toBlob helper for multipart bodies. - [bare-format](https://docs.pears.com/bare/reference/bare/modules/bare-format.md): String formatting for JavaScript - [bare-fs](https://docs.pears.com/bare/reference/bare/modules/bare-fs.md): Native file system operations for Bare - [bare-hrtime](https://docs.pears.com/bare/reference/bare/modules/bare-hrtime.md): High-resolution timers for JavaScript - [bare-http1](https://docs.pears.com/bare/reference/bare/modules/bare-http1.md): Native HTTP/1 library for JavaScript - [bare-https](https://docs.pears.com/bare/reference/bare/modules/bare-https.md): HTTPS library for JavaScript - [bare-inspect](https://docs.pears.com/bare/reference/bare/modules/bare-inspect.md): Inspect objects as strings for debugging - [bare-inspector](https://docs.pears.com/bare/reference/bare/modules/bare-inspector.md): V8 inspector support for Bare - [bare-ipc](https://docs.pears.com/bare/reference/bare/modules/bare-ipc.md): Lightweight pipe-based IPC for Bare - [bare-logger](https://docs.pears.com/bare/reference/bare/modules/bare-logger.md): Low-level logger for Bare - [bare-make](https://docs.pears.com/bare/reference/bare/modules/bare-make.md): Opinionated build system generator based on CMake - [bare-mdns-discovery](https://docs.pears.com/bare/reference/bare/modules/bare-mdns-discovery.md): Minimal mDNS/DNS-SD service discovery for Bare - [bare-mime](https://docs.pears.com/bare/reference/bare/modules/bare-mime.md): Reference for bare-mime: MIME-type parsing for Bare—type, subtype, and parameters. - [bare-module](https://docs.pears.com/bare/reference/bare/modules/bare-module.md): The module system that powers Bare - [bare-module-lexer](https://docs.pears.com/bare/reference/bare/modules/bare-module-lexer.md): Heuristic lexer for detecting imports and exports in JavaScript modules - [bare-module-resolve](https://docs.pears.com/bare/reference/bare/modules/bare-module-resolve.md): Low-level module resolution algorithm for Bare - [bare-module-traverse](https://docs.pears.com/bare/reference/bare/modules/bare-module-traverse.md): Low-level module graph traversal for Bare - [bare-net](https://docs.pears.com/bare/reference/bare/modules/bare-net.md): TCP and IPC servers and clients for JavaScript - [bare-os](https://docs.pears.com/bare/reference/bare/modules/bare-os.md): Operating system utilities for Bare - [bare-pack](https://docs.pears.com/bare/reference/bare/modules/bare-pack.md): Bundle packing for Bare - [bare-path](https://docs.pears.com/bare/reference/bare/modules/bare-path.md): Path manipulation library for JavaScript - [bare-pipe](https://docs.pears.com/bare/reference/bare/modules/bare-pipe.md): Native I/O pipes for JavaScript - [bare-posix](https://docs.pears.com/bare/reference/bare/modules/bare-posix.md): POSIX-specific bindings for Bare - [bare-process](https://docs.pears.com/bare/reference/bare/modules/bare-process.md): Node.js-compatible process control for Bare - [bare-prom-client](https://docs.pears.com/bare/reference/bare/modules/bare-prom-client.md): Client for prometheus - [bare-querystring](https://docs.pears.com/bare/reference/bare/modules/bare-querystring.md): URL query strings utilities - [bare-readline](https://docs.pears.com/bare/reference/bare/modules/bare-readline.md): Line editing for interactive CLIs with command history - [bare-realm](https://docs.pears.com/bare/reference/bare/modules/bare-realm.md): Realm support for Bare - [bare-rpc](https://docs.pears.com/bare/reference/bare/modules/bare-rpc.md): librpc ABI compatible RPC for Bare - [bare-sdl](https://docs.pears.com/bare/reference/bare/modules/bare-sdl.md): Reference overview for bare-sdl: SDL bindings for Bare—windows, GPU-accelerated rendering, textures, input events, and audio devices. - [bare-semver](https://docs.pears.com/bare/reference/bare/modules/bare-semver.md): Minimal semantic versioning library for Bare - [bare-sidecar](https://docs.pears.com/bare/reference/bare/modules/bare-sidecar.md): Start and manage Bare sidecar processes from Node.js and Electron - [bare-signals](https://docs.pears.com/bare/reference/bare/modules/bare-signals.md): Native signal handling for JavaScript - [bare-sqlite](https://docs.pears.com/bare/reference/bare/modules/bare-sqlite.md): SQLite bindings for Bare - [bare-sqlite-vector](https://docs.pears.com/bare/reference/bare/modules/bare-sqlite-vector.md): SQLite Vector bindings for Bare - [bare-stdio](https://docs.pears.com/bare/reference/bare/modules/bare-stdio.md): Standard input/output streams for Bare - [bare-stow](https://docs.pears.com/bare/reference/bare/modules/bare-stow.md): Module bundling and harness generation for Bare - [bare-stream](https://docs.pears.com/bare/reference/bare/modules/bare-stream.md): Streaming data for JavaScript - [bare-string-decoder](https://docs.pears.com/bare/reference/bare/modules/bare-string-decoder.md): `string_decoder` shim for Bare - [bare-structured-clone](https://docs.pears.com/bare/reference/bare/modules/bare-structured-clone.md): Structured cloning algorithm for JavaScript - [bare-subprocess](https://docs.pears.com/bare/reference/bare/modules/bare-subprocess.md): Native process spawning for JavaScript - [bare-system-logger](https://docs.pears.com/bare/reference/bare/modules/bare-system-logger.md): System logger for Bare - [bare-tcp](https://docs.pears.com/bare/reference/bare/modules/bare-tcp.md): Native TCP sockets for JavaScript - [bare-timers](https://docs.pears.com/bare/reference/bare/modules/bare-timers.md): Native timers for Javascript - [bare-tls](https://docs.pears.com/bare/reference/bare/modules/bare-tls.md): Transport Layer Security (TLS) streams for JavaScript - [bare-tty](https://docs.pears.com/bare/reference/bare/modules/bare-tty.md): Native TTY streams for JavaScript - [bare-type](https://docs.pears.com/bare/reference/bare/modules/bare-type.md): Cross-realm type predicates for Bare - [bare-type-stripper](https://docs.pears.com/bare/reference/bare/modules/bare-type-stripper.md): Heuristic lexer for stripping TypeScript type syntax to produce plain JavaScript - [bare-union-bundle](https://docs.pears.com/bare/reference/bare/modules/bare-union-bundle.md): Reference for bare-union-bundle: layer multiple Bare bundles into a single union bundle and load modules across the layers. - [bare-url](https://docs.pears.com/bare/reference/bare/modules/bare-url.md): WHATWG URL implementation for JavaScript - [bare-vm](https://docs.pears.com/bare/reference/bare/modules/bare-vm.md): Isolated JavaScript contexts for Bare - [bare-wasi](https://docs.pears.com/bare/reference/bare/modules/bare-wasi.md): Capability based WASI for JavaScript - [bare-wasm](https://docs.pears.com/bare/reference/bare/modules/bare-wasm.md): WebAssembly JavaScript API for Bare - [bare-wasm-abi](https://docs.pears.com/bare/reference/bare/modules/bare-wasm-abi.md): Reference for bare-wasm-abi: runs Bare addons compiled to wasm32-wasip1 by implementing the libjs ABI they import in JavaScript. - [bare-ws](https://docs.pears.com/bare/reference/bare/modules/bare-ws.md): WebSocket library for JavaScript - [bare-zlib](https://docs.pears.com/bare/reference/bare/modules/bare-zlib.md): Stream-based zlib bindings for JavaScript - [ble-swarm](https://docs.pears.com/bare/reference/bare/modules/ble-swarm.md): Reference for ble-swarm: a Hyperswarm-shaped Bluetooth LE transport on bare-bluetooth that turns nearby peers into Noise-encrypted connections. - [Bare runtime API](https://docs.pears.com/bare/reference/bare/runtime.md): Reference for the Bare global namespace and its C embedding API: process properties, lifecycle methods and events, native addons, threads, IPC, and bare.h. - [Native-addon CI prebuilds](https://docs.pears.com/bare/reference/native-addon-prebuilds.md): Reference for the holepunchto/actions GitHub Actions that compile, upload, and merge native Bare-addon prebuilds across platforms in CI. ## Bare: Explanation - [One core, many platforms](https://docs.pears.com/bare/explanation/bare-on-native.md): The pattern behind cross-platform Pear apps: a portable JavaScript core running in a Bare worklet, a thin native UI shell, and a typed RPC seam between them. - [Inside Bare](https://docs.pears.com/bare/explanation/bare-runtime.md): Bare is a small, embeddable JavaScript runtime built on libjs and libuv. Here's what it adds on top, why it stays deliberately minimal, and how its lifecycle keeps mobile apps well-behaved. - [Bluetooth in Bare](https://docs.pears.com/bare/explanation/bluetooth.md): How Bare apps talk over Bluetooth Low Energy: the bare-bluetooth module family, central and server roles, GATT versus L2CAP, and where encryption fits. - [Bluetooth best practices](https://docs.pears.com/bare/explanation/bluetooth/best-practices.md): The rules that make Bare Bluetooth code reliable on iOS, Android, macOS and Linux, from waiting for the radio to timeouts, flow control and teardown. - [Migrating from Node.js](https://docs.pears.com/bare/explanation/migrating-from-nodejs.md): What actually changes in your code and mental model when an existing Node.js app moves to Bare—module resolution, native addons, concurrency, and the npm compatibility strategy. - [Native addons](https://docs.pears.com/bare/explanation/native-addons.md): Loading native code into Bare for work JavaScript can't naturally express, and building prebuilt binaries for every platform you ship to. - [Structured RPC and schema-first design](https://docs.pears.com/bare/explanation/rpc-and-schemas.md): Layering typed request/response calls on top of a raw IPC duplex stream with HRPC (and, below it, bare-rpc), then generating the wire format from one schema with hyperschema, hyperdb, and hyperdispatch. - [Using Bare on its own](https://docs.pears.com/bare/explanation/use-bare-standalone.md): Bare is a general-purpose JavaScript runtime you can adopt without Pear—embeddable, cross-platform, and modular. Here's when that makes sense and where the runtime-only path goes. - [WebAssembly addons](https://docs.pears.com/bare/explanation/webassembly-addons.md): How Bare runs an addon's WebAssembly build sandboxed through WASI, when it picks that build over the native one, and what the sandbox does and doesn't protect. ## Bare: Release overview - [Release Overview](https://docs.pears.com/bare/release-overview.md): Curated overview of releases across Bare's building-block and helper modules—breaking changes, removals, and additions. ## Optional - [Full documentation](https://docs.pears.com/llms-full.txt): every page above in one file - [Pear documentation](https://docs.pears.com/pear/llms-full.txt): every Pear page in one file - [P2P documentation](https://docs.pears.com/p2p/llms-full.txt): every P2P page in one file - [Bare documentation](https://docs.pears.com/bare/llms-full.txt): every Bare page in one file