Skip to content

Datasette Lite Rewrites Its Browser-Based Python App with Service Workers

Simon WillisonFrom the source·· 14 hours agoPicksRunning the full server-side Datasette Python app in the browser with service workers and Pyodide
Original
Image: Simon Willison
Who
Simon Willison
What
explains the service worker rewrite of Datasette Lite and its support for selecting SQLite versions
When
Quote
Let’s break down that URL to see what it’s doing:

What happened

Simon Willison released a rewrite of Datasette Lite that runs the Datasette Python application in the browser using WebAssembly, Pyodide, and service workers. Users can load specific Datasette versions, repository references, plugins, and SQLite versions through a URL. The rewrite also supports JavaScript and CSS assets, enabling demos such as a pagination fix to run in separate browser sessions.

Why it matters

Datasette Lite can now run separate, configurable Datasette instances in browser tabs, making it easier for developers to share reproducible demos and bug fixes without running a web server.

The story so far

Simon Willison has released a rewrite of Datasette Lite that runs the Datasette Python application entirely in the browser using WebAssembly, Pyodide, and service workers. The updated platform enables users to configure Datasette versions, repository references, plugins, and SQLite versions directly through the URL. Furthermore, the rewrite adds support for custom JavaScript and CSS assets, which allows independent demos—such as specific pagination fixes—to run in separate browser sessions.

Read next

See the full storySimon Willison Rewrites Datasette Lite to Support Service Workers and Configurable SQLite Versions
This story is in 11/18 AI DailyRead the whole issue