Skip to content
Grammar
ECMAScript
Deadline
2,000 ms
Runtime
Browser

Explore a bounded JavaScript abstract syntax tree

Inspect node types, parent links, source ranges, lines, and concise node details.

Local processingNo sign-upNever executed

Input

Use this for syntax structure, not evaluated values.

Local

AST node report

Submit the example or replace it with your own input. Source is parsed but never executed.

What this tool proves

Explicit static behavior

The flat report makes tree relationships explicit through stable row and parent identifiers. It avoids serializing parser metadata that is not useful to inspection.

A bounded structural report is easier to inspect and safer to render

The flat report makes tree relationships explicit through stable row and parent identifiers. It avoids serializing parser metadata that is not useful to inspection.

Parsing stops above 30,000 nodes or 256 levels, and at most 10,000 report rows are returned.

Static analysis has a deliberate safety boundary

Tool Swim parses source as standard ECMAScript inside a disposable Web Worker with a 2,000 ms deadline. It never calls eval, Function, imported modules, or user code.

Source and results stay in the current browser tab. The public tool makes no API request, stores no preset, and does not require an account or telemetry.

Primary references

Questions and answers

Related JavaScript tools