# jruizgit/rules

Durable Rules Engine

Repository: https://github.com/jruizgit/rules
Canonical: https://ross.abutalabs.com/products/jruizgit-rules
Language: JavaScript
License: MIT
License Family: permissive
Topics: durable-rules, ruby, python, statechart, rete, node-javascript, business-rules, events
Last push: 2025-07-15T18:22:26+00:00

## Health v2 (maintenance only)
Score: 37/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 31, release rhythm 8, longevity 100
- inputs: {"age_days": 4638, "days_push": 414, "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 1299, forks 215 (observed 2026-08-28T04:04:17.368515+00:00)

## What it is
A polyglot rules engine (Ruby, Python, Node.js) for real-time, scalable coordination of events using a Rete-based forward-chaining inference engine implemented in C. It supports rulesets, flowcharts, statecharts, and time-driven flows, with optional state offloading to external data stores like Redis.

## Use cases
- evaluate business rules in real time
- build event-driven inference with forward chaining
- define statecharts and flowcharts for control flow
- correlate events from multiple sources
- build real-time analytics rules
- run complex event processing in Python, Ruby, or Node.js

## When to choose
- you need forward-chaining rule evaluation with fast C-based performance
- you want a polyglot rules engine usable from Ruby, Python, or JavaScript
- you need statecharts, flowcharts, or time-driven rule flows
- you want scalable rule state offloaded to Redis or another store

## When to avoid
- you need a full production-grade BRMS with a UI and decision tables
- you only need simple if/then logic without an inference engine
- you need a JVM-based rules engine like Drools with deep Java ecosystem integration

## Facets
- artifact type: framework
- maturity: active
- function: workflow-automation, state-management
- domain: developer-tools, backend
- platform: python, ruby, cross-platform
- tags: rules-engine, rete, forward-chaining, statecharts, flowcharts, event-processing, polyglot, c-core, automation, real-time, nodejs

## Member repositories
- jruizgit/rules (main) score 37

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:17.368515+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-30T04:53:26.175042+00:00, confidence not recorded.
  - readme: https://github.com/jruizgit/rules (fetched 2026-08-28T04:04:17.368515+00:00, sha 38a16114ab80)
- Data as of 2026-08-30T08:39:29.467469+00:00.
