Skip to content
TopicTracker
From simonwillison.netView original
TranslationTranslation

Datasette Apps: Host custom HTML applications inside Datasette

Datasette Apps is a new plugin that lets users host custom HTML+JavaScript apps inside Datasette in a sandboxed iframe with a Content Security Policy. The apps can run read-only SQL queries and optionally write data via stored queries. The feature supports AI-assisted creation through copyable prompts for LLMs.

Background

- **Simon Willison** created **Datasette**, an open-source tool for publishing and exploring SQLite databases. - **Datasette Apps** is a new plugin that lets users embed custom HTML+JavaScript apps inside Datasette. These run in a locked-down iframe sandbox (no cookies, localStorage, or outside network access), preventing data theft. - Apps can run read-only SQL queries against the database, and with configured "stored queries" can also perform limited writes — turning Datasette from a read-only browser into a platform for interactive data tools. - Inspired by **Claude Artifacts** (self-contained HTML apps generated by Anthropic's Claude) and Willison's own "vibe-coded" HTML tools collection. - Includes a copyable prompt so users can describe an app to an LLM and have it generate the code automatically. - AI-assisted security review caught a vulnerability: low-privilege users could whitelist external domains to exfiltrate data. Fixed by restricting domain allow-listing to trusted staff.

Related stories

  • HtmlUnit 5.0.0 has been released, now requiring JDK 17 as the minimum version. Key updates include major JavaScript engine improvements, full Web Crypto API support, WebSocket improvements, Web Speech API support, and updated browser profiles for Firefox 150 and Chrome/Edge 148.

  • JsPlumb, the JavaScript library for building visual connectivity interfaces, has released a major update with a modernized API and new diagram/2D chart engines. The project is now free for non-commercial use, with packages available for React, Angular, Vue, Svelte, and vanilla JS on the public NPM registry.

  • Datasette-apps is a new system that allows users to bundle and install full applications within Datasette, turning it into a platform for data-driven apps. It enables developers to create self-contained packages combining SQLite databases, metadata, plugins, templates, and assets.