NRules/NRules
Rules engine for .NET, based on the Rete matching algorithm, with internal DSL in C#. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 75
- Release rhythm 45
- 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: 164
- age_days: 4328
- days_rel: 211
- days_push: 153
- n_releases_24m: 4
Adoption not part of the score
1649 stars · 282 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
NRules is an open-source production rules engine for .NET based on the Rete matching algorithm, with rules authored in C# via an internal fluent DSL. It acts as an inference engine supporting forward chaining, fact queries, and quantifiers, with packages for rule serialization, testing, and DI container integration.
Use cases
- encode business rules separately from application logic in .NET
- build an inference engine with forward chaining in C#
- implement an insurance quote calculator driven by declarative rules
- author rules in C# using a fluent DSL instead of external rule scripts
- unit test rule definitions and expectations
- serialize rules to and from JSON
When to choose
- you need a production rules system on the .NET platform
- you want rules written in C# rather than an external DSL
- you need efficient Rete-based pattern matching over facts
- you want rules decoupled from application code in separate assemblies
When to avoid
- you need a rules engine outside the .NET ecosystem
- you need simple if/else logic that doesn't justify a rules engine
- you require externalized rules authored by non-developers in a business language
Facets
library · maturity active
interpreter workflow-automation developer-tools developer-tools backend dotnet cross-platform rules-engine rete-algorithm inference-engine forward-chaining internal-dsl business-rules c-sharp automation
5 sources
- readme: https://github.com/NRules/NRules · fetched 2026-08-28 · 17b0c1a99bf7
- homepage: https://nrules.net · fetched 2026-08-29 · e17827eede74
- site_page: https://nrules.net/articles/getting-started.html · fetched 2026-08-29 · f402cd9d46b4
- site_page: https://nrules.net/articles/architecture.html · fetched 2026-08-29 · da8bc3a51cc1
- site_page: https://nrules.net/api/index.html · fetched 2026-08-29 · bb14c4cf673a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| NRules/NRules | main | 70 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem