GenUIKit Documentation
Type-safe, schema-validated UI rendering from LLM outputs. GenUIKit gives you a registry of Zod-validated components that your AI can render safely, with automatic error correction and streaming support.
Explore the docs
Getting Started
Install GenUIKit and render your first LLM-driven component in under 5 minutes.
Core Concepts
Understand the registry pattern, schema validation, and auto-correction prompts.
React Hooks
API reference for useGenerativeUI, useStreamingUI, useCoAgent and components.
Adapters
Pre-built registries for shadcn/ui, Tailwind CSS, and Material UI.
Security
Built-in XSS protection, URL validation, and content sanitization.
Streaming
Progressive rendering with incremental JSON parsing and wire format encoding.
What's new
CLI Scaffolding
Run npx @genuikit/cli init to scaffold a project with your preferred adapter.
Security-Hardened Schemas
safeString, safeUrl, safeHtml, and safeCssClass protect every string from XSS.
Streaming Pipeline
StreamParser, StreamResolver, and Wire Format for progressive UI rendering.
Adapter System
Pre-built registries for shadcn/ui, Tailwind CSS, and Material UI with 30 components each.
Quick install
npm install @genuikit/core @genuikit/react zod
Then head to the Getting Started guide for a complete walkthrough.