CacheControl/json-rules-engine
A rules engine expressed in JSON observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 67
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3873
- days_rel: n/a
- days_push: 198
- n_releases_24m: 0
Adoption not part of the score
3128 stars · 506 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity stable
workflow-automation developer-tools developer-tools backend browser cross-platform rules-engine business-rules json decision-engine isomorphic automation nodejs
2 sources
- readme: https://github.com/CacheControl/json-rules-engine · fetched 2026-08-28 · a52a32557ed1
- registry_npm: https://registry.npmjs.org/json-rules-engine · fetched 2026-08-29 · cf74f9e7df69
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| CacheControl/json-rules-engine | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="CacheControl/json-rules-engine")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem