This repository implements a Web client for the Linera protocol.
This repository includes a Nix flake that precisely specifies its build environment.
To set up, install Nix with flake support (e.g., via the Determinate Nix Installer)
and then run:
Enter the build environment
nix develop
Currently, only Linux (x86_64-unknown-linux-gnu
) is supported.
Linera Web Client builds with pnpm.
1. Install JavaScript dependencies:
pnpm install
2. Build the extension:
cd extension && pnpm build:extension
This will generate an unpacked Manifest v3 extension in extension/dist/extension
.
After successfully building the extension, you can load it into Chrome/Chromium:
- Open the settings menu.
- Navigate to Extensions → Manage Extensions.
- Enable Developer mode (this will show an option Load unpacked).
- Select the
extension/dist
directory. - Done! The extension is installed!
To make access easier, pin the extension to appear in the top-level toolbar.
For development, use the watch mode to automatically rebuild on changes:
pnpm build --watch
Changes to the client worker won’t be reflected until you manually run:
wasm-pack build