Datasette Lite rewritten with Service Worker
Understand this story
Simon Willison has released a Datasette Lite rewritten with Service Worker, which he says is "almost indistinguishable" from a real server-side Datasette application. Datasette Lite previously ran in the browser based on WebAssembly and Pyodide. The new version supports loading multiple plugins by repeatedly passing &install=..., whose plugin URLs need open CORS headers; it also adds a ?sqlite= parameter that accepts a version number such as 3.54.1, resolves the corresponding wheel file path, downloads it and installs it into the Pyodide environment, then configures Datasette to use that version.
AI overview based on source reports · Updated 8 hr ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Simon WillisonRunning the full server-side Datasette Python app in the browser with service workers and Pyodide
Datasette Lite has been rewritten using service workers so the browser-based Pyodide version of Datasette now behaves almost like the server-side application, supporting JavaScript and CSS assets. A crafted URL to lite.datasette.io can load a SQLite database, JSON, CSV or SQL file, select a Datasette version from PyPI or a GitHub commit/tag/branch, install plugins from PyPI or wheel URLs, and choose from over 100 SQLite versions via a ?sqlite= parameter. The author uses it to link to demos of work-in-progress features and bug reproductions, and notes the approach should work for almost any Python application.
Activity for this story
- Current comparable activity
- 8
- Peak comparable activity
- 10Nov 18 02:00
- Change in the past 24 hours
- –
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.