Datasette Apps: Host custom HTML applications inside Datasette

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

Why it matters

Developers can now host custom sandboxed HTML+JavaScript apps inside Datasette that safely query data via SQL, turning it into a lightweight platform for vibe-coded database frontends.

Read this as

Datasette, an open-source tool for exploring databases, has launched a new plugin called datasette-apps. It lets people add small, self-contained web apps that run inside a locked-down frame and can look up or (with permission) change data in the database. The idea is similar to Claude Artifacts, but with a database attached. Anyone can try it on the demo site agent.datasette.io by signing in with GitHub.

Simon Willison's Datasette project released the datasette-apps plugin, turning the database exploration tool into a host for custom web apps. It targets teams that want internal tools like dashboards or search interfaces built quickly, often by pasting a prompt into ChatGPT, Claude or Gemini. Security is handled through strict iframe sandboxing and content security policies, limiting exfiltration risk on authenticated data instances.

The datasette-apps plugin runs untrusted HTML+JS in an iframe with sandbox="allow-scripts allow-forms" plus an immutable meta CSP header (default-src 'none'; script-src 'unsafe-inline') blocking external requests, Willison verified the CSP cannot be removed by embedded code. Apps communicate with the parent via MessageChannel rather than postMessage for defense in depth, using an allow-listed SQL API; writes go through Datasette 1.0a31's upgraded stored queries. Query and error logs are surfaced in the parent UI.

Read the original

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

Key terms

Datasette datasette-apps Datasette Agent Claude Artifacts MessageChannel GitHub

Was this summary useful?

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

Related reading