AI-powered React component generator that creates production-ready components from natural language descriptions.
- 🤖 AI Generation: Uses OpenAI to understand requirements and generate components
- 📱 Live Preview: Real-time component preview with react-live
- 🔄 Streaming Updates: Server-Sent Events for real-time progress
- ⚡ TypeScript: Full TypeScript support with proper interfaces
- 🎨 Modern UI: Built with Next.js 15 and Tailwind CSS
- Node.js 18+
- OpenAI API key
-
Clone & Install
git clone https://github.com/murongg/open-components.git cd open-components pnpm install
-
Environment Setup
cp .env.example .env.local # Add your OpenAI API key
-
Start Development
pnpm dev # Open http://localhost:3000
Describe your component needs in natural language:
Generate a modern button component with hover effects and loading states
The AI will generate:
- Component code
- Documentation
- Live preview
- Frontend: Next.js 15, Tailwind CSS, Framer Motion
- Backend: Next.js API Routes, OpenAI API, Server-Sent Events
- Tools: Babel AST parsing, TypeScript, react-live
MIT License - see LICENSE file.