AI-powered embroidery file generator that converts text prompts or images into machine-ready embroidery files (.DST).
- Text-to-image generation using Gemini AI
- Image upload with automatic quality validation and enhancement
- Automated image preprocessing (background removal, contrast adjustment)
- SVG tracing with AI-powered quality review
- DST embroidery file generation with configurable stitch patterns
- Manufacturing quote calculator with garment selection
- Shopping cart for bulk orders
Frontend:
- Next.js 16 with TypeScript
- React 19
- Tailwind CSS 4
Backend:
- FastAPI
- Google Gemini AI
- vtracer (SVG conversion)
- pyembroidery (DST generation)
- rembg (background removal)
- Pillow (image processing)
- Node.js 20+
- Python 3.9+
- Google Gemini API key
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadCreate a .env file in the backend directory (use .env.example as template):
GEMINI_API_KEY=your_gemini_api_key_here
JWT_SECRET_KEY=your_secure_random_secret_key_here
FRONTEND_URL=http://localhost:3000
.env file or real API keys to version control. Use the provided .env.example as a template only.
cd frontend
npm install
npm run devThe frontend will run on http://localhost:3000 and the backend API on http://localhost:8000.
- Input: Text prompt or image upload
- Image validation and enhancement
- Preprocessing (background removal, contrast adjustment)
- SVG conversion with AI review
- DST generation with AI optimization
- Download final embroidery file
POST /generate-image- Generate image from text promptPOST /upload-image- Upload and validate imagePOST /preprocess-image- Preprocess image for conversionPOST /convert-to-svg- Convert image to SVGPOST /convert-to-dst- Convert to DST embroidery filePOST /manufacturing-quote- Calculate manufacturing quotePOST /auth/register- User registrationPOST /auth/login- User login
MIT