Gathering detailed insights and metrics for @o3r/rules-engine
Gathering detailed insights and metrics for @o3r/rules-engine
Gathering detailed insights and metrics for @o3r/rules-engine
Gathering detailed insights and metrics for @o3r/rules-engine
The Otter project is a highly modular framework whose goal is to provide a common platform to accelerate and facilitate the development of runtime customizable Angular based Web Applications
npm install @o3r/rules-engine
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (87.45%)
JavaScript (6.18%)
HTML (2.46%)
Java (1.13%)
SCSS (1.05%)
Handlebars (0.77%)
Mustache (0.55%)
Kotlin (0.34%)
EJS (0.03%)
Shell (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
56 Stars
5,360 Commits
43 Forks
3 Watchers
88 Branches
34 Contributors
Updated on Jul 14, 2025
Latest Version
12.2.7
Package Id
@o3r/rules-engine@12.2.7
Unpacked Size
689.68 kB
Size
134.12 kB
File Count
242
NPM Version
10.9.2
Node Version
22.17.0
Published on
Jul 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
24
This package is an Otter Framework Module.
This module provides a rules engine that can run on your user's browser to customize the (translations, [//]: # (Should we target placeholder or the component npmjs, and we add a section on the placeholder there?) placeholders and configurations) of your application at runtime.
The rules engine interprets a list of actions to execute based on the evaluation of Rulesets and their conditions. Conditions are logical expressions relying on operators and variables we call facts.
You can store your list of Rulesets on a static JSON file.
This mechanism allows you to bring UI personalization based on runtime events without the need of a backend service. This can be useful if you want to drive dynamic behavior.
For example, you could consider leveraging this feature to display assets based on the current season or for some special events, or to drive A/B testing on your components.
You will find more information on the concepts behind the rules engine in its dedicated documentation. For a demonstration of the rules engine capabilities, you can refer to the live example in the Otter showcase.
1ng add @o3r/rules-engine
[!WARNING] This module requires @o3r/core to be installed.
The package exposes the RulesEngineRunnerService
that can drive all the Otter customization-based services
in order to personalize the user experience.
On its own, the service will do nothing and will need action handlers to register with the list of supported actions
and their implementation.
Not only this allows for a better extensibility of the service, but it also keeps the number of imported module to the bare minimum for a lighter application.
Find more information on the Otter rules engine documentation.
Several examples of the rules engine usage are available on the following links:
Otter framework provides a set of code generators based on Angular schematics.
Schematics | Description | How to use |
---|---|---|
add | Include Otter rules-engine module in a library / application. | ng add @o3r/rules-engine |
rules-engine-to-component | Add rules-engine to an Otter component | ng g rules-engine-to-component |
facts-service | Generate a facts service | ng g facts-service |
operators | Generate an operator | ng g operator |
A whole section of the Otter Chrome Devtool extension is dedicated to the debug of the rules engine with a visual representation of your Rulesets and a history of the run, conditions met and actions applied.
Find more information on the tool in the Otter Chrome Devtool extension documentation and its dedicated section in the rules engine documentation.
More details regarding the way the rules engine is working can be found in the documentation.
A live example is available in the Otter Showcase Application with reference to its code source.
No vulnerabilities found.
Reason
30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
update tool detected
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
15 out of 15 merged PRs checked by a CI test -- score normalized to 10
Reason
project has 7 contributing companies or organizations
Details
Reason
binaries present in source code
Details
Reason
dependency not pinned by hash detected -- score normalized to 9
Details
Reason
9 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14T01:22:58Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More