Filtrex
A simple, safe, JavaScript Filter Expression compiler for end-users
...Instead of using eval, Filtrex compiles expressions into JavaScript functions while keeping data access and callable functions under developer control. It supports common use cases such as filtering items, searching across fields, colorizing records, plotting charts, and building browser-based spreadsheet behavior. The expression language supports numbers, strings, external variables, arithmetic, comparisons, regular expression matching, and logical operations. Overall, it gives applications a safer way to let users define dynamic rules and filters.