{"id":51124396,"url":"https://github.com/f/to-wordpress","last_synced_at":"2026-06-25T06:01:05.593Z","repository":{"id":352953930,"uuid":"1217288330","full_name":"f/to-wordpress","owner":"f","description":"Migrate anything text-shaped to WordPress — Jekyll, Hugo, Astro, Docusaurus, MkDocs, WXR, Medium, Substack, Word docs, spreadsheets, PDFs, EPUBs, READMEs. Powered by GitHub Copilot CLI + Ink TUI.","archived":false,"fork":false,"pushed_at":"2026-04-21T22:00:55.000Z","size":382,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T22:12:43.078Z","etag":null,"topics":["astro","cli","copilot","docusaurus","docx","gatsby","hugo","importer","jekyll","markdown","medium","migration","mkdocs","pdf","substack","tui","wordpress","wp-cli","wp-env","wxr"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/to-wordpress","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T18:29:10.000Z","updated_at":"2026-04-21T22:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/f/to-wordpress","commit_stats":null,"previous_names":["f/to-wordpress"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/f/to-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fto-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fto-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fto-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fto-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f","download_url":"https://codeload.github.com/f/to-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f%2Fto-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34761847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","cli","copilot","docusaurus","docx","gatsby","hugo","importer","jekyll","markdown","medium","migration","mkdocs","pdf","substack","tui","wordpress","wp-cli","wp-env","wxr"],"created_at":"2026-06-25T06:01:04.846Z","updated_at":"2026-06-25T06:01:05.582Z","avatar_url":"https://github.com/f.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./assets/logo.png\" alt=\"to-wordpress\" width=\"720\" /\u003e\n\n**Convert static sites, exports, and document folders into a working WordPress site.**\n\n[![npm](https://img.shields.io/npm/v/to-wordpress.svg?logo=npm\u0026labelColor=222)](https://www.npmjs.com/package/to-wordpress)\n[![downloads](https://img.shields.io/npm/dm/to-wordpress.svg?labelColor=222)](https://www.npmjs.com/package/to-wordpress)\n[![license](https://img.shields.io/npm/l/to-wordpress.svg?labelColor=222)](./LICENSE)\n[![node](https://img.shields.io/node/v/to-wordpress.svg?logo=node.js\u0026logoColor=white\u0026labelColor=222)](https://nodejs.org)\n\n\u003c/div\u003e\n\n---\n\n`to-wordpress` is an AI-assisted WordPress site builder with one aim:\n**one command to turn an existing source into a working WordPress site**.\n\nIt uses the expert WordPress guidance from\n[`WordPress/agent-skills`](https://github.com/WordPress/agent-skills/)\nunder the hood, but wraps it in fully automated recipes:\ndetect the source, plan the move, generate the theme/plugin, import the\ncontent, verify the result, fix what failed, and leave a tune-up plan if\nyou want more polish.\n\nPoint it at a Jekyll, Hugo, Astro, WXR, Medium, Substack, Markdown,\nDOCX, XLSX, PDF, EPUB, README, or plain text source and it builds a local\nWordPress site with:\n\n- a classic PHP theme,\n- a site plugin,\n- imported posts/pages/media,\n- preserved URLs where possible,\n- shortcode ports for reusable source snippets,\n- verification and endpoint checks,\n- and a post-run tuning loop for final polish.\n\nIt runs WordPress locally with [`@wordpress/env`](https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/)\nand uses one of three agent CLIs for the creative parts:\n\n- `claude` (default),\n- `copilot`,\n- `codex`.\n\n## Screenshots\n\n![to-wordpress running a migration](./assets/screenshot.png)\n\n## Install\n\n```bash\nnpx to-wordpress ./my-site\n```\n\nOr install globally:\n\n```bash\nnpm install -g to-wordpress\nto-wordpress ./my-site\n```\n\n## Requirements\n\n- Node.js 20+\n- Docker\n- One agent CLI:\n  - Claude Code: `claude`\n  - GitHub Copilot CLI: `copilot`\n  - OpenAI Codex CLI: `codex`\n\nThe host machine does not need PHP, Ruby, or wp-cli installed.\n\n## Usage\n\n```bash\n# default agent: Claude Code\nnpx to-wordpress ./my-jekyll-site\n\n# use GitHub Copilot CLI\nnpx to-wordpress ./my-site --agent copilot\n\n# use Codex\nnpx to-wordpress ./my-site --agent codex\n\n# run without an agent, using deterministic fallbacks where available\nnpx to-wordpress ./my-site --skip-copilot\n```\n\nThe result is written inside the source folder:\n\n```text\nWORDPRESS_MIGRATION.md\nWORDPRESS_MIGRATION/\n  theme/                generated classic theme\n  plugin/               generated site plugin\n  content/              normalized post/page markdown\n  media/                copied media assets\n  rendered/             source prerender reference\n  import-manifest.json\n  redirects.json\n  verify-report.json\n  test-fix-report.json\n  tune-tasks.md         optional post-run repair plan\n```\n\nOpen the generated WordPress site at:\n\n```text\nhttp://localhost:8888\n```\n\n## Agents\n\nChoose an agent with `--agent` or `TOWP_AGENT`.\n\n| Agent | Flag | Default model |\n|---|---|---|\n| Claude Code | `--agent claude` | `claude-opus-4-7`, effort `high` |\n| GitHub Copilot CLI | `--agent copilot` | `claude-opus-4.7`, effort `high` |\n| OpenAI Codex CLI | `--agent codex` | `gpt-5.5-codex`, effort `high` |\n\nEnvironment overrides:\n\n```bash\nCLAUDE_MODEL=claude-opus-4-7 CLAUDE_EFFORT=high npx to-wordpress .\nCOPILOT_MODEL=claude-opus-4.7 COPILOT_EFFORT=high npx to-wordpress . --agent copilot\nCODEX_MODEL=gpt-5.5-codex CODEX_EFFORT=high npx to-wordpress . --agent codex\n```\n\n## What it does\n\nThe pipeline is:\n\n1. **Detect** the source type and content structure.\n2. **Plan** the site build using CLI parameters and detected defaults.\n3. **Boot** a local WordPress with `wp-env`.\n4. **Theme** the site as a classic PHP WordPress theme.\n5. **Normalize** posts/pages/media into a canonical import format.\n6. **Plugin** site-specific behavior: CPTs, taxonomies, shortcodes,\n   comments, analytics, redirects, options, and custom endpoints.\n7. **Import** content and media with `wp eval-file`.\n8. **Verify** post counts, pages, menu URLs, homepage links, titles, and\n   HTML error markers.\n9. **Testfix** important endpoints and retry fixes when needed.\n10. **Tune the Press** after success: type remaining issues, get a repair\n    plan, press `Y` to let the agent apply it.\n\n![Tune the Press post-run flow](./assets/tune-screenshot.png)\n\nMost phases run through an `attempt → test → fix` loop. If a phase fails,\nthe selected agent gets the error and recent logs, then attempts a\nsurgical repair.\n\n## Supported sources\n\n- Jekyll\n- Hugo\n- Eleventy\n- Astro\n- Gatsby\n- Next.js\n- Hexo\n- Docusaurus\n- MkDocs\n- WordPress WXR\n- Ghost JSON\n- Medium exports\n- Substack exports\n- Markdown folders\n- HTML folders\n- DOCX / RTF folders\n- XLSX / CSV / TSV files\n- PDF folders\n- EPUB books\n- README / GitHub repository docs\n- Plain text folders\n\nJekyll `_plugins/*.rb` files are read and passed to the plugin phase so\ncustom generators and endpoints, such as `/llm/...` pages or category\ngenerators, can be recreated in WordPress.\n\n## CLI\n\n```text\nUsage: to-wordpress [options] [source]\n\nOptions:\n  --agent \u003cclaude|copilot|codex\u003e\n  --fresh\n  --branch \u003cname\u003e\n  --no-git\n  --skip-boot\n  --skip-copilot\n  -y, --yes\n  --only \u003cphase\u003e\n  --from \u003cphase\u003e\n  --until \u003cphase\u003e\n  --max-attempts \u003cn\u003e\n  --max-fix-passes \u003cn\u003e\n  --fail-strategy \u003ccontinue|skip|abort\u003e\n\nPlan options:\n  --permalinks \u003ckeep|default\u003e\n  --cpts \u003call|none\u003e\n  --no-redirects\n  --front-page \u003cslug\u003e\n  --blog-index \u003cslug\u003e\n  --privacy-page \u003cslug\u003e\n  --admin-user \u003cname\u003e\n  --admin-password \u003cpass\u003e\n  --admin-email \u003cemail\u003e\n```\n\nExamples:\n\n```bash\n# run only through normalization\nnpx to-wordpress ./site --until normalize\n\n# rerun from theme with an existing wp-env\nnpx to-wordpress ./site --from theme --skip-boot\n\n# CI-style non-interactive run\nnpx to-wordpress ./site -y --fail-strategy abort\n```\n\n## Development\n\n```bash\ngit clone https://github.com/f/to-wordpress\ncd to-wordpress\nnpm install\nnpm run typecheck\nnpm test\nnpm run build\n```\n\nLive agent smoke test:\n\n```bash\nnpx tsx test/agents-live.test.ts\n```\n\nProject layout:\n\n```text\nsrc/agents/     agent adapters: claude, copilot, codex\nsrc/detectors/  source detectors\nsrc/phases/     site-building phases and retry loop\nsrc/prompts/    agent prompts\nsrc/tui/        Ink UI\nsrc/wp/         wp-env / wp-cli helpers\n```\n\n## Contributing\n\nIssues and PRs are welcome.\n\nThis project is currently tested in real-world use primarily against\n**Jekyll** sites. The other detectors and conversion paths are implemented,\nbut they need more real migrations, fixtures, and verification feedback.\n\nUseful contributions:\n\n- new detectors,\n- fixtures and test sites for non-Jekyll sources,\n- stronger verification rules,\n- better prompts for specific frameworks,\n- new agent adapters,\n- real-world migration bug reports.\n\n## License\n\nMIT © Fatih Kadir Akın\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff%2Fto-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff%2Fto-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff%2Fto-wordpress/lists"}