RuleLoom.Schemas 0.8.1

dotnet add package RuleLoom.Schemas --version 0.8.1
                    
NuGet\Install-Package RuleLoom.Schemas -Version 0.8.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuleLoom.Schemas" Version="0.8.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RuleLoom.Schemas" Version="0.8.1" />
                    
Directory.Packages.props
<PackageReference Include="RuleLoom.Schemas" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RuleLoom.Schemas --version 0.8.1
                    
#r "nuget: RuleLoom.Schemas, 0.8.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RuleLoom.Schemas@0.8.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RuleLoom.Schemas&version=0.8.1
                    
Install as a Cake Addin
#tool nuget:?package=RuleLoom.Schemas&version=0.8.1
                    
Install as a Cake Tool

RuleLoom

Let your users weave their own business rules. You provide the threads (events, operators and actions); rules written as JSON, or built in code, combine them without a deployment. When something happens in your application (an order is placed, a price changes), RuleLoom runs the rules for that event against the current and previous state and runs or schedules their actions.

  • Conditions with eq, gt, gte, lt, lte, changed, and, or, not, plus your own operators
  • Paths on .NET objects or JSON state (JsonElement, JsonNode), including the previous state ($previous.Price)
  • Values compared by meaning: numbers across types, enums by name, ISO 8601 strings as dates
  • Actions you write (IAction), with their own conditions and delayed or advance scheduling
  • Validation that reports every problem with its JSON location; failures reported in results, not thrown

Packages

Package Use it for
RuleLoom The engine, built-in operators, validation
RuleLoom.Abstractions Contracts and models only (no dependencies)
RuleLoom.Extensions.DependencyInjection services.AddRuleLoom(...)
RuleLoom.AspNetCore app.MapRuleLoom("/rules"): the catalog and rule validation endpoints for an authoring UI
RuleLoom.Schemas Event schemas (fields, labels, contexts) as JSON Schema, generated from your DTOs

Example

{
  "id": "price-drop",
  "name": "Price drop",
  "eventType": "ProductUpdated",
  "condition": { "operator": "lt", "operands": [{ "path": "Price" }, { "path": "$previous.Price" }] },
  "actions": [{ "action": "send-email", "parameters": { "template": "price-drop" } }]
}
services.AddRuleLoom(rules => rules.AddCatalog(catalog => catalog.AddAction<SendEmailAction>()));   // "send-email"

var engine = scope.ServiceProvider.GetRequiredService<RuleEngine>();
var result = await engine.ExecuteAsync("ProductUpdated", current, previous, [RuleJsonParser.Parse(json)]);

Documentation

RuleLoom is pre-1.0: minor versions can contain breaking changes, listed in the upgrading guide.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on RuleLoom.Schemas:

Package Downloads
RuleLoom.Abstractions

Contracts and models for RuleLoom: rule definitions, conditions, actions, results, the JSON rule parser and value comparison. No dependencies outside RuleLoom.Schemas and the .NET base library.

RuleLoom

RuleLoom: an event-driven business rule engine for .NET. Rules are written as JSON (or built in code) and run against .NET objects or JSON state, with built-in operators, actions, scheduling calculation and validation.

RuleLoom.Extensions.DependencyInjection

Microsoft.Extensions.DependencyInjection integration for RuleLoom: services.AddRuleLoom(...) registers the engine, validator and catalog (events, context providers, operators, actions).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.1 72 11/28/2026
0.8.0 131 11/17/2026
0.7.0 157 10/26/2026
0.6.0 137 10/25/2026