DEV Community

Purushotam Adhikari
Purushotam Adhikari

Posted on

WordPress Playground: Run WordPress Instantly in Your Browser — No Setup Required

What Is WordPress Playground?

If you've ever set up a local WordPress environment, you know the drill: install MAMP or LocalWP, configure PHP, set up a database, troubleshoot port conflicts... and then you can start working.

WordPress Playground throws all of that out the window.

It's a platform that runs a complete WordPress instance directly in your browser — or on your device — with zero traditional infrastructure. No web host. No server. No local install. Just WordPress, instantly.

Under the hood, it uses WebAssembly (WASM) to compile PHP and run it natively in the browser environment. The result is a fully functional WordPress site that lives entirely client-side.


How Do You Run It?

The simplest way? Just visit playground.wordpress.net and you have a live WordPress site in seconds.

But it goes much deeper than that. WordPress Playground runs across multiple environments:

  • Web browsers — embedded via a simple <iframe> tag
  • Node.js — for server-side automation and scripting
  • VS Code — as a dedicated extension
  • Mobile apps — works offline, even without a network signal

That last point is worth repeating: you can run WordPress on a mobile device with no internet connection. That's a genuinely novel capability.


What Can You Actually Do With It?

Building

WordPress Playground isn't just a sandbox — it's a real development environment:

  • Build block themes directly in the browser and save them to GitHub
  • Integrate with OpenAI for AI-assisted development workflows
  • Chain it with CLI apps for automated setup pipelines

Testing & QA

This is where Playground really earns its place in a developer's toolkit:

Sandboxing
Clone your live site into Playground to experiment freely. Break things, test wild ideas, roll back instantly — all without touching production.

Version Matrix Testing
Need to know if your plugin works on WordPress 6.3 with PHP 7.4? And also on WordPress 6.6 with PHP 8.2? Playground lets you spin up any combination and test it immediately.

GitHub Pull Request Previews
One of the killer features: you can preview a pull request as a live WordPress site, directly in the browser. Code reviewers can click around the changes instead of just reading diffs. This is a game-changer for plugin and theme development teams.

Showcasing & Distributing

Interactive Product Demos
Instead of screenshots or videos, embed a live, interactive WordPress demo on your plugin's landing page. Let potential customers install your plugin and try it themselves before they buy.

Blueprints
Blueprints are JSON-based site templates that define a pre-configured WordPress environment — specific plugins activated, settings configured, demo content loaded. Share a Blueprint URL and anyone can launch an identical environment in one click. Perfect for onboarding, tutorials, or support.

App Store Packaging
Yes, really. You can package a WordPress Playground-powered site as a native mobile app and distribute it through the App Store. The portability here is genuinely wild.


The Developer API

Playground is explicitly designed to be "a platform for building platforms."

Embedding it in your own application is as simple as:

<iframe src="https://playground.wordpress.net/"></iframe>
Enter fullscreen mode Exit fullscreen mode

But the real power comes from the JavaScript API, which lets you control the environment programmatically — install plugins, run WP-CLI commands, import content, configure settings, and more, all from outside the iframe.

import { startPlaygroundWeb } from '@wp-playground/client';

const client = await startPlaygroundWeb({
  iframe: document.getElementById('wp-playground'),
  remoteUrl: 'https://playground.wordpress.net/remote.html',
});

await client.installPlugin(pluginZipFile);
await client.installTheme(themeZipFile);
Enter fullscreen mode Exit fullscreen mode

This API is what makes Playground so powerful for product demos, automated testing pipelines, and educational tools.


Who Is This For?

Persona Use Case
Plugin/Theme Developers Rapid iteration, cross-version testing, PR previews
Product Creators Interactive demos without requiring installation
WordPress Educators Risk-free learning environments for students
Support Teams Reproduce user issues in isolated, shareable environments
Contributors Test core patches and PRs without a local dev setup

How It Compares to Traditional Local Dev

Feature LocalWP / MAMP WordPress Playground
Setup time 5–20 minutes < 5 seconds
Requires installation Yes No
Works offline Yes (after setup) Yes (natively)
Embeddable in a webpage No Yes
Shareable environments Difficult One URL
Persistent across sessions Yes Optional
Full production parity High Moderate

The trade-off is persistence — Playground environments are temporary by default (though Blueprints help with reproducibility). For long-running development work, a traditional local setup still makes sense. For everything else, Playground is often faster.


Open Source, Community Maintained

WordPress Playground is fully open source and lives in the WordPress GitHub organization. It's maintained by contributors from Automattic and the broader WordPress community — so it's built with the same ethos as WordPress itself.

If you're curious about the internals, the repo is at github.com/WordPress/wordpress-playground. The WASM-based PHP port alone is a fascinating piece of engineering worth exploring.


Getting Started

  1. Try it now: playground.wordpress.net
  2. Read the docs: wordpress.github.io/wordpress-playground
  3. Explore Blueprints: Check the Blueprint Builder to create shareable environments
  4. Install the VS Code extension: Search "WordPress Playground" in the VS Code marketplace

Final Thoughts

WordPress Playground represents a genuine shift in how we think about WordPress as a software delivery mechanism. It's not just a developer convenience — it's a new distribution model, a new testing paradigm, and a new way to demo and share WordPress-powered experiences.

Whether you're building plugins, teaching WordPress, running QA, or just want to try a new theme without consequences, Playground removes the friction that has always stood between you and a working WordPress site.

Give it a spin. You'll have a live WordPress site before you finish reading this sentence.


Top comments (0)