AI-powered React component generator with live preview.
- Node.js 18+
- npm
- Optional Edit
.envand add your Anthropic API key:
ANTHROPIC_API_KEY=your-api-key-here
The project will run without an API key. Rather than using a LLM to generate components, static code will be returned instead.
- Install dependencies and initialize database
npm run setupThis command will:
- Install all dependencies
- Generate Prisma client
- Run database migrations
npm run devThis repository includes a workflow at .github/workflows/claude.yml that lets contributors invoke Claude from PR/issue comments by mentioning @claude.
Required one-time setup in GitHub:
- Install the Claude GitHub App on this repository: https://github.com/apps/claude
- Add a repository secret named
ANTHROPIC_API_KEYwith your Claude API key
After setup, use comments like:
@claude review this PR for bugs and security issues@claude implement the TODO in src/lib/provider.ts
- Sign up or continue as anonymous user
- Describe the React component you want to create in the chat
- View generated components in real-time preview
- Switch to Code view to see and edit the generated files
- Continue iterating with the AI to refine your components
- AI-powered component generation using Claude
- Live preview with hot reload
- Virtual file system (no files written to disk)
- Syntax highlighting and code editor
- Component persistence for registered users
- Export generated code
- Next.js 15 with App Router
- React 19
- TypeScript
- Tailwind CSS v4
- Prisma with SQLite
- Anthropic Claude AI
- Vercel AI SDK