WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.65k stars 261 forks source link

Mobile apps devtools #796

Open adamziel opened 12 months ago

adamziel commented 12 months ago

Blocknotes proved WordPress can run on mobile devices. Currently it uses iCloud for synchronization. Let's explore a toolchain that enables bundling any WordPress site as a mobile app with a single command.

This issue is to start the discussion and explorations around that specific angle to grow the WordPress ecosystem.

The WAMR and Chicory runtimes could be useful for shipping WASM in mobile apps. Alternatively, the app could bundle a cross-platform runtime like Wasmer – this could enable exporting Playground sites as platform-specific executables in a similar way to what QuickJS-emscripten does.

Pre-compile the WASM for each platform (AOT) would speed up the startup. So could shipping the initial memory snapshot.

Related issues, potential pre-requisites

adamziel commented 2 weeks ago

https://developer.android.com/jetpack/androidx/releases/javascriptengine could help run WASM in mobile apps without a WebView

bgrgicak commented 2 weeks ago

https://developer.android.com/jetpack/androidx/releases/javascriptengine could help run WASM in mobile apps without a WebView

JavascriptEngine looks nice and could be a good fit for Android, but I'm tempted to use a solution that works with both iOS and Android instead of building two.

bgrgicak commented 2 weeks ago

What's our goal? Do we want working apps that can run WordPress and display the HTML, or do we want libraries that allow developers to make requests to WordPress?

adamziel commented 2 weeks ago

Both :-) also, agreed on interop — I'm just sharing what I've learned