JustHTML is a fascinating example of vibe engineering in action

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

JustHTML is a usable pure-Python HTML5 parser today, and its development is a concrete case study that expert-directed AI agents can produce production-quality libraries.

Read this as

A Swedish developer, Emil Stenström, released JustHTML, a free Python library for reading and extracting data from web pages. It passes all 9,200+ tests from the official browser-industry test suite, a strict quality bar. What makes it notable is that he built it over several months using AI coding assistants that wrote most of the code, while he made the design decisions. Willison argues this shows how experienced programmers should work with AI.

JustHTML is a free, open-source Python HTML parser that competes with the inconsistently maintained html5lib by passing all 9,200+ official conformance tests at just 3,000 lines of code. Its real significance for decision-makers is the process: one experienced engineer, using VS Code Agent mode with models like Claude Sonnet 3.7, Gemini 3 Pro and Claude Opus, delivered a production-grade library in months of off-hours work. Teams ignoring agent-assisted development are losing that productivity gap.

JustHTML is a pure-Python HTML5 parser (no C extensions, Pyodide-compatible) passing all 9,200+ html5lib-tests and achieving 100% test coverage in ~3,000 implementation lines plus ~11,000 test lines. Stenstrom wired the html5lib conformance suite into an agentic loop from the start, designed the TagHandler API himself, then rewrote from scratch as a port of Servo's html5ever, using a custom profiler, benchmarks and fuzzer with Gemini 3 Pro to outperform existing pure-Python parsers.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

JustHTML Emil Stenström html5lib html5ever Servo VS Code Pyodide

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading