thesys-generative-ui
> Generate, modify, and style React components from natural language using the Thesys SDK. Guides schema-driven UI generation, theme customisation, tool calling integration, and deployment to Vite, Next.js, or Cloudflare Workers. Use when the user says "generate UI", "create a component", "build an interface", "Thesys", "generative UI", or asks to turn a description into a React component.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- thesys-generative-ui
- license
- MIT
- description
- > Generate, modify, and style React components from natural language using the Thesys SDK. Guides schema-driven UI generation, theme customisation, tool calling integration, and deployment to Vite, Next.js, or Cloudflare Workers. Use when the user says "generate UI", "create a component", "build an interface", "Thesys", "generative UI", or asks to turn a description into a React component.
02 资源文件 30
- 参考文档references/ai-provider-setup.md5.3 KB
- 参考文档references/common-errors.md11.4 KB
- 参考文档references/component-api.md1.5 KB
- 参考文档references/error-catalog.md269 B
- 参考文档references/integration-guide.md39.5 KB
- 参考文档references/tool-calling.md5.5 KB
- 参考文档references/use-cases-examples.md3.6 KB
- 参考文档references/what-is-thesys.md1.8 KB
- 脚本scripts/check-versions.sh2.1 KB
- 脚本scripts/install-dependencies.sh1.8 KB
- 其他templates/basic-usage.tsx255 B
- 其他templates/cloudflare-workers/frontend-setup.tsx4.8 KB
- 脚本templates/cloudflare-workers/worker-backend.ts6.3 KB
- 其他templates/cloudflare-workers/wrangler.jsonc2.4 KB
- 脚本templates/nextjs/api-chat-route.ts4.5 KB
- 其他templates/nextjs/app-page.tsx3.3 KB
- 参考文档templates/nextjs/package.json1.1 KB
- 脚本templates/nextjs/tool-calling-route.ts8.9 KB
- 脚本templates/python-backend/fastapi-chat.py3.0 KB
- 脚本templates/python-backend/flask-chat.py2.8 KB
- 参考文档templates/python-backend/README.md5.2 KB
- 参考文档templates/python-backend/requirements.txt379 B
- 脚本templates/shared/streaming-utils.ts9.6 KB
- 脚本templates/shared/theme-config.ts7.3 KB
- 脚本templates/shared/tool-schemas.ts10.1 KB
- 其他templates/vite-react/basic-chat.tsx3.3 KB
- 其他templates/vite-react/custom-component.tsx6.0 KB
- 参考文档templates/vite-react/package.json1.1 KB
- 其他templates/vite-react/theme-dark-mode.tsx5.4 KB
- 其他templates/vite-react/tool-calling.tsx7.3 KB
03 SKILL.md 正文
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 startedreferences/use-cases-examples.md- When to use, 12 errors prevented, all templates catalogreferences/tool-calling.md- Complete tool calling guide with Zod schemasreferences/integration-guide.md- Complete setup for Vite, Next.js, Cloudflare Workers
Additional References
references/component-api.md- Complete component prop referencereferences/ai-provider-setup.md- OpenAI, Anthropic, Cloudflare Workers AI setupreferences/tool-calling-guide.md- Tool calling patternsreferences/theme-customization.md- Theme system deep divereferences/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
04 同仓库更多 Skills
vss-summarize-video
Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.
vss-setup-video-analytics-api
Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.
vss-setup-behavior-analytics
Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.
vss-search-archive
Use this skill to run top-level VSS fusion search on archived video, or to ingest video files / RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).
vss-query-analytics
Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.
vss-manage-video-io-storage
Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add/delete sensors and streams). Not for VLM inference or search.