Building Tools
Overview
Holepunch provides a suite of tools for building, bundling, and deploying P2P apps across platforms. Centered around Pear (bundler/runtime) and Bare (JS engine).
Key Tools
- Pear CLI:
pear init/release/run– app scaffolding, hot updates. - Bare Build:
bare-build,bare-bundlefor native binaries. - CMake Ports:
cmake-pear,cmake-bare,cmake-drivefor C++/native integrations. - Prebuilds:
prebuild-containers,chromium-prebuildsfor deps.
Workflow
git clone app
pear init
pear run dev
pear release --platform android
Benchmarks (Bare vs Node.js, js-engine-benchmark 2026)
| Platform | Runtime | Score | Size | Eff/MB |
|---|---|---|---|---|
| Ubuntu x64 | Bare | 40k | 43MB | 947 |
| Node | 41k | 102MB | 406 | |
| macOS arm | Bare | 53k | 33MB | 1638 |
| Node | 55k | 94MB | 591 |
Bare: 97% Node speed, 2-3x efficient.