Tag · 2 articles
Tagged postmessage
- Generative UI
Streaming AI-Generated UI Into a Sandboxed Iframe: What Leaks, and What Isolation Costs
I streamed the same AI-generated widget into several sandboxed iframe setups to see which ones can reach the parent page, and what that isolation costs in reloads. Includes a live lab and a hardening checklist.
#claude#ai#iframe#sandbox#security#postmessage#csp#visualizer - Generative UI
Painting Widgets Token by Token: Building Claude-Style Generative UI from Scratch
The follow-up to reverse-engineering Claude's visualizer: a from-scratch implementation with a Pi agent server, visual tools, a sandboxed iframe widget manager, and a postMessage RPC bridge. Watch html widgets paint token by token as the model streams a tool call. Full code, no framework.
#claude#agent#ai#iframe#sandbox#postmessage#visualizer#tutorial#typescript