jwadhams/json-logic-js
Build complex rules, serialize them as JSON, and execute them in JavaScript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3984
- days_rel: n/a
- days_push: 785
- n_releases_24m: 0
Adoption not part of the score
1479 stars · 145 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript implementation of the JsonLogic format for building complex rules, serializing them as JSON, and executing them against data. It enables sharing the same rule logic between front-end and back-end code or storing rules in a database.
Use cases
- evaluate business rules stored as JSON in a database
- share validation rules between frontend and backend
- build a rules engine without writing a DSL parser
- apply conditional logic to user data in JavaScript
- serialize decision logic as portable JSON
- implement feature gating or eligibility checks with data-driven rules
When to choose
- you need rules that are serializable as JSON and portable across languages
- you want to evaluate logic against a data object in JavaScript
- you need to store rules alongside records in a database
When to avoid
- you need high-performance expression evaluation over large datasets
- you need a full programming language or scripting engine inside your app
- your rules require operations JsonLogic does not support and you cannot add custom operators
Facets
library · maturity stable
parser serialization developer-tools web-development browser rules-engine logic business-rules rule-evaluation automation nodejs javascript
2 sources
- readme: https://github.com/jwadhams/json-logic-js · fetched 2026-08-28 · c66d708e7df8
- registry_npm: https://registry.npmjs.org/json-logic-js · fetched 2026-08-29 · b7c62d0a099b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jwadhams/json-logic-js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jwadhams/json-logic-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem