Open Source JavaScript
Rules Engine

Get started with GoRules for JavaScript (Node.js, Deno and Bun) in few simple steps

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 });
};

STEP 1

Install the ZEN Engine

Start by installing the NPM package in your project.

STEP 2

Create a decision

Create a decision using business rules engine platform by following the guide.

STEP 3

Evaluate Business Rules

Integrate the in your codebase using library to receive decisions based on parameters.

High-Performance

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.

Development Experience

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.

Get started with GoRules

Need help?

Get in touch for enterprise consultancy and support

Start integrating

Integrate in as little as 10 minutes with our evaluation API