This directory contains examples demonstrating how to use RuleKit in different scenarios.
The interface-agnostic
directory shows how to use RuleKit's new interface-agnostic component system, which provides:
- Automatic component suggestion based on data analysis
- Smart statistics generation for fields
- Type-safe component handling
- Flexible component customization
# Run with ts-node
npx ts-node examples/interface-agnostic/smart-filtering.ts
# Or compile and run
tsc examples/interface-agnostic/smart-filtering.ts
node examples/interface-agnostic/smart-filtering.js
The example demonstrates:
- Analyzing data to get smart component suggestions
- Viewing data statistics and insights
- Creating a filtering interface with suggested components
- Converting components to rules
- Finding matching products
- Customizing component suggestions with rules