Javascript SDK
Overview
Run the Nodora compiler and evaluator from JavaScript
@nodora/js is the official JavaScript SDK for Nodora. It ships the
compiler and evaluator as a WebAssembly module with a thin JS wrapper,
so you can author rulesets, compile them, and run them against
inputs without leaving JavaScript.
It runs in Node.js, Bun, and modern browsers from a single package.
What you can do
- Compile rulesets.
- Load precompiled rulesets and evaluate them against an input object.
- Listen for emitted signals and react to them with JS callbacks.
- Register custom functions written in JS, callable from rulesets under any namespace you choose.