This directory contains comprehensive documentation for @usex/rule-engine.
| File | Description | Key Topics |
|---|---|---|
| index.md | Documentation hub | Overview, quick links, navigation |
| api-reference.md | Complete API documentation | Classes, methods, interfaces, types |
| operators.md | All 126 operators reference | Detailed operator guide with examples |
| best-practices.md | Production best practices | Performance, security, testing, patterns |
| migration-guide.md | Migration from other engines | json-rules-engine, node-rules, custom code |
- Start with the main README
- Review operators for available operations
- Check examples for common patterns
- API Reference for detailed method documentation
- Best Practices for production guidance
- TypeScript examples for type safety
- Migration Guide for switching from other engines
- Common patterns for code conversion
- Rule structure and types
- Conditions and constraints
- Logical operators (and/or/none)
- Result handling
- Default values
- RuleEngine class (static & instance methods)
- ObjectDiscovery utilities
- Builder pattern API
- Mutation system
- Validation & introspection
- 126 operators documented
- Categorized by type
- Usage examples for each
- Common patterns
- Performance optimization
- Error handling strategies
- Security considerations
- Testing approaches
- Maintenance tips
- From json-rules-engine
- From node-rules
- From business-rules-engine
- From custom implementations
| Topic | Location |
|---|---|
| Installation | README |
| Quick Start | README |
| JSONPath Usage | README |
| Date Operations | Operators |
| Array Operations | Operators |
| Performance Tips | Best Practices |
| Testing Strategies | Best Practices |
| Security | Best Practices |
| Use Case | Documentation |
|---|---|
| Form Validation | Examples |
| Access Control | Examples |
| Discount Rules | Examples |
| Complex Conditions | Best Practices |
| Batch Processing | API Reference |
- Start Simple: Begin with basic examples and gradually explore advanced features
- Use Search: Use your editor's search to find specific operators or methods
- Check Examples: Most concepts include practical examples
- Follow Links: Documentation is interconnected for easy navigation
- Try It Out: Best way to learn is to experiment with the code
See CONTRIBUTING.md for guidelines on improving documentation.
Generated with ❤️ for the @usex/rule-engine community