Back to browse
Bonsai - A TypeScript-first sandboxed expression evaluator

Bonsai - A TypeScript-first sandboxed expression evaluator

by danfry·Mar 13, 2026·1 point·0 comments

AI Analysis

●●SolidSlickSolve My Problem

Replaces eval() with typed sandboxing while JEXL and jsonata already exist.

Strengths
  • Pipe operator enables readable transform chains like trim |> upper in expressions.
  • Zero runtime dependencies with ESM-only packaging for clean TypeScript integration.
  • Depth and timeout guards prevent infinite loops in untrusted user-authored expressions.
Weaknesses
  • Expression evaluator category already has JEXL, jsonata, and Google CEL established.
  • No visual expression builder for non-technical admins to create rules safely.
Target Audience

Backend developers building admin panels, pricing engines, workflow tools

Similar To

JEXL · jsonata · Google CEL

Similar Projects