Datasette Lite routes real Python application requests inside the browser
Datasette Lite’s rewrite uses a service worker to intercept page and asset requests, then routes them to a Python Datasette instance running in a Pyodide web worker. Each tab gets a session-specific path so separate demos do not share one instance. Unlike the earlier HTML-injection approach, this supports JavaScript and CSS resources needed by interactive plugins.
Simon Willison · Nov 17, 2026
Why it matters
A reproducible demo can identify its application version, plugins and data in one URL without provisioning a Python server.
More context
Try a public example at lite.datasette.io, then specify a Datasette reference, plugin and SQLite version in its URL. Hosted data files need open CORS headers. The article demonstrates two version-pinned links reproducing and fixing the same pagination bug.
Keep in mind
Released rewrite of an existing project, not a newly invented Python runtime. Downloads and browser capabilities still matter. The article’s broader claim about porting almost any Python app is aspirational; external databases and incompatible extensions require additional work.
Original read