Live data from Hacker News

WordPress WASM

github.com

31–40 of 69 posts

Re: WordPress WASM

#31
post #25

Earlier quoted context omitted.

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/

I'm thinking something a little more consumer focused than wapm. Maybe the tool I'm describing could use wapm.

Consumers don't use CLIs to install things.

Re: WordPress WASM

#33
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!

What kind of download size though?

Re: WordPress WASM

#34

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

This is more to play around and show off themes/plugins or test different PHP versions.

The database also runs on the client in wasm (sqlite).

But it's utterly useless if you want to put a blog online as it only runs locally in the browser and nobody else will see the posts.

Re: WordPress WASM

#35

This could give you a free WordPress website using Cloudflare Pages + workers. If it worked fully of course, which it currently doesn't.

Even then, how would the database state be shared between workers? It's a local sqlite so there is just one in-process instance of it.

Re: WordPress WASM

#38

This could give you a free WordPress website using Cloudflare Pages + workers. If it worked fully of course, which it currently doesn't.

Even then, how would the database state be shared between workers? It's a local sqlite so there is just one in-process instance of it.

Free managed databases exist.

Also cloudflare has D2, which is based on SQLITE, but has yet to launch.

I think it should launch by the end of this year.

Re: WordPress WASM

#40

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

There is no backend: the database itself is SQLite in WASM living in the user's own browser.

This is more of a tech demo and test environment than something that would work as an alternative to server-side WordPress - since if you are using a CMS you generally want the results to be visible to people other than you!

It's very, very cool though.

Post reply on HN