GithubHelp home page GithubHelp logo

retog / scuttle-shell-browser Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 3.56 MB

Web Extension that allows webpages to access Secure Scuttlebutt

JavaScript 49.38% HTML 47.53% CSS 3.09%
scuttlebutt ssb decentralized p2p native-messages

scuttle-shell-browser's Introduction

Scuttle Shell Browser

Scuttle Shell Browser provides Browser Extension that allows web pages to access the Scuttlebutt Network.

Currently only Firefox is supported.

How to use it

  • You need to have a Scuttlebutt client such as patchwork running on you computer.
  • you need to install the native messaging host, for this run npx scuttle-shell-browser
  • install the extension in your browser by choosing the latest xpi in the release section on github

Once installed, you have a context menu that allows you to give a page access to Scutttlebutt.

Context menu to enable SSB access

Now you might access https://retog.github.io/scuttle-shell-browser/ for some example pages that access Scuttlebutt.

How it works

This projet provides a webextension that allows accessing scuttlebutt from scripts in websites.

An script running on the Host provides an RPC connection to scuttlebutt via native messages. The web exension allows to decide which pages can access Scuttlebutt.

This extension includes a content script, which is injected into the accessed pages. This content script provides an api that can be accessed from any page using a muxrpc connection.

The communication uses the page to extension messaging described at https://github.com/mdn/webextensions-examples/tree/master/page-to-extension-messaging, builds pull-streams on top of those messages and uses these streams for the RPC connection.

Developing

This folder contains 3 projects that can be built independently. For the web extension to work the native messaging host must be installed on the computer. Examples of webpages accessng Scuttlebutt are in the consumer folder.

scuttle-shell-browser's People

Contributors

retog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.