git ssb

1+

farewellutopia-dev / patchboot-web



Branch:
Reto GmΓΌr committed Displaying intrustion on how to enable access.Latest: c776ec8 on 11/20/2020, 3:25:36 PM
πŸ“.devcontainer
πŸ“„.gitignore
πŸ“.vscode
πŸ“„LICENSE
πŸ“„README.md
πŸ“„app-installer.js
πŸ“„build.sh
πŸ“demo-apps
πŸ“img
πŸ“lib
πŸ“„main.js
πŸ“„package-lock.json
πŸ“„package.json
πŸ“„preload.js
πŸ“public
README.md

PatchBoot Firefox

Bootstrapp your Secure Scuttlebutt Client.

Functionality

PatchBoot Electron provides a firefox 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.

Publishing apps

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

Aletrnatived patchboot-install can be used to deploy any js-file. It can be used within the script of npm projects as with the following package.json:

{
  "name": "patchboot-example-app",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "deploy-app": "patchboot-install FeedApp.js 'Feed App' 'An app deployed with patchboot-install'"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "patchboot": "0.0.1"
  }
}

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:

Built with git-ssb-web