GithubHelp home page GithubHelp logo

toufeeqp / substrate-connect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paritytech/substrate-connect

0.0 0.0 0.0 565.12 MB

Run Wasm Light Clients of any Substrate based chain directly in your browser.

License: GNU General Public License v3.0

Shell 0.46% JavaScript 4.39% TypeScript 92.46% CSS 0.97% HTML 1.53% Gherkin 0.19%

substrate-connect's Introduction

Substrate Connect

Substrate connect provides a way to interact with substrate based blockchains in the browser without using an RPC server. Substrate connect uses a smoldot WASM light client to securely connect to the blockchain network without relying on specific 3rd parties.

Due to browser limitations on websockets from https pages, establishing a good number of peers is difficult as many nodes need to be available with TLS. Substrate connect provides a browser extension to overcome this limitation and to keep the chains synced in the background, which makes your apps faster.

When building an app with substrate connect, it will detect whether the user has the extension and use it, or create the WASM light client in-page for them.

Substrate connect builds on Polkadot JS so building an app is the same experience as with using a traditional RPC server node.

The substrate connect API documentation is published here.

Building an app with @substrate/connect and installing the extension

The most up-to-date usage instructions for app builders can be found here

Development

This repository is using yarn classic workspaces.

We are tracking our work and milestones in a github project.

Please see our contributing guidelines for details on how we like to work and how to smoothly contribute to the project.

Getting Started

  1. Clone the whole substrate-connect repository.
git clone https://github.com/paritytech/substrate-connect.git
  1. Install all dependencies
yarn install
  1. Compile all packages and projects
yarn build

To clean up all build artefacts in workspaces in the repository, run:

yarn clean

To clean up all build artefacts and dependencies in workspaces in the repository, run:

yarn deep-clean

Run local version of Smoldot Extension

Running the following command will build all necessary dependencies and run the Smoldot Extension in development mode with hot reloading enabled. Once run a new (Chrome) browser will appear with the extension added.

yarn dev:extension

(Make sure to run $ yarn install before.)

Run local version of Burnr wallet

Running the following command will build all necessary dependencies and run the Substrate Burnr Wallet in development mode with hot reloading enabled. It will be served on http://localhost:1234/

yarn dev:burnr

(Make sure to run $ yarn install before.)

substrate-connect's People

Contributors

bernardoaraujor avatar dependabot[bot] avatar github-actions[bot] avatar goldsteinsveta avatar jeluard avatar josepot avatar pepoviola avatar raoulmillais avatar sacha-l avatar sergejparity avatar stefie avatar substrate-connect avatar tomaka avatar wirednkod 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.