Skip to main content
What to install and a runnable TypeScript example. The settings, how the workspace connects and the notes are on QuickJS, shared by both SDKs.

Install

Download qjs-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 an in_process machine that runs QuickJS to run node on it once its engine is found: