All tools

Live · juni 2026

PatternGen

A sewing pattern generator that turns garment prompts or reference photos into printable SVG, PDF, and DXF templates.

  • React
  • Vite
  • Cloudflare Pages
  • D1
  • R2
  • OpenAI
  • Gemini
PatternGen

PatternGen turns a clothing description or uploaded garment reference image into downloadable sewing pattern assets. Each generation produces a cutting overview, a natural-size pattern tiled across A4 pages for home printing, and a finished garment image for checking the intended result.

Why I built it

Sewing ideas often start as a rough silhouette, a fit note, or a photo of a garment that is close but not quite right. PatternGen gives that early idea a drafting pass: measurements, seam allowance, construction notes, and printable pieces that can be tested before committing fabric.

How it works

  • React and Vite power the protected web UI.
  • Cloudflare Pages Functions handle generation requests, with metadata in D1 and generated assets stored in R2.
  • OpenAI infers garment structure, pattern pieces, measurements, and construction details from text prompts or reference images.
  • Gemini renders the finished-product image, with a deterministic illustration fallback when image generation is unavailable.
  • Downloads include printable SVG, PDF, and DXF pattern files, plus overview and finished-product previews.

Status

Live as a protected workbench. Generated patterns still need fitting checks on muslin before cutting final fabric.