Back to Daily Feed 
Datasette Apps: Host Custom HTML Applications in a Secure Sandbox
Must Read
Originally published on Simon Willison's Weblog by Simon Willison
View Original Article
Share this article:

Summary & Key Takeaways
- Datasette Apps is a new plugin for the Datasette ecosystem.
- It enables hosting self-contained HTML+JavaScript applications within Datasette.
- Apps run in a tightly constrained
<iframe>sandbox for security. - They can execute read-only SQL queries against Datasette data.
- Write queries are possible with additional configuration using stored queries.
- Security features include
sandboxattributes and injected CSP headers. - This prevents access to cookies/localStorage and external HTTP requests.
- The concept evolved from an attempt to build Claude Artifacts for Datasette Agent.
Our Commentary
This is a genuinely clever move. We've seen the power of embedding custom UIs, but doing it with such a strong security model is impressive. I'm particularly intrigued by the origin story – starting as a way to integrate AI agent artifacts and then realizing its broader potential. It feels like a natural evolution for Datasette, turning it into an even more versatile platform.
View Original Article
Share this article: