0.3.0 • Published 2 years ago

@fluencelabs/avm-runner-web v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

AVM runner implementation for web browsers

AVM runner is the abstraction over Aqua virtual machine (AVM) interpreter designed to allow run it in different contexts such as web workers in browsers or worker threads on nodejs.

The package provides implementation for web browsers based on web workers.

Usage

To use AvmRunnerBackground with Fluence JS refer to the official documentation

Building

First you need to build the runner script:

./build_runner.sh

Then build the npm package:

npm install
npm run build

Running tests

The browser tests are run with puppeteer to insure they are executed in the same environment as browser itself

First, build the avm-runner-web (see Building)

Go to the test project:

cd ../avm-runner-web-test

Build the browser script with the tests:

./build_browser_script.sh

Run the tests:

npm install
npm run test

License

Apache 2.0