Tutorials
Each tutorial builds one complete, working program from start to finish. Every line of code and every rule document on these pages was compiled and run to produce the output you see, and the rule files are there to download.
Build a checkout pricing policyDiscounts that stack, free shipping with an else branch, an age check over order lines, and loyalty points, turned into a quote.
Score orders for fraud reviewA collect decision table adds up risk signals, and a first table turns the score into approve, review or block.
Host rules behind a web APIAn ASP.NET Core service that evaluates JSON, validates drafts, swaps the live rules and serves the vocabulary to an editor.
Test your rule documentsTable-driven tests that validate a document and check its outputs, and catch a one-character regression.
Design and test rules in the visual builderWire a rule on a canvas in your browser, test it against facts, read the trace, validate it and export the JSON.
Before you start
The visual builder tutorial needs only a browser. Every other tutorial assumes a .NET 8 or later project with the RuleWright package installed. See Install. They use the checkout model from Your first rule where they need a typed fact.