SVG.chat is a free and open source design tool allowing you to create custom SVG icons and art using Claude 3.7 Sonnet AI. Simply describe the icon you want, and AI will generate it for you.
- AI-Powered Icon Generation: Create SVG icons by describing them in natural language
- Edit Mode: Modify existing icons with additional prompts
- Export Options: Copy SVG code or download as PNG
- Keyboard Shortcuts: Streamlined workflow with convenient shortcuts
- Responsive Design: Works on desktop and mobile devices
- Client-Side Processing: Your API key never leaves your browser
- Node.js 18.x or higher
- An Anthropic API key (get one at console.anthropic.com)
-
Clone the repository:
git clone https://github.com/Viktoo/SVG.chat.git cd SVG.chat -
Install dependencies:
npm install
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open http://localhost:3000 in your browser
- Enter your Anthropic API key in the API key section
- Type a description of the icon you want to create in the prompt field
- Click the submit button or press Cmd/Ctrl+Enter
- Once generated, you can:
- Copy the SVG code with the "Copy SVG" button
- Download as PNG with the "Download PNG" button
- Clear the icon with the "Clear" button
- Modify the existing icon by entering a new prompt in edit mode
- "A simple line art cat icon"
- "An animated sunset"
- "A #FFDE21 face"
- "A #000000 to #FFFFFF gradient circle"
- "A mountain with sun, blue and orange colors"
- "A cyberpunk-style lock icon with glowing elements"
- ⌘/Ctrl + Enter: Submit prompt
- ⌘/Ctrl + Backspace: Clear icon
- ⌘/Ctrl + Shift + C: Copy SVG code
- ⌘/Ctrl + R: Clear icon and retry
SVG.chat uses the Anthropic Claude 3.7 Sonnet API to generate SVG icons based on your text descriptions. The application:
- Takes your text prompt and sends it to the Anthropic API
- Processes the response to extract clean SVG code
- Renders the SVG in the browser
- Provides tools to export or modify the generated icon
Your API key is stored locally in your browser and is only used to authenticate requests to the Anthropic API.
- Next.js: React framework for the frontend and API routes
- Tailwind CSS: Utility-first CSS framework for styling
- Framer Motion: Animation library for smooth UI transitions
- React Hotkeys Hook: Keyboard shortcut management
- Anthropic Claude API: AI model for generating SVG code
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Anthropic for providing the Claude API
- Next.js for the React framework
- All contributors and users of this project
Built with ❤️ by Vik
