import { ZenEngine } from '@gorules/zen-engine';
import fs from 'fs/promises';
import path from 'path';
const dataRoot = path.join(__dirname, 'jdm_directory');
const loader = async (key: string) => fs.readFile(path.join(testDataRoot, key));
const main = async () => {
const engine = new ZenEngine({ loader });
const result = await engine.evaluate('jdm_graph1.json', { input: 5 });
};
Start by installing the NPM package in your project.
Create a decision using business rules engine platform by following the guide.
Integrate the in your codebase using library to receive decisions based on parameters.
Leverage the power of Rust's performance in your JavaScript applications. Our rules engine, written in Rust, brings near-native speed to Node.js and Bun environments. This allows for lightning-fast rule processing, enabling real-time decision making even with complex rule sets and large data volumes.
Experience the best of both worlds: Rust's performance with JavaScript's ease of use. Our rules engine provides a simple, intuitive JavaScript API that feels native to JS developers, while the heavy lifting occurs in optimized Rust code under the hood. This approach allows you to easily incorporate sophisticated rule-based decision making into your JavaScript projects without the need to learn Rust or manage complex integrations.