Transform text descriptions into beautiful SVG graphics using AI. Built with Next.js 16, React 19, and Groq's free AI platform.
- AI-Powered: Uses Groq's Llama 3.3 70B model for SVG generation
- Live Preview: See your SVG render instantly
- Export: Copy code or download as .svg file
- Beautiful UI: Dark theme with glassmorphic design
- 100% Free: Groq's free tier (14,400 requests/day)
- Type-Safe: Built with TypeScript
-
Clone and install
git clone <your-repo-url> cd vector-magic npm install
-
Get free Groq API key
- Visit console.groq.com
- Sign up and create an API key
-
Configure environment
# Create .env.local GROQ_API_KEY=your_groq_api_key_here -
Run
npm run dev
- Enter a description: "A broken heart in red" or "A retro sunburst"
- Click "GENERATE SVG"
- View preview and code
- Copy or download your SVG
app/
├── actions/generateSVG.ts # AI generation
├── components/ # UI components
├── globals.css # Styles
└── page.tsx # Main page
lib/utils.ts # Utilities
- Next.js 16 + React 19
- TypeScript
- Tailwind CSS 4
- Groq AI (Llama 3.3 70B)
- Server Actions
- "A broken heart in red"
- "A retro sunburst pattern"
- "Geometric hexagon tessellation"
- "A simple book with a unicorn on the cover"
Add GROQ_API_KEY as environment variable.
Built with Next.js + Groq AI