WP2Astro
Health Uyari
- License — License: GPL-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Basarisiz
- network request — Outbound network request in assets/admin.js
- rm -rf — Recursive force deletion command in bin/build-zip.sh
- process.env — Environment variable access in dev/check-dist.mjs
- network request — Outbound network request in dev/check-dist.mjs
- rm -rf — Recursive force deletion command in dev/ci-wordpress.sh
- network request — Outbound network request in dev/ci-wordpress.sh
- process.env — Environment variable access in dev/compare.mjs
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Turn a WordPress site into a fast Astro site — same URLs, same look — push it to GitHub and keep it in sync. A WordPress plugin.

WP2Astro
Turn a WordPress site into a fast Astro site — same URLs, same look — push it to GitHub, and keep it in sync.
WP2Astro is a WordPress plugin by Hackers Hostel. It converts the site it runs on into an
Astro project, pushes it to a GitHub repository and keeps that repository up to date as you
publish. You keep writing in WordPress; your visitors get a static site. Free and open source (GPL-2.0-or-later).
Highlights
- Installs like any plugin. No Node.js, terminal or application passwords on your side: upload the zip, open
WP2Astro, click Convert to Astro. - Same URLs. Every post, page, custom post type entry, category and tag keeps its permalink. Old links still work:
changed slugs,?p=123,?page_id=7,?s=searchand/feed/redirect to the right place. - Same look. The theme's CSS, images and fonts are copied, and an AI model rebuilds the header, menu and footer as
an Astro layout from the rendered homepage. - Open models, the AI you already pay for — or none. A local model (Gemma, Llama or Qwen on Ollama, LM Studio,
llama.cpp or vLLM), your ChatGPT plan (Sign in with ChatGPT, no API key), or OpenRouter with one-click
connect, an in-plugin credit balance and Buy credits (open Gemma by default; Claude, GPT and free models).
Without AI you still get a working site. - GitHub in one click. Connect with GitHub's device flow (or a fine-grained token), and the plugin creates the
repository and pushes. - Smart sync. Re-runs push only changed files, removed posts are removed, and files you edit in the repo are
never overwritten. With auto-sync on, the repo updates a couple of minutes after you publish. - SEO kept. Titles and descriptions from Yoast SEO, Rank Math or All in One SEO; canonical and Open Graph tags;
RSS feed, sitemap and robots.txt. - Search. Static full-text search with Pagefind.
- Finish it with your Claude plan. Each repo ships an agent kit (
AGENTS.md,CLAUDE.md, Claude Code skills), so
Claude Code or Codex can polish what the conversion couldn't. - WordPress-native. Help tabs on the dashboard, WP-CLI commands, encrypted secrets, and short job steps that fit
shared hosting.
How it works
WordPress (your server) GitHub Your host
┌───────────────────────────────┐ only changed files ┌──────────────────────┐ ┌──────────────────────┐
│ posts, pages, CPTs → Markdown │ ─────────────────────▶ │ your-site-astro repo │ ─▶ │ npm run build / start│
│ theme CSS, media, SEO meta │ one commit per sync │ (edits are kept) │ │ FlyWP, Netlify, … │
│ AI layout (optional, cached) │ └──────────────────────┘ └──────────────────────┘
└───────────────────────────────┘
Each run converts the whole site again in short steps (driven by the dashboard, WP-Cron or WP-CLI), compares the
result with the repository, and commits only the difference. AI calls are single requests with strict validation and a
deterministic fallback, so a bad answer never breaks a conversion.
Requirements
- WordPress 6.5 or later, PHP 8.0 or later, and an administrator account.
- Optional: a local model server (such as Ollama), a ChatGPT Plus or Pro plan, or an OpenRouter account, for the AI
steps. - Optional: a GitHub account, for a repository and sync instead of a zip.
- To build or serve the generated site: Node.js 22.23.4 or later (on your computer or your host).
Install
- Download
wp2astro.zipfrom the latest release. - In WordPress, go to Plugins → Add New Plugin → Upload Plugin, choose the zip, then Install Now and
Activate Plugin. - Open WP2Astro in the admin menu.
Updates arrive in Dashboard → Updates like any other plugin, from this repository's releases.
Quick start
- AI model (optional) — select Local model and enter your model server's address, select ChatGPT plan and
click Sign in with ChatGPT, select OpenRouter and click Connect OpenRouter, or keep No AI. - GitHub (optional) — click Connect GitHub and enter the code on github.com. Without GitHub you download a
zip. - What to build — SEO, feeds, search, custom post types, agent kit, auto-sync.
- Click Convert to Astro. Later runs become Sync now.
The Getting started guide walks through every step. In WordPress, click Help on the
WP2Astro screen for a short version.
From the command line (and for coding agents):
wp wp2astro convert # convert and push
wp wp2astro convert --no-ai --no-github --zip=./site.zip # zip only
wp wp2astro status # provider, GitHub, recent runs
What you get
src/content/posts|pages|items/ Markdown with frontmatter (items = custom post types)
src/site.json title, menu, terms, archives, feature flags
src/layouts/BaseLayout.astro the theme shell (AI-built or default)
src/components/SeoHead.astro title, description, canonical, Open Graph
src/pages/ permalinks, archives, pagination, feed.xml, sitemap.xml, robots.txt, search
public/theme/ the old theme's CSS, images, fonts
public/wp-content/uploads/ referenced media at their original paths
redirects.json, public/_redirects old WordPress URLs → new ones
server.mjs zero-dependency server for `npm start` (with real 301s)
AGENTS.md, CLAUDE.md, .claude/ agent kit
CONVERSION_REPORT.md anything that needs a look
Deploy
- FlyWP + DigitalOcean: add a Node.js site from the repo; build
npm install && npm run build, startnpm start.
FlyWP's free plan covers one server and one site; the DigitalOcean droplet is paid. - Render: add a Node.js web service from the repo with the same build and start commands.
- Any static host: build
npm run build, publishdist/. Netlify and Cloudflare Pages readpublic/_redirects.
See Deploy the site for what each option redirects.
Documentation
readme.txt is the WordPress.org-format description of the plugin, and .wordpress-org/ holds the plugin directory
icons and banners.
Privacy
WP2Astro only talks to services you set up, and only when you convert, sync or test a connection. There is no
analytics or telemetry, and keys and tokens are encrypted at rest. See
Privacy and external services for exactly what is sent where.
Not converted
Comments, forms, WooCommerce and other features that need a server; sidebar widgets. Custom fields (post meta and
ACF) are exported to frontmatter only when you turn on Custom fields.
WP2Astro vs. WP Astro MCP
WP Astro MCP is an MCP server you run from Claude Code. WP2Astro runs inside
WordPress. Both are open source; pick what fits.
| WP2Astro | WP Astro MCP | |
|---|---|---|
| Setup | Install a plugin | Clone, build, configure an MCP server; WordPress application password |
| Who can run it | Anyone with wp-admin | Developers with Node.js 20+ and Claude Code |
| AI | Optional: local open models, ChatGPT plan, OpenRouter (Gemma, Claude, GPT, free models), or Claude Code via the agent kit | Claude Code session |
| Keeps the theme's look | Yes (theme CSS + AI-built layout) | Uses its own Astro templates |
| Shortcodes | Rendered by WordPress itself; dead ones cleaned by AI | Rule-based handling |
Old URLs, ?p=, changed slugs |
Yes | Redirect files for several hosts |
| SEO plugins, feeds, sitemap, search | Yes | Yes (plus JSON Feed) |
| Custom post types | Yes | Yes (plus ACF fields) |
| Sync | Changed files only, keeps edits made in the repo, auto-sync on publish | Incremental, scheduled or webhooks |
| Credentials | Encrypted in the database | Plain text config file |
| Scale | One site per install | Built for networks of many sites |
Contributing and support
- Contribute: see CONTRIBUTING.md. The local test setup needs no API keys or GitHub account.
- Questions: Q&A discussions.
- Bugs: issues — see SUPPORT.md.
- Security problems: report them privately, as SECURITY.md describes.
License
GPL-2.0-or-later. Free to use. A white-label licence from Hackers Hostel covers shipping it under your own
brand — see White-label.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi