npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rule-engine-js-ui

v0.0.41

Published

UI for rule-engine-js

Readme

RuleEngineUI

license

An userinterface for Rule-Engine-JS. Based on React and MUI.

Overview

Rule-Engine-JS is a JSON based Rule Engine used to validate / evaluate objects. This means a rule can be used to check if a certain object with certain properties complies to a given rule. RuleEngineUI offers two visual user interfaces for creating rules for Rule-Engine-JS (rule-engine-js-ui) and a Test Application with many examples how to implement and use them (RuleDesigner). All of this is based on React and uses MUI for styling. That's why these libraries must be installed in the application that uses this package.

General features

  • Create rules Both visual interfaces allow to create rules from reading JSON schemas of objects by converting the object properties to input fields. For every property a rule operator can be selected (e.g. 'eq', 'neq', 'gt', 'contains', isTrue...). The operators correspond to the type of the property (e.g. 'number', 'string', 'boolean'). While selecting properties and operators, the rule is build in the background and visually presented in the UI. Created rules can be saved for later usage by handing them over to the application that uses the UI.

Features of the Simple UI

  • Assitant like guidance This UI is intended to create less complex rules (without subrules). The user is led through the process from selecting a schema to saving the rule.

  • Customizable Addons can be injected into the component to extend the functionality. See the RuleDesigner application for reference.

Features of the Full UI

  • Complex rules
    Here it is possible to create subrules of any depth. Allows also for more than one operator per property.

  • Rule testing while building While constructing the rule, it is permanently tested against a given test object. The evaluation result is presented visually.

What to use RuleDesigner for?

  • Implementation examples It's recommended to use RuleDesigner for learning how to implement RuleEngineJSUI. Examples of objects and schemas are provided, ready to start with the simple- and the full UI. There's also a 'playground' that demonstrates the usage of the stateful engine of Rule-Engine-JS

    Previously stored rules can be edited and applied to a test object. RuleDesingner also uses a custom interface for executing commands when a given rule was evaluated with a possitive result against an object.

    RuleDesigner is a web application and hence needs a web server to run. In your develop environment you can use Vite to run it.

Prerequisites

Please install the following peer dependencies, if you want to use RuleEngineJSUI:

npm i react react-dom @emotion/react @mui/material

Installation

rule-engine-js-ui on npmjs:

npm i rule-engine-js-ui

Usage

RuleEngineJSUI exports four components that you can import in your application:

  • import { RuleEngineJSUI } from "rule-engine-js-ui"; The two main UI's to create rules. Which interface is loaded depends on the properties you pass to the component. Look at RuleDesigner for a reference implementation of the two interfaces!
  • import { BorderBox } from "rule-engine-js-ui"; A custom box with border, title and icon. Can be used to wrap...
  • import { ObjectList } from "rule-engine-js-ui"; A component that turns an object into a better readable list.
  • import { SimpleRuleList } from "rule-engine-js-ui"; A visual representation of a rule with it's operators

Screenshots

Simple Table

Simple UI

Full UI

Stateful Playground