PythonAI
Content type: Concept
4 min read
Datasette Lite runs an entire Python database in the browser via WebAssembly
Datasette Lite compiles Datasette, a Python tool for exploring data, entirely to WebAssembly using Pyodide. The result: full SQL queries running only in the browser, with no backend at all.
- Reading
- 4 min
Datasette Lite compiles Datasette, a Python tool for exploring data, entirely to WebAssembly using Pyodide. The result: full SQL queries running only in the browser, with no backend at all.
Datasette Lite compiles Datasette, a Python tool for exploring data, entirely to WebAssembly using Pyodide. The result: full SQL queries running only in the browser, with no backend at all.
Datasette's creator, Simon Willison, revisited Datasette Lite in a post published on December 4, 2026, as part of a daily series he's calling "Datasette Advent." The project itself isn't new: the tool has lived at lite.datasette.io for a while. What's practical about the post is a reminder (with a video and a new data example) of an idea that still sounds strange to anyone used to thinking of a database as something that needs a server: running the entire Datasette, from scratch, inside a browser tab.
What Datasette is, for those who don't use it
Datasette is an open-source Python web application for exploring and publishing data, usually stored in SQLite. Instead of writing an API for every query, you point Datasette at a .db file and get an interface to browse tables, run arbitrary SQL, and export results as JSON or CSV. It's the kind of tool that becomes the Swiss Army knife for anyone who receives a data dump and needs to understand what's in it before deciding what to build on top of it.
How Datasette Lite takes the server out of the equation
The Lite version runs the same Python code as Datasette, but compiled to WebAssembly via Pyodide, a CPython distribution that runs inside the browser. There's no backend: the Python interpreter, SQLite, and Datasette's web layer all come up entirely on the client side, and the SQL query you type is processed locally, with no round trip to any server.
In practice, this means anyone can open lite.datasette.io and load a SQLite database hosted at a URL (or a CSV) and immediately start running SQL against it, without needing to install anything locally. The details of which formats and options are supported are documented by the project itself, linked in the original post.
A concrete example: New York's squirrel census
The post uses data from the 2019 Squirrel Census as a demonstration, mentioned in the original publication. Willison links to a version of this data plotted on a map inside Datasette Lite itself. It's a small, playfully chosen dataset, but it makes the point well: you can go from "raw data file" to "interactive map with SQL filtering" without writing a single line of HTML, JavaScript, or backend code.
What this replaces (and what it doesn't)
In short: Datasette Lite is great for the exploration and demonstration cycle, but it's not a production substitute for the traditional server-based Datasette.
- It works well for quickly prototyping an analysis, teaching a SQL class without installing anything on students' machines, or sharing a dataset from a news story with readers so they can query it themselves.
- It doesn't seem suited for very large datasets: since it runs entirely in the browser, it's reasonable to assume the size of the file to be downloaded and the startup of the Python environment via Pyodide impose some wait time before the first query becomes available.
- Because each run is isolated in the browser of whoever opened the page, it also doesn't seem designed for concurrent writes or multiple users sharing the same state.
- It assumes the SQLite file is accessible via a URL the browser can fetch; the project's official documentation details the supported options for this.
Why this matters to builders
For those working on product prototyping or exploratory analysis, the real gain isn't technical in the performance sense, it's zero friction. Not having to spin up a container, configure a port, or request access to a server just to show a slice of data to a colleague or client is the kind of friction that usually kills curiosity before it turns into a decision. WebAssembly here isn't being used to run something faster, it's being used to run something nowhere at all, which for this use case is more valuable.
It's also worth noting what this example says about the state of Pyodide: if a reasonably sized Python web application (with SQLite built in) can be compiled to WebAssembly and have usable behavior in the browser, other data-focused Python applications, not just Datasette, have the same path available. Anyone who has considered porting an internal analysis tool to run client-side, with no backend to maintain, now has in Datasette Lite a functional, public example that the path exists.
Datasette Lite's documentation covers the different options supported by the tool, for anyone who wants to go beyond the example shown in the post. For anyone wanting to test it with their own data, the simplest starting point is still to host a small .db file at an accessible URL and point Datasette Lite to it, following the options documented by the project.
Translated from the Brazilian Portuguese original · Read the original
Qwen4-35B-A3B runs locally with sparse MoE and 1M token context: what changes for those building RAG and agents
Alibaba launched Qwen4-35B-A3B on December 4, a multimodal mixture-of-experts model with 1M token context and day-zero support in transformers, llama.cpp, and vLLM. The pitch: cutting-edge intelligence running locally, without API vendor lock-in.





