AutoIcon is a modern web application designed to create pristine, minimalist line-art icons and vector rubber stamps. Using Google's Gemini 3.0 Pro Vision for generation and advanced tracing algorithms for vectorization, it transforms ideas or raster images into clean, scalable SVG and high-resolution PNG assets.
- AI Icon Generation: Generate minimalist, professional line-art icons from text descriptions using Gemini 3.0 Pro Vision.
- Custom Prompting: Fully customizable prompts with support for
${itemName}placeholders and prompt shortcuts. - Advanced Vectorization: Convert PNGs to SVGs using a robust Sharp + Potrace pipeline with noise reduction and artifact filtering.
- Interactive Workspace:
- Live preview artboard.
- Real-time color customization with persistent shortcuts.
- Design scaling and transformation.
- Export Options:
- Scalable Vector Graphics (SVG).
- High-resolution (1024x1024) PNG with custom ink colors.
- Persistent Storage: All history, custom prompts, and color shortcuts are saved locally in your browser.
- Modern UI: A responsive, glassmorphic interface built with Next.js and Tailwind CSS (Vanilla CSS).
- Node.js 20+
- A Google Vertex AI / Gemini API Key
-
Clone the repository:
git clone https://github.com/tracywong117/auto-icon.git cd auto-icon -
Install dependencies:
npm install
-
Configure your environment: Create a
.envfile in the root directory and add your API key:VERTEX_AI_API_KEY=your_api_key_here
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
- Framework: Next.js (App Router, TypeScript)
- AI Model: Gemini 3.0 Pro Vision
- Image Processing: Sharp
- Vectorization: Potrace
- Styling: Vanilla CSS with Glassmorphism
This project is licensed under the MIT License - see the LICENSE file for details.