Skill Detail

WordPress Playground WebAssembly Runtime for In-Browser WordPress

WordPress Playground runs a full WordPress instance entirely in the browser using WebAssembly-compiled PHP. It enables zero-setup WordPress testing, plugin previews, and interactive demos without any server infrastructure.

WordPress & CMSMulti-Framework
WordPress & CMS Multi-Framework Security Reviewed
Tool match: wordpress-playground ⭐ 1.9k GitHub stars ⬇ 51.6k/wk npm GPL-2.0 license
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill wordpress-playground-wasm-runtime Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Install & setup
npm install -g @wp-playground/cli
Author
WordPress
Last updated
Apr 1, 2026
Quick brief

WordPress Playground is an official WordPress project that compiles PHP to WebAssembly, enabling a complete WordPress installation to run directly in a web browser with no server required. This technology powers instant WordPress demos, plugin testing environments, and interactive learning experiences.

How it works

What this skill actually does

The @wp-playground/client npm package provides a JavaScript API for embedding WordPress Playground in any web application via iframes. Developers can programmatically install plugins, activate themes, configure WordPress settings, and execute PHP codeβ€”all from JavaScript. The blueprint system allows declarative configuration of WordPress environments with specific PHP versions, WordPress versions, plugins, and themes.

A skill built around WordPress Playground enables agents to spin up disposable WordPress instances for testing plugin compatibility, previewing theme changes, validating WP-CLI commands, and running PHPUnit tests in isolation. The CLI tool (wp-playground) supports local development with auto-reload, making it ideal for rapid iteration on WordPress projects.

Key capabilities include: running PHP 7.0 through 8.4 via WebAssembly, mounting local plugin and theme directories, executing WP-CLI commands within the sandboxed environment, networking via a service worker proxy, and persisting data across sessions using browser storage or the filesystem. The project supports both browser and Node.js runtimes.

Integration points include GitHub Actions for automated PR previews (via the wordpress-playground action), embedding in documentation sites for live code examples, and programmatic testing of WordPress plugins before deployment. The API supports steps like installPlugin, activatePlugin, login, importWxr, and arbitrary PHP execution.