35 lines
1.0 KiB
Markdown
35 lines
1.0 KiB
Markdown
# 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-bundle` for native binaries.
|
||
- **CMake Ports**: `cmake-pear`, `cmake-bare`, `cmake-drive` for C++/native integrations.
|
||
- **Prebuilds**: `prebuild-containers`, `chromium-prebuilds` for 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.
|
||
|
||
Links: [Pear](https://github.com/holepunchto/pear), [Bare](https://github.com/holepunchto/bare)
|