GenKit
GenKit is an SDK for building applications where AI generates UI components on demand. Instead of building static interfaces that anticipate every user need, GenKit enables “vibe coding”—users describe what they want, and the AI generates it instantly.The Vision
Software has always been static. Developers write code, users interact with predetermined interfaces. GenKit changes this paradigm:- Users describe what they want in natural language
- AI generates React components with Tailwind CSS
- Components render instantly in sandboxed iframes
- Users save useful components for later
Core Components
VibeFrame
Secure iframe rendering for AI-generated components with PostMessage data passing
VibeArtifact
Production-ready component display with Run, Copy, Regenerate, Download, Share actions
Vibe Storage
Persist user-generated components with Prisma, Drizzle, or custom adapters
Vibe Compiler
Validate and compile generated code with security checks
Quick Start
Installation
Basic Usage
With Artifact Container
Persisting Components
Architecture
GenKit follows a minimal, composable architecture:- Secure code execution in sandboxed iframes
- PostMessage communication for data passing
- Component validation and compilation
- Storage adapters for persistence
- Your AI model of choice
- Your application data
- Your authentication/authorization
- Your deployment infrastructure
Security Model
Generated code runs in sandboxed iframes with strict policies:- No DOM access to parent window
- No network requests from generated code
- No localStorage/cookies access
- PostMessage only communication
Use Cases
Dashboard Widgets
Users create custom visualizations for their data:Internal Tools
Generate admin interfaces on demand:Prototyping
Rapid iteration without writing code:Next Steps
VibeFrame Guide
Deep dive into secure component rendering
VibeArtifact Guide
Build production-ready component displays
Storage Adapters
Persist components with your database
Examples
See GenKit in action with real examples