Running Python ASGI apps in the browser via Pyodide + a service worker (opens in new tab)
Research: is my version of Datasette that runs entirely in the browser using Pyodide in WebAssembly. When I first built it I used Web Workers and code that intercepts navigation operations and fetches the generated HTML by running the Python app. This worked, but had the disadvantage that any JavaScript in tags would not be executed - breaking some Datasette functionality and a whole lot of Datasette plugins. This morning I (in Claude Code for web) of figuring out how to run Python A...
Read the original article