Skip to main content
The GoRules Playground lets you build, test, and export decision models without creating an account or installing anything.

Open the Playground

Launch the visual editor in your browser

What you can do

The playground includes the full visual editor:
  • Decision tables — Create spreadsheet-style conditional logic
  • Expression nodes — Transform data with the ZEN expression language
  • Function nodes — Write custom JavaScript for complex logic
  • Switch nodes — Route data through conditional branches
  • Simulator — Test your rules with sample data and see step-by-step execution

Getting started

  1. Open the playground — Visit editor.gorules.io
  2. Build your graph — Drag nodes onto the canvas and connect them
  3. Add logic — Double-click nodes to configure rules, expressions, or code
  4. Test — Click Open Simulator, enter test data, and run your decision
  5. Export — Download the JDM file to use with GoRules SDKs

Try these examples

Pricing calculator

Build a decision that applies discounts based on customer tier and order value:
  1. Add a Decision Table node
  2. Configure inputs: customer.tier, order.total
  3. Configure output: discount
  4. Add rules for different scenarios

Eligibility checker

Create a decision that determines if a user qualifies for a service:
  1. Add an Expression node to calculate derived values (age from birthdate, etc.)
  2. Add a Decision Table to check eligibility criteria
  3. Add another Expression to format the response

Risk scoring

Build a decision that calculates a risk score from multiple factors:
  1. Add multiple Decision Table nodes for different risk categories
  2. Add an Expression node to combine scores
  3. Add a Switch node to route to different outcomes based on total score

Exporting your work

Click Export to download your decision as a JSON file. This JDM (JSON Decision Model) file works with any GoRules SDK:

Limitations

The playground is designed for experimentation. For production use:
FeaturePlaygroundBRMS
Save decisionsExport onlyAutomatic
Version controlNoYes
Team collaborationNoYes
Environment managementNoYes
Access controlNoYes

Embedding the editor

The visual editor is available as an open-source React component. You can embed it in your own applications:
npm install @gorules/jdm-editor
import { useState } from 'react';
import { DecisionGraph, JdmConfigProvider } from '@gorules/jdm-editor';
import '@gorules/jdm-editor/dist/style.css';

function RuleEditor() {
  const [graph, setGraph] = useState({ nodes: [], edges: [] });

  return (
    <JdmConfigProvider>
      <DecisionGraph value={graph} onChange={setGraph} />
    </JdmConfigProvider>
  );
}
See the JDM Editor documentation for configuration options, simulation support, and theming.