A fast cycle time is key when working with LLMs because they are good at adjusting to errors but bad at getting things right first time. So I like the HTMX-based stack.
Hyperflask – Full stack Flask and Htmx framework
81–90 of 160 posts
Re: Hyperflask – Full stack Flask and Htmx framework
#82Earlier quoted context omitted.
Hypermedia can do all of that fine. You don't need to stick it all in the url. Using simple session and cookie/tab id state can be shared and or isolated between tabs. Then just do a lookup in your backend database. Hypermedia is also way better for realtime and multiplayer. If anything where HTMX falls short is it doesn't put enough state on the backend, if anything it's not radical enough.
You mean I should be storing the state of a popup menu in my database?
Re: Hyperflask – Full stack Flask and Htmx framework
#83Earlier quoted context omitted.
It's a dead end for your use case, let's be very clear about that. And it's funny that you think anything about React and/or Vue is 'trivial'.
Surely you’re not saying the frameworks famous for ui = f(state) actually suck at managing state…
Re: Hyperflask – Full stack Flask and Htmx framework
#84Earlier quoted context omitted.
Hypermedia can do all of that fine. You don't need to stick it all in the url. Using simple session and cookie/tab id state can be shared and or isolated between tabs. Then just do a lookup in your backend database. Hypermedia is also way better for realtime and multiplayer. If anything where HTMX falls short is it doesn't put enough state on the backend, if anything it's not radical enough.
You mean I should be storing the state of a popup menu in my database?
Well, if you want to present the user with a fully saved UI state even if the user closed your app and opens it later, then yes :)
Otherwise purely client side things should stay either fully client-side, or at most in session storage.
Re: Hyperflask – Full stack Flask and Htmx framework
#85Earlier quoted context omitted.
You mean I should be storing the state of a popup menu in my database?
No, no you shouldn't. Well, if you want to present the user with a fully saved UI state even if the user closed your app and opens it later, then yes :) Otherwise purely client side things should stay either fully client-side, or at most in session storage.
If the latency was good enough you'd store everything on the server. It doesn't force you to give them the same state when they re-open your app, you can key state by session and tabid if you want.
Re: Hyperflask – Full stack Flask and Htmx framework
#86Hello, author of hyperflask here. I'm happy to finally announce this project as I've been working on it for quite some time. I made an announcement post here: https://hyperflask.dev/blog/2025/10/14/launch-annoncement/ I love to hear feedback!
Re: Hyperflask – Full stack Flask and Htmx framework
#87Hello, author of hyperflask here. I'm happy to finally announce this project as I've been working on it for quite some time. I made an announcement post here: https://hyperflask.dev/blog/2025/10/14/launch-annoncement/ I love to hear feedback!
Why sqlorm and not sqlalchemy? I've been out of the Python dev space for a long time (maybe it shows), but I thought everyone used SQLAlchemy, and I never heard off sqlorm.
I use sqlalchemy daily, it's an amazing library, but I wanted something more lightweight and straightforward for this project. I find the unit of work pattern cumbersome
Re: Hyperflask – Full stack Flask and Htmx framework
#88Earlier quoted context omitted.
Hypermedia can do all of that fine. You don't need to stick it all in the url. Using simple session and cookie/tab id state can be shared and or isolated between tabs. Then just do a lookup in your backend database. Hypermedia is also way better for realtime and multiplayer. If anything where HTMX falls short is it doesn't put enough state on the backend, if anything it's not radical enough.
You mean I should be storing the state of a popup menu in my database?
Re: Hyperflask – Full stack Flask and Htmx framework
#89Re: Hyperflask – Full stack Flask and Htmx framework
#90I have been using htmx to build a web app and came to the conclusion that it is a dead-end. The main problem is that the state of your frontend application is in the URL. This is not flexible enough for modern UI where you might have many different zones, widgets, popups, etc. that all need their own local navigation, activation states etc. Putting all of this in a single global url is extremely hard. Designing your…
> The main problem is that the state of your frontend application is in the URL. There are plenty of ways to maintain state, including server store, sessions, localstorage, cookies, etc. Say you want the user to be able to customize the app layout: that doesn't need to be in the URL. Now say you provide a search functionality where the user can share the results: now your search criterias definitely should be in the…
> It's not a black or white, one actually has to think about what the application must achieve.
You are explaining quite well why it's hard to manage the state in a htmx app. As your app grows up all this mumbo jumbo of url, session cookies, cookies, database models becomes tangled spaghetti. You don't have to do any of this in a Vue / React app, and that reduction of complexity alone is worth the weight of those frameworks.