I’m Alireza Alavi, a software engineer by trade.

https://alavi.me/

  • 26 Posts
  • 398 Comments
Joined 3 years ago
Aquileo | cake
Cake day: June 25th, 2023

Aquileo | help-circle










  • I think I should clarify: This isn’t a public library (yet). It’s a system I’m creating in our company for usage within our products.

    I thought about web components and actually created a few. But this hypermedia approach with HTMX is much simpler to develop and maintain, and since some of the components are very heavy, the server side rendering takes load off of clients and makes complex renderings possible.

    Can you elaborate why do you think HTMX doesn’t fit this usage? With webcomponents, the flow will be like this:

    1. Client fetch data from source
    2. Client render the data within tge component

    With this hypermedia approach the flow looks like this

    1. The client requests component with data from source from server
    2. Server fetches the data, (possibly validates it)
    3. Server renders the component
    4. Server sends component to client