Bare
Bare is a lightweight, modular JavaScript runtime you can embed or ship standalone—no peer-to-peer or Pear machinery required.
Bare is a small, modular JavaScript runtime. Embed it in a native app, or compile a script into a single standalone binary—no Node.js, no peer-to-peer machinery, no Pear install required.
Pear, the peer-to-peer platform, is built on Bare—see The Pear stack if that's what brought you here. This tab is for using Bare entirely on its own.
Install the Bare CLI
npm i -g bareRun a script directly, or start a REPL with no script. Full flag reference: Bare CLI.
bare script.jsWhere to go next
Using Bare on its own
When standalone Bare makes sense, and where the runtime-only path goes.
Bare runtime API
The Bare global: process properties, lifecycle, addons, threads.
Run on mobile & native
Embed Bare in a React Native app, type a native RPC bridge, and bundle a Bare app for distribution.
Connect to peers
Dial a peer by key with HyperDHT, or join topics with Hyperswarm—no UI, terminal only.
Store and replicate
Persist and replicate with Hypercore, manage many cores with Corestore, and share databases with Hyperbee.
Building blocks
Hypercore, Hyperbee, Hyperdrive, Autobase, HyperDHT, and Hyperswarm—the shared peer-to-peer modules Bare and Pear both run on.