Install
Downloadqjs-wasi.wasm from a
quickjs-ng release and
point the runtime’s home, or MIRAGE_QUICKJS_HOME, at its directory.
Usage
Declare anin_process machine that runs QuickJS to run node on it once its engine is found:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run JavaScript scripts and pipe transforms in both Mirage SDKs.
qjs-wasi.wasm from a
quickjs-ng release and
point the runtime’s home, or MIRAGE_QUICKJS_HOME, at its directory.
pip install 'mirage-ai[quickjs]'
in_process machine that runs QuickJS to run node on it once its engine is found:
from mirage import RAMVFS, MountMode, Workspace
from mirage.runtime.js import QuickJsRuntime
ws = Workspace(
{"/data": RAMVFS()},
mode=MountMode.EXEC,
machines={"js": QuickJsRuntime(config={"home": "/path/to/quickjs"})},
)
await ws.shell("node -e 'console.log(1 + 1)'")