OPFS + Pyodide test harness

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

A working browser playground lets developers test whether persistent OPFS-backed SQLite files work reliably across browsers, a prerequisite for running real data apps like Datasette Lite entirely client-side.

Read this as

Simon Willison built an interactive test page for the Origin Private File System (OPFS), a browser storage area that lets web apps keep files on your device between visits. The page, generated with Claude Code, lets you create, read and delete files and run SQL queries against SQLite databases stored there. It also checks whether files survive a page reload. Anyone curious about running serious data applications entirely in a browser tab can try it today.

This is a small but practical experiment, not a product launch. Willison used Claude Code to build a playground testing whether browser-based Python (via Pyodide) can edit SQLite databases that persist on a user's machine using OPFS storage. The strategic question is whether his Datasette Lite project can become a genuine alternative to server-hosted data tools. Risks remain around cross-browser persistence, which the tool is designed to expose.

The harness exercises OPFS (Origin Private File System) through Pyodide-compiled Python in the browser. It supports file create/read/delete operations, SQL execution against SQLite databases held in OPFS, persistence verification across reloads, a capability-detection panel and an activity log. Willison built it with Claude Code specifically to evaluate cross-browser behaviour before wiring OPFS persistence into Datasette Lite.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Origin Private File System Pyodide SQLite Datasette Lite Claude Code

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading