Files
research/building-tools/README.md
T
2026-02-19 10:12:39 +00:00

35 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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)