Simon Willison's WeblogMay 30, 2026, 9:02 PM
Running Python ASGI Apps in the Browser via Pyodide + a Service Worker
Original: Running Python ASGI apps in the browser via Pyodide + a service worker
A Service Worker experiment enables Python ASGI apps to run in-browser with Pyodide while improving script compatibility.
Simon Willison demonstrates an experiment for running Python ASGI apps entirely in the browser using Pyodide and a Service Worker. The approach addresses a Datasette Lite limitation: HTML returned through intercepted navigation did not execute script tags, breaking features and plugins. Claude Opus 4.8, used through Claude Code for web, helped explore the implementation. Basic ASGI and Datasette 1.0a31 demos are available.
想看英文原文 / 完整內容?
前往 Simon Willison's Weblog 原文 →相關
摘要由 AI 整理,以原文為準。