New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

patchboot

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patchboot

A Scuttlebutt bootloader

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

PatchBoot Electron

Bootstrapp your Secure Scuttlebutt Client.

Functionality

PatchBoot Electron provides an electron app that allows executing small app retrieved via ssb.

Usage

You need to have an instance of ssb-server running. If you have Patchwork installed and running you have this already. If the data and keys are not stored in ~/.ssb you need to set ssb_appname accordingly.

npm install
npm run start

The UI will show all apps it finds in the ScuttleVerse visible to you.

Publishing apps

The folder demo-apps contains some simple example apps allongside with scripts to publish them.

How does it work?

Apps are advertised using mesages of the type patchboot-app like the followig

{
    "type": "patchboot-app",
    "name": "WomBat Launcher",
    "comment": "A friendly new launcher",
    "link": "&CKrrSh72rXhgCzeTKekAPf7fiwtmNml/yFjXCe4ovnE=.sha256",
}

The link points to the JavaScript comprising the app. The JavaScript code has access to the following variables:

  • sbot: an rpc connection to an sbot
  • root: the root of the shadow DOM
  • pull: the pull-stream function object
  • ssb: [deprecated: use sbot instead] the ssb client

Keywords

Electron

FAQs

Package last updated on 14 Aug 2020

Related posts