A visual tool for creating, testing, and exporting complex business logic rules with an intuitive interface.
- Visual Rule Builder: Create complex logical conditions using an intuitive interface
- Multi-language Support: Available in English (US) and Spanish (Mexico)
- Real-time Testing: Test your rules with custom variables and see immediate results
- JSON Export: Export your rules as structured JSON for integration with other systems
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Dynamic Variables: Define and manage custom variables with different data types
- Nested Logic Groups: Create complex rule hierarchies with AND/OR conditions
- Auto-detection: Automatically detects and handles strings, numbers, and booleans
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No installation required - runs entirely in the browser
- Open
index.htmlin your web browser - The application will load with default example variables
- Start building your logic rules using the interface
- In the "Define Your Variables" section, click "+ Add Variable"
- Enter a variable name (e.g.,
user_age,country_code) - Enter a test value (supports strings, numbers, and booleans)
- Variables will automatically appear in the rule builder
-
In the "Build Your Logic" section, choose between:
- ALL: All conditions must be met (AND logic)
- ANY: Any condition can be met (OR logic)
-
Click "Add Rule" to create a new condition:
- Select a variable from the dropdown
- Choose an operator (equals, not equals, greater than, etc.)
- Enter a comparison value
-
Click "Add Group" to create nested logic groups for complex rules
- Click "Evaluate and Generate JSON" to test your rules
- See the result (VALID/INVALID) based on your test data
- Copy the generated JSON structure for use in your applications
| Operator | Symbol | Description |
|---|---|---|
| Equals | == |
Value is equal to |
| Not Equals | != |
Value is not equal to |
| Greater Than | > |
Value is greater than |
| Greater or Equal | >= |
Value is greater than or equal to |
| Less Than | < |
Value is less than |
| Less or Equal | <= |
Value is less than or equal to |
The application automatically detects and handles:
- Strings: Text values (e.g., "US", "active")
- Numbers: Integer and decimal values (e.g., 25, 18.5)
- Booleans: True/false values (e.g., true, false)
The generated JSON follows this structure:
{
"condition": "AND",
"rules": [
{
"variable": "user_age",
"operator": ">=",
"value": 18
},
{
"variable": "country_code",
"operator": "==",
"value": "US"
},
{
"condition": "OR",
"rules": [
{
"variable": "is_active",
"operator": "==",
"value": true
}
]
}
]
}Variables:
user_age: 25country_code: "US"
Rule:
- user_age >= 18 AND country_code == "US"
Result: VALID β
Variables:
is_premium: truelogin_count: 50country_code: "MX"
Rule:
- (is_premium == true OR login_count > 30) AND country_code == "MX"
Result: VALID β
Variables:
subscription_tier: "gold"account_age_days: 120last_login_days: 7has_payment_method: true
Rule:
- (subscription_tier == "gold" OR account_age_days > 90) AND (last_login_days <= 30 AND has_payment_method == true)
Result: VALID β
Perfect for:
- Business Rules Engines: Define complex business logic
- Form Validation: Create dynamic validation rules
- User Segmentation: Define user groups based on criteria
- A/B Testing: Set up test conditions
- Access Control: Define permission rules
- Marketing Campaigns: Target specific user segments
- HTML5: Semantic markup
- CSS3: Styling with animations and responsive design
- JavaScript (ES6+): Application logic and DOM manipulation
- Tailwind CSS: Utility-first CSS framework via CDN
- Heroicons: Beautiful SVG icons
- English (US): Default language
- Spanish (Mexico): Full translation available
Switch languages using the language selector at the bottom of the page.
project/
βββ index.html # Main application file
βββ README.md # This documentation
βββ (no build process required)
- Translation System: Multi-language support with
translationsobject - Rule Builder: Dynamic DOM manipulation for rule creation
- Variable Manager: Real-time variable synchronization
- Evaluation Engine: Logic processing and result calculation
- JSON Generator: Export functionality for integration
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Make your changes following the code style
- Commit your changes using semantic commit messages:
feat: add new rule operator supportfix: resolve variable selector bugdocs: update README examplesstyle: improve button hover animationsrefactor: optimize rule evaluation logictest: add validation for edge caseschore: update dependencies
- Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request with a clear description
If you encounter any issues or have questions:
- Check the documentation above
- Review the code comments in
index.html - Create an issue in the repository
This project is open source and available under the MIT License.
Built with β€οΈ for developers who need powerful rule engines without the complexity.