Skip to content

Oryn-W Setup and Build

Prerequisites

  • Rust toolchain
  • wasm-pack
  • Node.js + npm
  • Chromium/Chrome

Install root dependencies:

npm install

Install wasm-pack if needed:

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Canonical Build Command

From repository root:

./scripts/build-extension-w.sh

This runs:

  1. ./scripts/sync-scanner.sh
  2. ./scripts/build-wasm.sh
  3. ./scripts/bundle-llm-libs.sh
  4. required-file and WASM artifact verification

Build WASM Only

./scripts/build-wasm.sh

Expected output:

  • extension-w/wasm/oryn_core.js
  • extension-w/wasm/oryn_core_bg.wasm

Launch for Development

Linux/macOS

./scripts/launch-chromium-w.sh

Windows

scripts\launch-chromium-w.bat

Manual Load (Alternative)

  1. Open chrome://extensions
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select extension-w/

Quick Validation

After loading, run in popup or sidepanel:

observe
goto "https://example.com"

Rebuild Rules

  • If Rust oryn-core changes: rebuild WASM.
  • If scanner changes: run scanner sync then rebuild extension bundle.
  • If adapter/vendor JS changes: rerun ./scripts/build-extension-w.sh.