Open Source
How to share a reproducible query with Datasette Lite
Datasette Lite can put a small, shareable query demo in the browser. Here is what the URL can pin, what it still fetches, and where a hosted service fits.

Image: AI-generated editorial illustration.
If a teammate needs to check one query against a small public dataset, send them a link that opens the same data and SQL. Datasette Lite runs Datasette in their browser, so a reproducible example can be shared without deploying a Datasette server. Host the input files at URLs the browser can fetch. Project README
Suppose a support team wants a teammate to check a query that counts tickets by day and label. Give them a small synthetic CSV with day and label columns and a known result, such as two billing rows on Monday. Send a link that opens the grouped query. Ask the reviewer to confirm the Monday count against the fixture before relying on the query elsewhere.
The URL can carry several parts of that setup. Datasette Lite accepts CSV and SQLite file URLs; its README also documents JSON, Parquet, SQL and metadata inputs. The default can pick an alpha or beta from PyPI. Use ref=stable for the latest stable release, or supply a release number or full commit SHA to pin Datasette. If the query depends on a particular SQLite version, set sqlite to a supported version. SQL can be loaded before CSV imports, and a query can be included in the page fragment. For example, a team could assemble a link in this shape:
https://lite.datasette.io/?ref=<datasette-version>&csv=<encoded-file-url>#/data?sql=<encoded-query>
Use a commit-specific file URL for the fixture in csv. The #/data fragment opens the example’s database page, where sql supplies the encoded query. Pin Datasette with ref and record any plugins requested with install. A package name alone can resolve to a different version when another reader opens the link. Project README
The browser also has to be able to fetch each file. Datasette Lite requires a permissive CORS response from the file host; the project documents GitHub and Gists as sources that provide the needed headers. Plugins must be pure Python or available through Pyodide, and they cannot require threads or subprocesses. With the default preview build, install can pick preview plugin releases. If a plugin fails there, try ref=stable to use stable releases of Datasette and the plugin. A useful reproduction therefore records its input and query, then asks the next reader to confirm that the selected files and plugins are still available and load successfully.
Use synthetic or public data in shareable demos. Datasette Lite supports sign-in cookies and compatible authentication plugins inside the browser. Those controls do not make a publicly hosted CSV private. If the real data needs centrally enforced access rules, make sure those rules protect the file host or use a service that enforces access on the server. Datasette Lite README
Before circulating a link, check what it contains. The project says its default analytics record the page fragment and the loaded file URL. Add analytics=off to the query string before the # to disable Plausible reporting. Keep sensitive filenames and queries out of shareable links, even with analytics disabled. Analytics settings
Sources
- Datasette Lite READMERetrieved
- Datasette CLI referenceRetrieved
Related articles
What ollama ps can tell you when a model feels slow
Ollama’s processor column reports whether a loaded model is in system memory, GPU memory or split between them. Use it to narrow the next check, then measure the request you actually care about.