AI-powered React component generator with live preview.
- Node.js 18+
- npm
- Optional Edit
.envand replaceyour-api-key-herewith your Anthropic API key from console.anthropic.com:
ANTHROPIC_API_KEY=sk-ant-...
The project runs without an API key — it falls back to a mock provider that returns canned components instead of calling Claude. If you leave the placeholder unchanged, you'll get the mock.
- Install dependencies and initialize the database:
npm run setupDon't run
npm audit fix. Dependencies are pinned to specific versions that work together, andaudit fixcan bump packages past compatible versions and break the app. Known security issues are addressed by updating the pinned versions directly — most recently, Next.js was bumped to a patched release to fix the React2Shell vulnerability (CVE-2025-55182 / CVE-2025-66478). If your scanner still flags something, raise it rather than runningaudit fix.
This command will:
- Install all dependencies
- Generate Prisma client
- Run database migrations
npm run dev- 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