Skip to content

JackTheHack/Sitecore.JSS-Rule-Engine

Repository files navigation

Sitecore.JSS-Rule-Engine

Javascript library to parse Sitecore rules and run them in JS

Accessing rules from GraphQL

Rule XML could be retrieved through GraphQL query to the item in Sitecore playground: https://xmcloudcm.localhost/sitecore/api/graph/edge/ide

# Write your query or mutation here
{
 item(language:"en", path:"/sitecore/content/Home")
  {
    name,
    field(name:"Rules")
    {
      name,
      value
    }  
	}
}

How to use

test.js contains unit tests (in Ava) with examples of rules being parsed and executed.

Developer docs

https://github.com/JackTheHack/Sitecore.JSS-Rule-Engine/wiki

About

Javascript library to parse Sitecore rules, run them in JS and personalize JSS Next.js app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published