{"library":"json-logic-js","type":"library","category":null,"description":"json-logic-js is a JavaScript parser and executor for JsonLogic rules, allowing developers to define complex business logic as JSON objects. This enables the sharing and persistence of rules across different programming languages (e.g., JavaScript and PHP) and environments (front-end, back-end, database storage). The library currently stands at version 2.0.5, with an infrequent release cadence focused on maintenance and bug fixes rather than rapid feature development. Its core differentiator is the adherence to the well-documented, language-agnostic JsonLogic format, which explicitly separates rules from data and avoids side effects, ensuring deterministic computation. Alternatives like `json-logic-engine` offer modern ESM/CJS support and performance optimizations, highlighting `json-logic-js`'s legacy UMD module format as a point of contrast.","language":"javascript","status":"maintenance","version":"2.0.5","tags":["javascript","json","logic","jsonlogic","rules"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-logic-js","imports":["import jsonLogic from 'json-logic-js';","const jsonLogic = require('json-logic-js');","import type { RulesLogic } from 'json-logic-js';"]},{"cmd":"yarn add json-logic-js","imports":[]},{"cmd":"pnpm add json-logic-js","imports":[]}],"homepage":null,"github":"https://github.com/jwadhams/json-logic-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-logic-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-logic-js/compatibility"}}