HostlessWP
Open source · early preview v0.1

Run WordPress on Cloudflare Workers

Free, faster, more secure.

One command moves your running site, plugins, theme and database included. No server, no rewrite.

$npx hostlesswp
Open the live demo →

Demo login demo / demo

Independent open-source project, not by Cloudflare.

36 seconds of the live demo: a real WordPress with WooCommerce that resets every 3 hours.

What the command does

Run it where wp-config.php lives. It explains each step first and never touches your current site.

  1. Checks your site and plugins
  2. Connects your database through Hyperdrive
  3. Deploys a copy to a test address
$ npx hostlesswp ┌ hostlesswp v0.1.0 Move your WordPress site to Cloudflare Workers ◇ Connected to the database ◇ Active plugins (2) │ ✔ WooCommerce │ ? hello not in the tested list yet ◆ How should Cloudflare reach your database? │ ● Over the internet (SSL) │ ○ Through a Cloudflare Tunnel from this server ◇ Database is in Virginia Beach, US: the Worker will run near aws:us-east-1 ◇ Packaged: 2 code bundles, 3877 static files (112.0 MB) ◇ Precompiled 1711 PHP scripts ◇ Your site is live on Workers: HTTP 200 └ Test it: https://wp-example.you.workers.dev

How it runs

PHP 8.3 compiled to WebAssembly, inside a Worker. WordPress core is not modified.

VisitorCached pages skip PHP entirely
→
Worker running WordPressPHP 8.3 with OPcache, placed next to your database
→
Your MySQLThrough Hyperdrive, over SSL or a Tunnel

Placement makes it fast

hostlesswp finds your database and runs the Worker next to it. Core home page, PHP time per request, database in Virginia.

Worker near the visitor7.7 s
Next to the database (hostlesswp)1.2 s
Direct connection next0.07 s

Works today

The 30 most-installed plugins load and work, including a real WooCommerce checkout tested end to end.

  • WooCommerce checkout
  • Elementor
  • Yoast SEO
  • Block editor
  • Admin and logins
  • REST API
  • Comments and search
  • Media uploads to R2 / S3
  • Page cache
  • WP-Cron
  • Email over SMTP
  • curl and sessions

Not yet Multisite · installing plugins from the admin · Imagick

Questions

Can WordPress really run on Cloudflare Workers?

Yes. Workers have no PHP of their own, so HostlessWP runs PHP 8.3 compiled to WebAssembly inside the Worker and connects it to your MySQL through Hyperdrive. WordPress core is not modified. The longer answer.

Is it a static export?

No. Real PHP runs for every request that is not answered from the page cache, so checkout, comments, search, forms and logins keep working. See static export vs dynamic WordPress.

Does it change my current site?

No. hostlesswp deploys a copy to a workers.dev test address. Your current host keeps serving your domain until you add the domain to the Worker yourself.

What do I need?

A Cloudflare account, MySQL with SSL, an S3-compatible bucket such as R2, and Node.js 20+. hostlesswp checks each one. Details.

What does it cost?

hostlesswp is free and open source (GPL-2.0-or-later). The Workers Free plan runs a site; Workers Paid ($5/month) raises the daily limits. What the free tiers cover.

How do I go back?

Point your domain back to your old host. Your database never moved, so nothing needs to be copied back.

Try it on a copy of your site

Nothing changes on your current host. Don't like it? Delete the Worker.