Pydantic's Monty now runs the classic xkcd antigravity demo sandboxed in the browser

samuelcolvin · x · 2026-09-15

Pydantic founder Samuel Colvin opened a PR porting PyScript's classic antigravity demo (an homage to xkcd 353) to Monty's WebAssembly build, with original author Philipp JFR calling it one of his favorite demo ideas.

Technical detail: Monty runs the Python file inside a WASM sandbox in a Web Worker, with its five imports replaced by host objects and functions. The sandbox drives the comic, but every DOM call suspends into the host, which polices what it may do — also exercising persistent sandbox state across many feeds.

Related event: Pydantic creator ports PyScript antigravity easter egg to Monty(2 posts)→

Original post →

More from coding & agent

coding & agent channel →