Run Drupal on the edge in your browser with Web Assembly.
This utilizes php-wasm and php-cgi-wasm by Sean Morris.
Want to learn more? Catch my session Running Drupal on the Edge with Web Assembly at DrupalCon Barcelona.
PHP has been compiled into Web Assembly.
php-wasm
package allows us to execute PHP code in the browser.php-cgi-wasm
package allows us to execute PHP code in a service worker, which emulates CGI (think PHP-FPM), and allows serving requests to and from Drupal.Using DDEV you can build and run the playground locally.
ddev start
ddev make build
Visit https://wasm-drupal.ddev.site
Currently this requires NPM, PHP (with Composer) on the host machine and Docker.
make build
make serve
Open http://localhost
Click GO, wait for environment to launch.
Log in with
Visit chrome://serviceworker-internals/
vHosts
to have "Drupal core" and "Drupal CMS" options. #12