datalogic-rs
A fast, production-ready Rust engine for JSONLogic.
Quick Example
use DataLogic;
use json;
let engine = new;
let logic = json!;
let compiled = engine.compile.unwrap;
let result = engine.evaluate_owned.unwrap;
assert_eq!;
Packages
| Package | Description | Install |
|---|---|---|
| datalogic-rs | Rust library | cargo add datalogic-rs |
| @goplasmatic/datalogic | WASM/JavaScript | npm i @goplasmatic/datalogic |
| @goplasmatic/datalogic-ui | React visual debugger | npm i @goplasmatic/datalogic-ui |
Resources
Online Debugger
Key Features
- Thread-Safe - Compile once, evaluate anywhere with zero-copy
Arcsharing - Fully Compliant - Passes the official JSONLogic test suite
- 50+ Operators - Including datetime, regex, and extended string/array operations
- Extensible - Add custom operators with a simple trait
- Templating Mode - Preserve object structures for dynamic JSON generation
- Multi-Platform - Rust, WASM (browser/Node.js), with visual React debugger
JavaScript / TypeScript
import init from '@goplasmatic/datalogic';
await ;
const result = ;
console.log; // true
React Visual Debugger
import { DataLogicEditor } from '@goplasmatic/datalogic-ui';
<DataLogicEditor
value={{ "and": [{ ">": [{ "var": "age" }, 18] }, { "var": "active" }] }}
data={{ age: 25, active: true }}
mode="debug"
/>
About Plasmatic
Created by Plasmatic, building open-source tools for financial infrastructure and data processing.
License
Licensed under Apache 2.0. See LICENSE for details.