Over many iterations between Keet and Pear we’ve distilled our proven peer-to-peer deployment architecture with the pear-runtime module for peer-to-peer over-the-air updates into a quick start boilerplate for P2P Desktop Applications: Hello Pear Electron.
Announcing Hello Pear Bare, a quick start boilerplate for P2P Terminal Applications – standalone Bare executables with peer-to-peer over-the-air updates.
With this boilerplate we can make CLIs, REPLs, TUIs, daemons, services, transport hooks and more with P2P OTA update capabilities.
Where the Hello Pear Electron boilerplate embeds pear-runtime into Electron, the Hello Pear Bare boilerplate embeds it into Bare, the zero-core embeddable JavaScript runtime.
Application and runtime compile into a single standalone binary executable per OS & architecture with no peer dependencies – no reliance on Node.js, no need for Bare or Pear CLI to be installed on the user system. Updates are deployed peer-to-peer with Pear CLI and the standalone executables are replaced on user machines by the pear-runtime module.The standalones can be distributed via usual channels (website, apt-get, brew..) and in the next Pear CLI update they can be installed peer-to-peer with pear install pear://<key> – use npx pear-install pear://<key> to preview.
The upcoming next major release of Pear CLI (v3) uses this exact architecture – it’s a Bare runtime standalone executable with P2P OTA updates via the pear-runtime module deployed with Pear CLI itself.
Follow the hello-pear-bare Readme to get started.
We’re excited to see what emerges from the ecosystem community.
Keep an eye out for future Pear Boilerplates, Hello React Native Boilerplate for peer-to-peer over-the-air updates on mobile is in the works.
Join us in the Pear Development group on Keet to catch up, ask any questions, and show us what you’re working on.
Office hour runs Wednesdays at 16:00 CET/CEST for dedicated Pear team response, but ask a question any time and help generally arrives.