Live data from Hacker News

WordPress WASM

github.com

21–30 of 69 posts

Re: WordPress WASM

#21
post #3

What does it even mean to run PHP in the browser... Is this supposed to be some sort of replacement for server-side PHP?

First thing that came to mind is that I could load this up on a static host, saving content in a local SQLite (or even in SQLite in S3), make changes and then export the results to S3 as static HTML files. All without ever running any PHP/SQL host. One could technically upload this to GitHub Pages. Endless possibilities!

I was thinking the exact same, but with Cloudflare Pages in order to use the WAF to see if it may help thwart any PHP-related vulns

Re: WordPress WASM

#22

WASM may offer the most secure-by-default installations of Wordpress to ever exist. This is seriously impressive -- I think we're getting a glimpse of a world where people can really run server side apps on their computers easily. Add an app store and the web will have finished becoming the platform that everyone has been suspecting it is.

So from user perspective, they still have to run it like they would run local web server but more secure? It's improvement security wise, though it's still hustle for app distribution right?

Yup, that's why I put in that last part:

> Add an app store and the web will have finished becoming the platform that everyone has been suspecting it is.

Basically what we need now is a user-side "app store" that downloads apps packaged as WASM and runs them!

Honestly this setup could probably work today, use something like Tauri[0] to build a simple app-store like experience. When someone installs an app, this thing downloads the WASM, and runs it with the necessary linked modules (local file access, network).

Then, you can spin up a new window that is the new application, and keep it running/do whatever else users would expect. I mean you could even launch the apps standalone/separate processes as well so that people can close the original one (or put it to tray, whatever).

This could easily be like snap/flatpak but even better in some ways. Browser technology is almost assured to always be moving forward and getting more powerful/impressive because of the large interests involved.

Re: WordPress WASM

#25

Earlier quoted context omitted.

So from user perspective, they still have to run it like they would run local web server but more secure? It's improvement security wise, though it's still hustle for app distribution right?

Yup, that's why I put in that last part: > Add an app store and the web will have finished becoming the platform that everyone has been suspecting it is. Basically what we need now is a user-side "app store" that downloads apps packaged as WASM and runs them! Honestly this setup could probably work today, use something like Tauri[0] to build a simple app-store like experience. When someone installs an app, this thing…

https://wapm.io/

Re: WordPress WASM

#26
I'm too dumb to understand how would this work. Can anyone explain please. Wordpress server side is where all the magic happens data is stored and retrieved from the database. How would it look like in wasm? Will the wasm communicate with database? If so wouldn't it expose db credentials? What would the backend look like? I have so many questions

Re: WordPress WASM

#27
A very very interesting addition would be to add the ability to fetch data from a remote WP website's APIs.

In this way the server could serve a cached page on first request, then the wasm file would be downloaded. From then the whole rendering could be client side, while still fetching data from the remote DB. This could significantly speed up things for users.

Re: WordPress WASM

#30

I think this is a really compelling pattern for converting traditional server rendered apps to be offline enabled (or choosing to build new ones this way). I have seen similar examples using Python. Initially these are more of a “backed data” type app, with no offline public writes. [0] The next step is to have local/offline SQLite to server syncing, enabling writes while offline that are synced back to the server on…

I really like this idea. Distributed, loosely-coupled content creation & management that syncs up with "everyone else" on a time scale of minutes or hours.
Post reply on HN