A low-code decision engine with API and built-in UI.
Project details
BaaS is an open-source, low-code decision engine that empowers businesses to manage rules, workflows, and AI controls effectively. With features like deterministic rule evaluation, explainable decision traces, and a built-in UI, it simplifies configuration and testing, making it a powerful tool for integrating with AI systems and enhancing operational clarity.
BaaS provides an explainable, low-code decision engine equipped with an API and a built-in user interface, empowering developers to manage business rules, workflows, and AI guardrails effectively. This open-source tool fosters clarity, control, and auditability, overcoming common limitations associated with traditional rule engines.
Many existing rule engines face challenges such as cost, complexity, and lack of flexibility, hampering their adoption. BaaS addresses these issues by offering:
For fast setup using Docker:
docker run -p 3000:3000 zeguru/baas:latest
Access the app through:
http://localhost:3000/baashttp://localhost:3000/baas/editorhttp://localhost:3000/baas/docsBaaS supports a Domain-Specific Language (DSL) for defining rule conditions. Here are some supported operators:
alwaysisDefinedlessThangreaterThanequalEvaluate Business Logic: Calculate Net Pay
To calculate net pay, send a POST request to baas/calculator/sample-netpay-calc/compute with the following JSON:
{
"grossPay": "150000"
}
The response includes:
baseFacts: Original input data.derivedFacts: Computed values including net pay calculations.breakdown: An object detailing which rules were triggered during evaluation.Every evaluation provides a breakdown showing:
BaaS is applicable in various scenarios including:
Contributions are encouraged, particularly in areas such as documentation enhancement, bug fixing, and UI improvements. The project aims to maintain simplicity and efficiency in usage for developers.
The roadmap includes support for rule versioning, extended database compatibility, and various performance enhancements. Feedback and suggestions are highly valued, and users are invited to contribute ideas and report issues.
Comments
1Never hard code your calculators and product logic !
Get BaaS at: