background
uat & testing failures
1 sources
bonsai - a safe expression language for JS that does 30M ops/sec with zero dependencies
What happened
I kept hitting the same problem: users need to define rules, filters, or template logic, but giving them unconstrained code execution isn't an option. Existing expression evaluators like Jexl paved the way here, but I wanted something with modern syntax and better performance for hot paths. So I built bonsai-js - a sandboxed expression evaluator that's actually fast. import { bonsai } from 'bonsai-js' import { strings, arrays, math } from 'bonsai-js/stdlib' const expr = bonsai().use(strings).use
Business impact
Reported by r/javascript. Monitor for further developments.
Sources
Related stories