microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.47k stars 528 forks source link

Compiling rules into JS - is it supported/planned? #579

Open Makciek opened 4 months ago

Makciek commented 4 months ago

Hello, out of curiosity: Is it possible/planned to compile the rules evaluator into JS? An example scenario would be to have the same configurable validation both client-side and server-side. I didn't explore the idea too deeply and don't know the RulesEngine itself as well but considering that it's based on ExpressionTrees, some basic scenarios support should be possible.