close
React Open SourceMIT License

JDM Editor

Open source React component for crafting JSON Decision Models. Build decision tables, expressions, and flows with a visual editor - no backend required.

Interactive Demo

Open in Storybook

Quick Start

Install the package and start building decision models in minutes. The editor outputs JSON that can be evaluated using any GoRules SDK.

npm install @gorules/jdm-editor
import '@gorules/jdm-editor/dist/style.css';
import { DecisionGraph, JdmConfigProvider } from '@gorules/jdm-editor';

function App() {
  const [graph, setGraph] = useState(null);

  return (
    <JdmConfigProvider>
      <DecisionGraph
        value={graph}
        onChange={(val) => setGraph(val)}
      />
    </JdmConfigProvider>
  );
}

Features

Everything you need to build decision models in your React application.

React Component

Drop-in React component that works with any React application. Supports controlled and uncontrolled modes.

JSON Decision Model

Outputs standard JDM format that can be evaluated by GoRules SDKs in any language.

Full Editor Features

Decision tables, expressions, functions, and graph visualization all included.

Lightweight

Minimal dependencies, optimized bundle size. Works with your existing toolchain.

MIT Licensed

Fully open source. Use it in commercial projects without restrictions.

TypeScript Support

Full TypeScript definitions included for type-safe development.

Editor vs BRMS

Choose the right tool for your needs.

JDM Editor

Open source React component

  • Embed in your own application
  • Outputs JSON decision models
  • Full control over storage
  • MIT licensed, free forever

GoRules BRMS

Full management platform

  • Version control & history
  • Multiple environments
  • Approval workflows
  • Team collaboration
  • Audit logging
  • SSO integration

Ready to build?

Start with the editor, upgrade to BRMS when you need governance.