Cloudflare Launches Gadgets: Secure Architecture for AI Codegen
AI Engineer · youtube · 2026-08-06
Cloudflare engineer Kenton Varda introduced Gadgets, a platform designed to solve the security and architectural challenges of AI-generated code (vibe coding).
Core Concept
Feature requests often die in Jira, and plugin rewrites take years. Gadgets allows a user's AI Agent to add features directly to an app (e.g., Claude dynamically adding strikethroughs or generating SVGs for a slide app) while keeping the core app clean.
Security & Architecture
- Isolation: The UI runs in a null origin iframe, communicating only via Cap'n Web RPC to a dynamic Worker sandbox. Even if the vibecoded app has an XSS bug, there is no data to leak.
- Stateless & Containerless: Built on Cloudflare Workers without containers or databases. Each document is a single gadget instance, and sharing is implemented by the platform to prevent access control errors.
- Local-First: The entire demo can run locally on workerd, requiring network access only for LLM calls.
More from coding & agent
- Liquid AI Launches LFM2.5-2.6B: An On-Device Agentic Model — JosephJacks_ · 2026-08-06
- Running Local Agents with LFM2.5-2.6B: A Step-by-Step Guide — JosephJacks_ · 2026-08-06
- Resurrecting a 2015 AI Assistant with ESP32 and a Rotary Display — viksit · 2026-08-06
- Codex One-Shots a Mac App to Triage 1.5TB of Cycling Footage — john__allard · 2026-08-06
- Developer Shares Practical Workflow OS for Claude Code and Codex — thatroblennon · 2026-08-06
- Smart LLM Routing Cuts Inference Costs by 65% While Maintaining 99.2% Accuracy — shensi · 2026-08-06