Dataflow-rs
A high-performance rules engine for IFTTT-style automation in Rust with zero-overhead JSONLogic evaluation.
Dataflow-rs is a lightweight rules engine that lets you define IF → THEN → THAT automation in JSON. Rules are evaluated using pre-compiled JSONLogic for zero runtime overhead, and actions execute asynchronously for high throughput.
Whether you’re routing events, validating data, building REST APIs, or creating automation pipelines, Dataflow-rs provides enterprise-grade performance with minimal complexity.
Key Features
- IF → THEN → THAT Model - Define rules with JSONLogic conditions, execute actions, chain with priority ordering
- Async-First Architecture - Native async/await support with Tokio for high-throughput processing
- Zero Runtime Compilation - All JSONLogic expressions pre-compiled at startup for optimal performance
- Full Context Access - Conditions can access any field:
data,metadata,temp_data - Execution Tracing - Step-by-step debugging with message snapshots after each action
- Built-in Functions - Parse, Map, Validate, Filter, Log, and Publish for complete data pipelines
- Pipeline Control Flow - Filter/gate function to halt workflows or skip tasks based on conditions
- Channel Routing - Route messages to specific workflow channels with O(1) lookup
- Workflow Lifecycle - Manage workflow status (active/paused/archived), versioning, and tagging
- Hot Reload - Swap workflows at runtime without re-registering custom functions
- Extensible - Easily add custom async actions to the engine
- Typed Integration Configs - Pre-validated configs for HTTP, Enrich, and Kafka integrations
- WebAssembly Support - Run rules in the browser with
@goplasmatic/dataflow-wasm - React UI Components - Visualize and debug rules with
@goplasmatic/dataflow-ui - Auditing - Track all changes to your data as it moves through the pipeline
Try It Now
Experience the power of dataflow-rs directly in your browser. Define a rule and message, then see the processing result instantly.
Want more features? Try the Full Debugger UI with step-by-step execution, breakpoints, and rule visualization.
How It Works
┌─────────────────────────────────────────────────────────────────┐
│ Rule (Workflow) │
│ │
│ IF condition matches → JSONLogic against any field │
│ THEN execute actions (tasks) → map, validate, custom logic │
│ THAT chain more rules → priority-ordered execution │
└─────────────────────────────────────────────────────────────────┘
- Define Rules - Create JSON-based rule definitions with conditions and actions
- Create an Engine - Initialize the rules engine (all logic compiled once at startup)
- Process Messages - Send messages through the engine for evaluation
- Get Results - Receive transformed data with full audit trail
Next Steps
- Installation - Add dataflow-rs to your project
- Quick Start - Build your first rule
- Playground - Experiment with rules interactively