Install
Downloadqjs-wasi.wasm from a
quickjs-ng release and
point the runtime’s home, or MIRAGE_QUICKJS_HOME, at its directory.
No package to add: each run executes in a worker. In a browser, home
is the URL of the folder holding qjs-wasi.wasm, and the page needs the
same worker setup
as Pyodide.
QuickJS does not run on Cloudflare Workers: with no worker to stop it,
a script that never calls the host would hold the isolate, as the
Cloudflare quickstart
describes.
Usage
Declare anin_process machine that runs QuickJS to run node on it once its engine is found: