quickjs_runtime library

A pure-Dart QuickJS JavaScript runtime on dart:ffi.

Wraps the vendored QuickJS 2024-01-13 sources and a C bridge with JSON-based marshaling: JS arguments are stringified to JSON in C, passed to a synchronous Dart callback, and the JSON result string is parsed back into a JS value.

Build the native library first:

tool/build_quickjs.sh   # produces native/quickjs/libquickjs_bridge.so

VM-only (dart:ffi); never import from a web-reachable path.

Classes

QuickjsFfi
Low-level QuickJS FFI bindings.
QuickjsRuntime
A QuickJS JavaScript runtime with synchronous host callbacks.