Live data from Hacker News

Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

github.com

11–19 of 19 posts

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#11
Writing an API that scales from quick PoC to MVP to serious production is in my opinion a problem space that is mostly not explored. We've tackled this with iommi (https://docs.iommi.rocks) with deep customization while at the same time having super fast PoC. We are not satisfied with the performance yet though, but at this point it's good enough for most uses.

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#12

Earlier quoted context omitted.

could you talk about it a bit more ? especially for a react person. How would you term the developer experience of htmx?

Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…

I've heard of htmx but only from a headline or two, here and there....but hearing your description really interests me a ton to learn about htmx. Thanks for sharing!

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#13
post #12

Earlier quoted context omitted.

Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…

I've heard of htmx but only from a headline or two, here and there....but hearing your description really interests me a ton to learn about htmx. Thanks for sharing!

No problem. Check out their site for some wonderful examples of what it can do and have fun!

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#14
post #12

Earlier quoted context omitted.

Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…

I've heard of htmx but only from a headline or two, here and there....but hearing your description really interests me a ton to learn about htmx. Thanks for sharing!

If you like video format the best presentation (imo) by the author, Carson Gross, is this one: https://www.youtube.com/watch?v=LRrrxQXWdhI

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#15
I'm quite the fan of streamlit but do not love its way of handling state. The only way to have a semblance of state captured between browser refreshes in streamlit is through query params. Have you taken a bite at that problem in your framework?

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#16

So, I've had a lot of the same issues with Streamlit in terms of going beyond the very raw PoC phase, which is why we often end up using Plotly's Dash[1] framework (React + Flask) at work for this kind of task. Taking a step back, what would the benefits be compared to Dash? [1]: https://dash.plotly.com/

When dash came out I was a massive fan but found the abstraction layer not quite right.

When writing a python script you tend to think from top to bottom - as your script runs through. Dash adopts the html approach of defining a document and callbacks. After doing the refactor to this model I found the trade-offs of Dash wasn't worth the time saved of going straight to a more traditional stack, and again you're pretty locked-in to this choice now.

One example was writing a Dash SSO component turned into quite an ordeal (more so than most SSO integrations) - my aim here is to make an extension like this easier because you've got access directly to the FastAPI app with `hs.app`.

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#17
post #11

Writing an API that scales from quick PoC to MVP to serious production is in my opinion a problem space that is mostly not explored. We've tackled this with iommi ( https://docs.iommi.rocks ) with deep customization while at the same time having super fast PoC. We are not satisfied with the performance yet though, but at this point it's good enough for most uses.

Wow this looks awesome! Definitely have a bit of a browse, thanks!

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#18

This looks fantastic and the streamlit API is lovely to with with so it seems like a nice approach. Like others on this thread I’m a big django developer too; it’d be nice if the backend was swappable so you could run on flask or django as well…

Thanks! Yeah interesting idea on the swappable backend, something I'll consider.

Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx

#19
I think the demo site may have been hugged to death. It's not rendering anything for me.

I think it's also worth giving a shoutout to wave in this space; they have quite a few components you can use out-of-the-box https://github.com/h2oai/wave

Post reply on HN