GithubHelp home page GithubHelp logo

westerndeal / wordpress-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wordpress/wordpress-playground

0.0 0.0 0.0 187.1 MB

Run WordPress in the browser thanks to WebAssembly magic

Home Page: https://developer.wordpress.org/playground/

License: Apache License 2.0

JavaScript 55.47% Python 0.01% C 5.39% PHP 0.06% TypeScript 2.76% CSS 33.33% Makefile 0.08% HTML 0.47% CMake 0.06% Dockerfile 0.17% Roff 0.05% SCSS 2.16%

wordpress-playground's Introduction

WordPress Playground

Project Page | Live demo | Documentation and API Reference

WordPress Playground is an experimental in-browser WordPress that runs without a PHP server thanks to the magic of WebAssembly.

Why is WordPress Playground useful?

WordPress Playground is a building block that can power apps like:

  • Runnable code snippets in your documentation or course
  • Plugin and theme demos in a private WordPress instance where the user is already logged in as an admin
  • Easily switching PHP and WordPress version when testing
  • Replaying and fixing the failed CI tests right in the browser

See the WordPress.org announcement post to learn more about the vision.

Getting started

WordPress Playground has a live demo available.

You can embed WordPress Playground in your project via an <iframe> – find out how in the documentation. Note the embed is experimental and may break or change without a warning.

You also can run WordPress Playground locally as follows:

git clone https://github.com/WordPress/wordpress-playground
cd wordpress-playground
npm install
npm run dev

A browser should open and take you to your very own client-side WordPress at http://127.0.0.1:8777/wordpress.html!

From here, the documentation will help you learn how WordPress Playground works and how to use it to build amazing things!

Backwards compatibility

This experimental software may break or change without a warning. Releasing a stable API is an important future milestone that will be reached once the codebase is mature enough.

Prior art

WordPress Playground forked the original PHP to WebAssembly build published in https://github.com/oraoto/pib and modified later in https://github.com/seanmorris/php-wasm.

Another strong inspiration was the Drupal in the browser demo which proved you can run non-trivial PHP software in the browser.

A worthy mention is Wasm Labs’s closed-source WordPress in the browser shared before this project was first published. There is no public repository available, but their technical overview gives a breakdown of the technical decisions that project took. WordPress Playground draws inspiration from the same PHP in the browser projects and makes similar technical choices.

Contributing

WordPress Playground is an ambitious project in its early days. If the feature you need is missing, you are more than welcome to start a discussion, open an issue, and even propose a Pull Request to implement it.

wordpress-playground's People

Contributors

adamziel avatar ahmadawais avatar dd32 avatar eliot-akira avatar gziolo avatar johnkennyuk avatar sejas avatar soean avatar stevendufresne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.