Thesys Generative UI
Last Updated: 2025-11-10
Quick Start
import { generateUI } from 'thesys';
const ui = await generateUI({
prompt: 'Create a user profile card with avatar, name, and email',
schema: {
type: 'component',
props: ['name', 'email', 'avatar']
}
});
export default function Profile() {
return <div>{ui}</div>;
}
Core Features
- Natural Language: Describe UI in plain English
- Schema-Driven: Type-safe component generation
- React Components: Generate production-ready components
- AI-Powered: Uses LLMs for intelligent design
Example
const form = await generateUI({
prompt: 'Create a contact form with name, email, and message fields',
theme: 'modern'
});
Resources
Core Documentation
references/what-is-thesys.md - What is TheSys C1, success metrics, getting started
references/use-cases-examples.md - When to use, 12 errors prevented, all templates catalog
references/tool-calling.md - Complete tool calling guide with Zod schemas
references/integration-guide.md - Complete setup for Vite, Next.js, Cloudflare Workers
Additional References
references/component-api.md - Complete component prop reference
references/ai-provider-setup.md - OpenAI, Anthropic, Cloudflare Workers AI setup
references/tool-calling-guide.md - Tool calling patterns
references/theme-customization.md - Theme system deep dive
references/common-errors.md - Expanded error catalog
Templates (15+ files)
- Vite + React:
basic-chat.tsx, custom-component.tsx, tool-calling.tsx, theme-dark-mode.tsx
- Next.js:
app/page.tsx, app/api/chat/route.ts, tool-calling-route.ts
- Cloudflare Workers:
worker-backend.ts, frontend-setup.tsx
- Utilities:
theme-config.ts, tool-schemas.ts, streaming-utils.ts
Official Docs: https://docs.thesys.dev | Playground: https://console.thesys.dev/playground
1---2name: thesys-generative-ui3description: >4 Generate, modify, and style React components from natural language using the5 Thesys SDK. Guides schema-driven UI generation, theme customisation, tool6 calling integration, and deployment to Vite, Next.js, or Cloudflare Workers.7 Use when the user says "generate UI", "create a component", "build an8 interface", "Thesys", "generative UI", or asks to turn a description into a9 React component.10license: MIT11metadata:12 source: https://skillmd.com/skills/secondsky/thesys-generative-ui13---1415# Thesys Generative UI1617**Last Updated**: 2025-11-101819## Quick Start2021```typescript22import { generateUI } from 'thesys';2324const ui = await generateUI({25 prompt: 'Create a user profile card with avatar, name, and email',26 schema: {27 type: 'component',28 props: ['name', 'email', 'avatar']29 }30});3132export default function Profile() {33 return <div>{ui}</div>;34}35```3637## Core Features3839- **Natural Language**: Describe UI in plain English40- **Schema-Driven**: Type-safe component generation41- **React Components**: Generate production-ready components42- **AI-Powered**: Uses LLMs for intelligent design4344## Example4546```typescript47const form = await generateUI({48 prompt: 'Create a contact form with name, email, and message fields',49 theme: 'modern'50});51```5253## Resources5455### Core Documentation56- `references/what-is-thesys.md` - What is TheSys C1, success metrics, getting started57- `references/use-cases-examples.md` - When to use, 12 errors prevented, all templates catalog58- `references/tool-calling.md` - Complete tool calling guide with Zod schemas59- `references/integration-guide.md` - Complete setup for Vite, Next.js, Cloudflare Workers6061### Additional References62- `references/component-api.md` - Complete component prop reference63- `references/ai-provider-setup.md` - OpenAI, Anthropic, Cloudflare Workers AI setup64- `references/tool-calling-guide.md` - Tool calling patterns65- `references/theme-customization.md` - Theme system deep dive66- `references/common-errors.md` - Expanded error catalog6768### Templates (15+ files)69- **Vite + React**: `basic-chat.tsx`, `custom-component.tsx`, `tool-calling.tsx`, `theme-dark-mode.tsx`70- **Next.js**: `app/page.tsx`, `app/api/chat/route.ts`, `tool-calling-route.ts`71- **Cloudflare Workers**: `worker-backend.ts`, `frontend-setup.tsx`72- **Utilities**: `theme-config.ts`, `tool-schemas.ts`, `streaming-utils.ts`7374**Official Docs**: https://docs.thesys.dev | **Playground**: https://console.thesys.dev/playground