Convert WordPress sites to Astro projects. Powered by AI agents.
| Package | Description |
|---|---|
@wp2astro/convert |
CLI that fetches WP content via REST API, transforms to Markdown, and scaffolds an Astro 6 + Tailwind v4 project |
web |
Marketing site at wp2astro.com |
# Convert a WordPress site
npx @wp2astro/convert convert --url https://myblog.com
# Convert + extract design data for AI styling
npx @wp2astro/convert convert --url https://myblog.com --scaffoldWP2Astro is designed to work with AI coding agents like Claude Code:
- Convert — run
npx -y @wp2astro/convert convert --url <site> --scaffoldto produce an Astro project with content + a design prompt - Style — paste the scaffold prompt into Claude Code and run
/elite-styleto generate styled components matching the original site - Deploy —
pnpm buildand push to any static host
See the CLI README for full docs.
pnpm install # Install all dependencies
pnpm test # Run CLI tests