Skip to content

Anatomy of a UI Teardown

Published: at 05:00 PM

A UI teardown is the full pipeline run — from URL to generated Next.js project. Here’s what happens at each stage.

Step 1: Capture with websnap

websnap https://example.com --output ./capture

websnap launches a browser, navigates to the URL, and captures:

Step 2: Inspect with webprobe

webprobe injects into the page to extract metadata that isn’t available from the DOM alone:

Step 3: Analyze with webast

webast takes the captured data and performs static analysis:

Step 4: Generate with web2next

web2next takes the analysis output and generates a complete Next.js project:

Step 5: Verify with webdiff

webdiff renders the generated project and compares it pixel-by-pixel against the original screenshots, producing a diff report with similarity scores.

The entire pipeline runs in under a minute for most sites.

  •  tutorial
  •  pipeline