# OPFS + Pyodide 测试 UI

- 来源：Simon Willison 博客
- 作者：Simon Willison
- 发布时间：2026-06-24 02:58
- AIHOT 分数：59
- AIHOT 链接：https://aihot.virxact.com/items/cmqr125xk0fj5slp5l6p2ndxc
- 原文链接：https://simonwillison.net/2026/Jun/23/opfs-pyodide

## AI 摘要

Simon Willison 使用 Claude Code for web 构建了一个 OPFS + Pyodide 测试 UI，用于验证 Datasette Lite（基于 Pyodide 和 WebAssembly 在浏览器中运行的 Python Datasette 应用）能否通过 Origin Private File System（OPFS）编辑用户计算机上的持久 SQLite 文件，并在不同浏览器中测试其可行性。

## 正文

Tool: OPFS + Pyodide test harness

I've been pondering if Datasette Lite - the Python Datasette application run entirely in the browser using Pyodide and WebAssembly - might be able to edit persistent SQLite files stored on the user's computer.

That's what OFPS (Origin Private File System) is for, so I had Claude Code for web build me this playground UI to try it out in different browsers.

Tags: browsers, pyodide, datasette-lite
