iCreatAI News
Skip to content
Simon Willison·· 9 hr agoAI score34

Running the full server-side Datasette Python app in the browser with service workers and Pyodide

Running the full server-side Datasette Python app in the browser with service workers and Pyodide

AI summary

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.

Source: Simon Willison · simonwillison.net