docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
AST utility module for statically analyzing JSX
Performance
Overall agent performance with this tile
50%
Improvement
Performance improvement when using this tile compared to baseline
↑ 15%
Baseline
Agent performance without this tile
35%
npx @tessl/cli install tessl/npm-jsx-ast-utils@3.3.0Generated
Agent Claude Code
Scenario 1
Gracefully handle unknown expression node types by logging and returning null instead of throwing
Scenario 2
Extract JSX attribute names with namespace support
Scenario 3
Resolve JSX element type including members, namespaces, and fragments
Scenario 4
Evaluate prop values to JavaScript equivalents for common literals, JSX, and expressions
Scenario 5
Reconstruct arrays, objects, spreads, bind expressions, and new expressions into representative structures
Scenario 6
Literal-only prop value extraction that filters out non-primitive expressions
Scenario 7
Reference canonical JSX event handler prop lists (flat and grouped)
Scenario 8
Support optional chaining, optional calls, and TypeScript non-null assertions or casts in value extraction
Scenario 9
Check for required props (single/any/all) with case-insensitive and spread-aware options
Scenario 10
Retrieve JSX attributes directly or from object-literal spreads