---
id: 20261118-T0-07
title: "Datasette Lite重写：用Service Worker和Pyodide在浏览器跑完整服务端应用"
title_en: "Datasette Lite Rewritten to Run Full Server App in Browser via Service Workers"
url: https://ai.daily.yangsir.net/daily/20261118-T0-07
issue_date: 2026-11-18
publish_date: 2026-11-17T16:48:33.000Z
category: tools
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Nov/17/datasette-lite/
---

# Datasette Lite重写：用Service Worker和Pyodide在浏览器跑完整服务端应用

Simon Willison发布Datasette Lite的完整重写版，用Service Worker替代原有方案，把Datasette这个Python应用通过WebAssembly和Pyodide直接跑在浏览器里。重写后的版本与真正的服务端应用几乎难以区分，用户可以在浏览器里完成原本需要服务端才能做的操作。这意味着部署一个数据查询应用不再需要服务器。

## English Version

**Datasette Lite Rewritten to Run Full Server App in Browser via Service Workers**

Simon Willison released a complete rewrite of Datasette Lite, using service workers instead of the previous approach to run the Datasette Python app in the browser via WebAssembly and Pyodide. The rewrite is now almost indistinguishable from the real server-side application, letting users do in-browser what previously required a server. It means deploying a data query app no longer needs a backend.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Nov/17/datasette-lite/)

**详情页**：https://ai.daily.yangsir.net/daily/20261118-T0-07

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*