# CacheControl/json-rules-engine

A rules engine expressed in JSON

Repository: https://github.com/CacheControl/json-rules-engine
Canonical: https://ross.abutalabs.com/products/json-rules-engine
Language: JavaScript
License: ISC
License Family: permissive
Topics: rules-engine, rules-processor, rules, engine, rule-engine, json, business-rules
Last push: 2026-02-16T21:57:04+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 8, longevity 100
- inputs: {"age_days": 3873, "days_push": 198, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3128, forks 506 (observed 2026-08-28T04:07:45.314308+00:00)

## What it is
json-rules-engine is a lightweight JavaScript rules engine where rules are defined as simple, human-readable JSON structures. It supports nested ALL/ANY boolean logic, priorities, caching, and runs isomorphically in Node.js and the browser without using eval().

## Use cases
- evaluate business rules defined in json
- build a decision engine for eligibility checks
- run conditional logic without hardcoding if statements
- persist and share rules as json documents
- validate facts against configurable rule sets
- add a rules engine to a node or browser app

## When to choose
- you need rules that are human-readable and easy to persist as JSON
- you want a lightweight, dependency-free rules engine with no eval() for security
- you need the same rule evaluation in both Node.js and the browser
- your conditions involve nested AND/OR boolean logic over facts

## When to avoid
- you need complex scripting or expressions beyond simple fact comparisons
- you require a high-performance forward-chaining inference engine like Drools
- your rules need native code execution or heavy computation per rule

## Facets
- artifact type: library
- maturity: stable
- function: workflow-automation, developer-tools
- domain: developer-tools, backend
- platform: browser, cross-platform
- tags: rules-engine, business-rules, json, decision-engine, isomorphic, automation, nodejs

## Member repositories
- CacheControl/json-rules-engine (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.314308+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:26:18.317411+00:00, confidence not recorded.
  - readme: https://github.com/CacheControl/json-rules-engine (fetched 2026-08-28T04:07:45.314308+00:00, sha a52a32557ed1)
  - registry_npm: https://registry.npmjs.org/json-rules-engine (fetched 2026-08-29T09:41:25.421686+00:00, sha cf74f9e7df69)
- Data as of 2026-08-30T08:39:29.467469+00:00.
