DEV Community

RyanCwynar
RyanCwynar

Posted on • Originally published at ryancwynar.com

How I Built a Tool That Generates Complete Websites in 60 Seconds

Building websites is slow. Even for simple marketing sites, you're looking at hours of setup. I wanted to eliminate all of that.

So I built new-site.sh—a single bash command that takes any existing website and generates a modern Next.js replacement in about 60 seconds.

The Problem I Was Solving

I run a small web consulting business. The old workflow for demoing redesigns took 2-4 hours per prospect.

The Solution: One Command

./scripts/new-site.sh walton-dental https://waltondental.com
Enter fullscreen mode Exit fullscreen mode

The script:

  1. Scrapes the target site — Puppeteer grabs all text content and downloads images
  2. Creates a Next.js app — TypeScript, Tailwind CSS, static export pre-configured
  3. Generates components — Hero, services grid, about section, contact form, footer
  4. Deploys automatically — Creates a GitHub repo and pushes, triggering Pages build

Sixty seconds later: ryancwynar.github.io/walton-dental is live.

Under the Hood

Content Scraping

The scraper uses Puppeteer in headless mode. It extracts all visible text, images, and contact info.

Project Scaffolding

A minimal Next.js 14 skeleton lives in my repo. The script copies it, then injects scraped content.

GitHub Deployment

GitHub CLI handles repo creation. A pre-configured GitHub Action runs on push, building and deploying to Pages.

Results

  • Time to create a prospect mockup: ~60 seconds (down from 2-4 hours)
  • Sites generated in first month: 20+
  • Conversion rate on speculatively sent mockups: ~15%

If you want help building something similar—or just want to see what a modern version of your site could look like—reach out.

Top comments (0)