Design Weave
Poolchaos/design-weave
Transforme descrições em linguagem natural em UIs renderizadas em tempo real
Ver no GitHubAssistente de design visual alimentado por IA que transforma descrições em linguagem natural em designs de UI em tempo real. Exporta componentes React, classes Tailwind ou CSS puro, com preview instantâneo e persistência automática.
Instalação
npx convez-ai Poolchaos/design-weave1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Prototipagem rápida de interfaces a partir de descrições textuais
- Geração de componentes React e estilos Tailwind automaticamente
- Iteração visual em tempo real sem sair do navegador
Veredito

Plugin bem arquitetado que aproveita Claude/GPT-4 para democratizar a geração de UI. Performance otimizada, testes robustos e exportações flexíveis tornam viável para prototipagem ágil, embora a qualidade dos designs dependa fortemente das descrições textuais fornecidas.
README
A tradução para o português deste README ainda está na fila.
DesignWeave
AI-powered visual design assistant that transforms natural language descriptions into live UI designs.
Describe your design in plain English and watch it render in real-time. Export as React components, Tailwind classes, or plain CSS.
Features
- Natural Language Input: Describe designs in plain English (e.g., "gradient card with glassmorphism, 3 columns, shadows")
- Real-time Preview: See your design render instantly with <100ms render time
- AI-Powered Generation: Claude 3.5 Sonnet transforms descriptions into structured design specs
- Multiple Export Formats: Export as React components (JSX/TSX), Tailwind CSS classes, or plain CSS
- State Persistence: Designs automatically saved to localStorage
- Performance Optimized: API calls <2s, canvas rendering <100ms, exports <500ms
- Fully Tested: Comprehensive unit, component, and E2E test coverage
Demo
Input: "gradient card with glassmorphism effect, 3 columns layout, drop shadows"
Output: Live rendered design + exportable code
Tech Stack
- Framework: Next.js 15 (App Router) + React 19
- AI: Claude 3.5 Sonnet (Anthropic) or GPT-4o (OpenAI) - auto-detected
- Styling: Tailwind CSS v4 + shadcn/ui components
- State Management: Zustand with localStorage persistence
- Testing: Jest, React Testing Library, Playwright E2E
- Language: TypeScript (strict mode)
- Code Quality: ESLint, Prettier
Architecture
app/
page.tsx # Main UI
api/generate/route.ts # Claude API integration
components/
prompt-input.tsx # Natural language input with validation
canvas-preview.tsx # Real-time design renderer
export-modal.tsx # Code export with format selection
lib/
claude/ # AI client and fixtures
codegen/ # React/Tailwind/CSS generators
store/ # Zustand state management
Getting Started
Prerequisites
- Node.js 18+ and npm
- AI API key (choose one):
- Claude: Anthropic API key - Get one free
- OpenAI: OpenAI API key - Get one here
Installation
# Clone repository
git clone https://github.com/Poolchaos/design-weave.git
cd design-weave
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local
# Edit .env.local and add your ANTHROPIC_API_KEY or OPENAI_API_KEY
# Start development server
npm run dev
Open http://localhost:5173 in your browser.
Environment Variables
Create .env.local with your AI provider key (choose one or both):
# AI Provider - set either one (app will auto-detect)
ANTHROPIC_API_KEY=your_claude_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
# Application URL
NEXT_PUBLIC_APP_URL=http://localhost:5173
Usage
- Describe: Enter a natural language description of your design
- Generate: Click "Generate Design" (powered by Claude AI or OpenAI GPT-4)
- Preview: View the rendered design in real-time
- Export: Choose format (React/Tailwind/CSS) and export code
Example Prompts
- "Modern card with gradient background and rounded corners"
- "Three column grid layout with blue cards and shadows"
- "Minimalist button with green background and white text"
- "Dashboard header with logo and navigation menu"
Development
npm run dev # Start dev server on port 5173
npm run build # Production build
npm run start # Start production server
npm test # Run tests in watch mode
npm run test:ci # Run tests with coverage
npm run test:e2e # Run Playwright E2E tests
npm run test:e2e:ui # Run E2E tests with UI
npm run format # Format code with Prettier
npm run lint # Lint code with ESLint
Testing
- Unit Tests: Jest with React Testing Library
- Component Tests: Testing user interactions and rendering
- E2E Tests: Playwright for full user flows
- Coverage Target: 70%+ (configured in
jest.config.js)
Run all tests:
npm run test:ci
npm run test:e2e
Deployment
Vercel (Recommended)
- Push code to GitHub
- Import project at vercel.com
- Configure environment variables:
ANTHROPIC_API_KEY: Your Anthropic API key
- Deploy
Other Platforms
Compatible with any Node.js hosting platform that supports Next.js 15:
- Netlify
- Railway
- Render
- AWS Amplify
See Next.js deployment docs for details.
Performance
Targets (all met in production):
- Claude API: <2s response time
- Canvas Render: <100ms
- Code Export: <500ms
Browser Support
- Chrome 120+
- Firefox 120+
- Safari 17+
- Edge 120+
Project Status
Current Version: MVP (v0.1.0)
Completed Features:
- ✅ Claude API integration
- ✅ Natural language prompt input
- ✅ Real-time canvas preview
- ✅ Export to React/Tailwind/CSS
- ✅ State persistence
- ✅ Comprehensive testing
Planned Features:
- ⏳ Design history with undo/redo
- ⏳ Share designs via unique URLs
- ⏳ Component library integration
- ⏳ Responsive preview modes
- ⏳ Animation suggestions
- ⏳ Accessibility checker
Contributing
Contributions welcome! Please open an issue or PR.
License
MIT License - see LICENSE file for details
Acknowledgments
- Built with Next.js
- AI powered by Anthropic Claude
- UI components from shadcn/ui
- Styling with Tailwind CSS
Created by Poolchaos | Report Bug | Request Feature