wordpress-playground VS htmf

Compare wordpress-playground vs htmf and see what are their differences.

wordpress-playground

Run WordPress in the browser via WebAssembly PHP (by WordPress)

htmf

A minimalist partial html swapping library similar to HTMX and other libraries which create an MPA app and enhances it with a focus on HTML forms. (by jon49)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
wordpress-playground htmf
22 4
1,527 21
1.4% -
9.7 7.6
2 days ago 5 months ago
JavaScript JavaScript
GNU General Public License v3.0 only MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

wordpress-playground

Posts with mentions or reviews of wordpress-playground. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-15.
  • Things you forgot because of React
    14 projects | news.ycombinator.com | 15 Aug 2023
    Sorry friend, WordPress already beat you to it: https://github.com/WordPress/wordpress-playground
  • WordPress Playground: A WordPress that runs entirely in the browser
    1 project | /r/hackernews | 16 Jul 2023
    1 project | /r/patient_hackernews | 16 Jul 2023
  • WordPress Playground: A WordPress that runs in the browser
    9 projects | news.ycombinator.com | 14 Jul 2023
    > Is there a reason why using OPFS directly from SQLite doesn't work?

    I'm guessing this means using SQLite WASM's built-in OPFS integration as described in these articles:

    - sqlite3 WebAssembly documentation - Persistent Storage Options: OPFS - https://sqlite.org/wasm/doc/trunk/persistence.md#opfs

    - SQLite Wasm in the browser backed by the Origin Private File System - https://developer.chrome.com/blog/sqlite-wasm-in-the-browser...

    Within the Playground, SQLite interacts with the database file in MEMFS only, and the Playground coordinates the syncing from MEMFS to OPFS.

    https://github.com/WordPress/wordpress-playground/tree/trunk...

    The reason for this, I believe, is that the primary use case is/was to have the entire file system in memory, including SQLite's database file. This was the original implementation, and is still the default behavior. Persistence was later added as an optional feature.

    The good news is that browser support for OPFS seems to be getting better. From the SQLite docs:

      As of March 2023 the following browsers are known to have the necessary APIs:
  • WordPress Playground
    3 projects | dev.to | 27 Jun 2023
    One of the most exciting things at WordCamp Europe 2023 for me was discovering how far along the WordPress Playground project is. If you haven’t heard of the playground before, it’s a full version of WordPress, running directly in your browser!
  • WCGI: WebAssembly and CGI
    1 project | news.ycombinator.com | 6 Apr 2023
    WordPress has an official WebAssembly build for the browser and Node.js: https://developer.wordpress.org/playground https://github.com/WordPress/wordpress-playground

    (Disclosure: I'm the creator)

  • WordPress testing official SQLite Support
    5 projects | news.ycombinator.com | 16 Dec 2022
    I love the work going on there at WasmLabs, especially enjoying the articles with in-depth technical explorations.

    After the article about running WordPress in the browser was published, there's a new project called WordPress Playground which is gradually preparing NPM or Composer packages to make it easier for people to run it.

    https://github.com/WordPress/wordpress-playground/

    They've been doing very detailed work, like making some patches to PHP and SQLite for improved compatibility with Emscripten, etc. It seems there's a lot of overlap with what WasmLabs has achieved and probably have continued to develop further. Perhaps there's an opportunity for collaboration.

  • WordPress WASM
    1 project | /r/patient_hackernews | 25 Sep 2022
    1 project | /r/hackernews | 25 Sep 2022
  • Hacker News top posts: Sep 25, 2022
    4 projects | /r/hackerdigest | 25 Sep 2022
    WordPress WASM\ (28 comments)

htmf

Posts with mentions or reviews of htmf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-12.
  • HTML First – Six principles for building simple, maintainable, web software
    13 projects | news.ycombinator.com | 12 Nov 2023
    I've successfully used this pattern (HTMX hypermedia style) to create an offline-first web app SPA[^1]. One of the pages is pretty dynamic and I wasn't sure if I would need a traditional front end library to work with it. But, nope, hypermedia to the win, it worked fine without a front end framework.

    To build it I used my own library called HTMF[^2]. I started out using mpa-enhancer[^3] but found that that pattern is a little to janky sometimes. I think reloading a page every time on every interaction uses too many resources for a browser especially when you use a phone that doesn't have as much power as a laptop.

    But overall I find the pattern very easy to use and keeps the complexity down.

    I think some of the issues with traditional SPAs is that they have a lot of state and state is nonlinear in complexity. But using templating systems makes the complexity more linear in nature.

    Also, I find libraries like React to be overly complex for what it does, see above. The way React works is just odd and counter intuitive. All for problems that are easy to solve. I do think there are places for a React-like library is needed but those are for websites that are inherently highly state-based. But most websites aren't state-based even ones that appear to be state-based at first.

    The websites I work on are usually just forms and forms are pretty powerful and can get you a long ways before you need to go outside of that paradigm.

    [^1]: https://github.com/jon49/Soccer

    [^2]: https://github.com/jon49/htmf

    [^3]: https://github.com/jon49/mpa-enhancer

  • Things you forgot because of React
    14 projects | news.ycombinator.com | 15 Aug 2023
  • Htmx, WebAssembly, Rust, ServiceWorker Proof of Concept
    12 projects | news.ycombinator.com | 16 Oct 2022
  • Ask HN: Getting tired of complexity in web development
    6 projects | news.ycombinator.com | 8 Oct 2022
    I wrote a js lib similar to HTMX, which I call HTMF[1]. Unlike HTMX I try to stay as close to the metal of the current semantics as possible. So, all interactions are based off of forms. I also tried to keep the wording similar to HTML/JS semantics. It's pretty small lib but pretty amazing how far I can get with it. These days I mainly build offline-first apps with it. But I built it in such a way that it can easily be a progressive enhancement to an MPA app.

    [1]: https://github.com/jon49/htmf

What are some alternatives?

When comparing wordpress-playground and htmf you can also consider the following projects:

marmot - A distributed SQLite replicator built on top of NATS

Soccer - Tracker for players play time

dod - DOS on dope. The last MVC Web framework you'll ever need

yew-beyond-hello-world - yew rust tutorial

webrcade - Feed-driven gaming

submillisecond - A lunatic web framework

wapm-cli - 📦 WebAssembly Package Manager (CLI)

WeightTracker - Back end for saving data for weight tracker.

wp-sqlite-db - A single file drop-in for using a SQLite database with WordPress. Based on the original SQLite Integration plugin.

MealPlanner - A Meal Planner to figure out what we are going to eat each week. Written with Razor Pages and HTMF. https://meals.jnyman.com/

Platform - Qbix Platform for powering Social Apps (http://qbix.com/platform)

mpa-enhancer - Minimalist JavaScript to make your MPA work that much better