News for hackers. Stuff that matters.
Re:MonsterUI: Python library for building front end UIs quic... by boxed on Tuesday June 03, 2025 @05:26AM (#44168032)
> Higher level components [like] tables

But look at the code for a table: https://monsterui.answer.ai/api_ref/docs_tables

It's just exactly the HTML but written weirdly in Python. This isn't higher level, this is the exact same abstraction level as HTML already gives you!

I am so frustrated with this stuff. I developed an ACTUAL higher level abstraction for tables in iommi (https://docs.iommi.rocks/tables.html) and it boils my blood when people call this stuff "higher level". It's not. Not even close.

Re:MonsterUI: Python library for building front end UIs quic... by jph00 on Tuesday June 03, 2025 @05:38AM (#44168107)
But that’s the point! It’s just html!

But since the direct 1:1 mapping to html returns a python object, you can build up rich component hierarchies using plain python, mapping to plain html. And thanks to MonsterUI it looks pretty good too.

You seem to be arguing that more complexity, moving further from the foundations of the web, is a good thing. The fasthtml philosophy is the opposite — sticking close to the fundamentals is good.

Re:MonsterUI: Python library for building front end UIs quic... by boxed on Tuesday June 03, 2025 @06:12AM (#44168307)
> But that’s the point! It’s just html!

That's the point of FastHTML maybe, but the article linked says "higher level components" which is a lie. This is an enormous distinction, and not even close to subtle.

> You seem to be arguing that more complexity, moving further from the foundations of the web, is a good thing.

You use the word "complexity" in a weasel way.

It's fine to not have higher levels of abstraction in your framework. It's not fine to lie and say you do when you do not.

Re:MonsterUI: Python library for building front end UIs quic... by viralsink on Tuesday June 03, 2025 @11:34AM (#44171150)
The link to documentation showing simple HTML does not take away from the statement that the library offers higher level components, or provides the base for creating higher level components.

It seems to indeed be a HTML template engine based on Python.

Also, please don't boil your blood

Re:MonsterUI: Python library for building front end UIs quic... by enzojean on Tuesday June 03, 2025 @10:52PM (#44176797)
The goal on MonsterUI is just to make creating UI in fasthtml easier. Sometimes that means using HTML in a 1:1 mapping. If HTML does something great, it just uses that directly as you see with `Table` and implements helpers like `TableFromDicts`.

But sometimes it means syncing themes between frameworks. Sometimes it means server side markdown rendering. Sometimes that means integrations with 3rd part APIs like dice bear and picsum. And sometimes it means high higher level components such the `NavBar` component.

Totally fine if that's not to your taste, but there's nothing being misrepresented in the article AFAICT

Re:MonsterUI: Python library for building front end UIs quic... by robertlagrant on Tuesday June 03, 2025 @06:11AM (#44168300)
I don't think they mean the same sort of "level" as you do when talking about higher level. I think they probably more mean "complex components".
Re:MonsterUI: Python library for building front end UIs quic... by boxed on Tuesday June 03, 2025 @07:39AM (#44168892)
So exactly the same level as HTML already does? That seems like interpreting their words so charitably it no longer makes sense.
Re:MonsterUI: Python library for building front end UIs quic... by erikgaas on Tuesday June 03, 2025 @11:34AM (#44171153)
There is no reason for the author to be misleading about Table as a "high level component". There are more than enough examples that fit your definition. Look at the code for dashboard and music and you will see plenty of abstractions on top of the html components. https://monsterui.answer.ai/music/
Re:MonsterUI: Python library for building front end UIs quic... by threecheese on Tuesday June 03, 2025 @01:10PM (#44172259)
You should always aim to interpret most charitably, especially wrt a demonstrated good actor. Or perhaps you have a personal bias I’m not aware of (no shade, it just occurred to me while typing).
Re:MonsterUI: Python library for building front end UIs quic... by robertlagrant on Thursday June 05, 2025 @10:07AM (#44191867)
No, that's not what I mean. I mean "lower level" might be something like an "input" element - not nested; just a single element. Whereas a table might be considered higher-level: it is made of sub-elements.

That was how I interpreted it.

Re:MonsterUI: Python library for building front end UIs quic... by aatd86 on Tuesday June 03, 2025 @11:10AM (#44170921)
it's not really weird. It's just some datastructures. And I've never coded in python.

I guess, having python objects makes things easier than handling html strings.

Re:MonsterUI: Python library for building front end UIs quic... by enzojean on Tuesday June 03, 2025 @10:21PM (#44176665)
Sure, there's stuff like that. But there's also stuff MonsterUI creates itself that is higher level, such as navbars which are not 1:1 mapping and is higher level.

It has a lot of direct translation, and a lot of other stuff too like functions that integrate with external APIs and server side markdown rendering and theme syncing between lots of different libraries (5 listed on the main page).