Edge Computing with Cloudflare Workers
How we use Abstract Syntax Trees (ASTs) to turn Workflows code into visual diagrams

How we use Abstract Syntax Trees (ASTs) to turn Workflows code into visual diagrams

3/27/2026 · André Venceslau, Mia Malden

What this post added

This post details how Cloudflare Workflows, a durable execution engine built on Cloudflare Workers, now generates visual diagrams of workflow code. It explains the use of Abstract Syntax Trees (ASTs) to statically derive the graph from code, even after minification by bundlers like esbuild, rspack, and vite. The post highlights the challenges of visualizing dynamic execution models and the solution using Rust Workers and the oxc-parser to convert minified JS into ASTs and then into a graphical representation for the dashboard.

Read the original post ↗