New Prototype Runs WordPress in the Browser with No PHP Server

New Prototype Runs WordPress in the Browser with No PHP Server

Posted by WP Tavern on September 23, 2022 at 9:44 pm
kitty kitty CATegory News
Automattic-sponsored core contributor Adam Zielinski published a demo today of WordPress running in the browser with no PHP server. This is accomplished using WebAssembly (WASM), a format for a stack-based virtual machine that enables deployment on the web for client and server applications, and Emscripten, an open source compiler toolchain to WebAssembly. It’s not stable yet but the concept is intriguing, as it opens up a world of potential use cases. image source: demo from wordpress-wasm repo The project is available on GitHub and Zielinski briefly explained how it works: PHP is compiled to WASM with Emscripten WordPress is packaged into a data bundle A service worker traps HTTP requests and re-routes them to WordPress The project uses the wp-db-sqlite plugin to run WordPress with SQLite, as WASM doesn’t support MySQL. Zielinski detailed some possible applications for running WordPress in the browser, which he said could “transform learning, contributing, and using WordPress:”  making WordPress handbook code samples runeditable (early preview) providing an in-browser IDE to assist new contributors without having without having to set up a local development environment (early preview) creating an in-browser IDE for testing code on different WordPress, PHP, and Gutenberg versions scaling WordPress up by spinning up many tiny self-contained WASM instances directly on…

…Full post on WP Tavern
Read Full

Similar Posts

Leave a Reply