Skip to content

ndr-ds/linera-web

 
 

Repository files navigation

Linera Web client

This repository implements a Web client for the Linera protocol.

Building

There are two pieces to be built:

  • the client worker (written in Rust, and depending on the core linera-protocol repository).
  • and the Web extension (written in TypeScript).

The Web extension depends on the client worker; to build it you must first build the client worker.

Client worker

To build the client worker, run wasm-pack build --target web from within the client-worker directory.

Extension

To build the extension to a form that can be loaded into Chrome, run pnpm install && pnpm build from within the extension directory.

Installation

After successfully running pnpm build, the extension can be loaded into Chrome or Chromium:

  • Open the settings menu.
  • Select ‘Extensions’ → ‘Manage Extensions’.
  • Enable ‘Developer mode’. This will show an option ‘Load unpacked’.
  • Navigate to the extension/dist directory and select it.
  • You've installed the extension!

By default extension icons are hidden behind a top-level ‘Extensions’ menu in the browser toolbar; to make access easier, you can pin this extension to have it appear at the top level next to the ‘Extensions’ icon.

Development

Environment

All prerequisites are encapsulated in the flake.nix file: running nix develop will put you into a shell capable of building this project. Namely, the requirements are the same as those of linera-protocol, which we depend on, plus a JavaScript package manager such as pnpm.

For development, you can also use pnpm build --watch to automatically rebuild the extension on change. Changes to the client worker will not propagate to the extension, but once you run wasm-pack build they will be picked up.

About

The Linera Web client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 40.5%
  • CSS 22.0%
  • Rust 19.3%
  • HTML 10.8%
  • JavaScript 4.2%
  • Nix 2.8%
  • Shell 0.4%