Live data from Hacker News

Show HN: I made a HTMX Playground 100% in the browser

lassebomh.github.io

51–60 of 126 posts

Re: Show HN: I made a HTMX Playground 100% in the browser

#51

Are there any companies using htmx? Places where we can see examples of complex interaction?

Not sure what is considered complex. I have a login flow and search interface implemented in HTMX and Rust. Polishing the last few rough edges and when it is done I a writing a detailed article about it.

Re: Show HN: I made a HTMX Playground 100% in the browser

#52
post #48

Are there any companies using htmx? Places where we can see examples of complex interaction?

> complex interaction Yeah, htmx looks endearingly simple but I worry we might be painting ourselves into a corner. Not sure what happens when you need more "bespoke" functionality. I didn't really look into it at all, maybe I don't need to worry?

I have been using HTMX with Django for over 3 years on multiple (client) projects.

In 99% of the cases, it works just fine. In the 1% of highly interactive components that aren’t working well with HTMX, you can just put in some Vue or alpineJS. whichever works best for you.

I have migrated all of my own and client apps from a decoupled Vue/django setup to HTMX. It was a ton of work, but it’s awesome having a clean setup with no node modules.

Re: Show HN: I made a HTMX Playground 100% in the browser

#53

> Limited mobile support, Ace Editor (should just be Monaco) and lack of proper error outputs. Monaco doesn't work on mobile by design, so people use Ace on mobile. At least the last time I checked GitHub[0]. [0] https://github.com/Microsoft/monaco-editor/issues/246

Monaco works fine on mobile, just used it for https://tsdiagram.com

As someone who just hit tsdiagram for the first time on my phone, I'll suggest you'd be much better off with an explanatory landing page.

I can see just enough editor UI stuff on my phone to strongly suspect I'm in your target userbase, but because of screen size issue I can not see enough to have any idea what tsdiagram actually does.

Re: Show HN: I made a HTMX Playground 100% in the browser

#54
post #22

Wonder if there is there anybody who is making an offline app with request-reponse with html(with HTMX) and a virtual server defined in a service worker?

This is a great question. I love htmx but in situations that have to work offline I can't use it. Would be a great hack to be able to just run your server code in a worker.

I am not sure if I understand the definition of offline here. HTMX has graceful degradation options. What else could you do when the client is offline?

Re: Show HN: I made a HTMX Playground 100% in the browser

#56

Earlier quoted context omitted.

Monaco works fine on mobile, just used it for https://tsdiagram.com

On my android, I cannot type - the keyboard does not open. So it's read-only on my mobile. I think that was the problem with Monaco on mobile: the keyboard never worked correctly. That was my experience. Edit: I don't want to complain, Monaco is superb editor and it would be super if it worked on mobile consistently . But from the github issue, it appears that Microsoft doesn't seem to want to change that.

Super weird, I can type on Android, will try some other phones.

Re: Show HN: I made a HTMX Playground 100% in the browser

#58

Earlier quoted context omitted.

> I'm kinda scared it's developer pool seems too small to hire devs from It is very straightforward to pick up. Unless you hire code camp devs who only ever learned React, no actual CS topics, anybody should be productive within at most a week.

I would go so far as to say if you can understand React, you can understand HTMX.

If you can understand HTML, you can understand HTMX.

Re: Show HN: I made a HTMX Playground 100% in the browser

#59
post #48

Earlier quoted context omitted.

> complex interaction Yeah, htmx looks endearingly simple but I worry we might be painting ourselves into a corner. Not sure what happens when you need more "bespoke" functionality. I didn't really look into it at all, maybe I don't need to worry?

I have been using HTMX with Django for over 3 years on multiple (client) projects. In 99% of the cases, it works just fine. In the 1% of highly interactive components that aren’t working well with HTMX, you can just put in some Vue or alpineJS. whichever works best for you. I have migrated all of my own and client apps from a decoupled Vue/django setup to HTMX. It was a ton of work, but it’s awesome having a clean se…

I think you mention a very valid point that is worth reiterating: Even when you enter territory where HTMX gets cumbersome for some reason, you can still use custom JS or some other library to work around it.

I admit that I initially started to use HTMX to avoid JS, but I am now more comfortable than ever before to fall back to some lines of Javascript in the few cases where HTMX does not feel like a great fit to solve the problem at hand.

Another great side effect (that you also mentioned) is how much cleaner the project is structured now. But I also realize that this might not apply to big projects.

Re: Show HN: I made a HTMX Playground 100% in the browser

#60

hey there, I'm the creator of htmx, and I really appreciate you making this! very cool!

Thankyou for the awesome library! I have a question. Is there a way to use HTMX with minimal server side changes. Specifically if I have an existing page that you fill in a form and submit and response is of course the entire page. I think it would be cool to tell htmx that the whole page is being returned BUT I only want to update #my-form and that way you don’t need any “if htmx request” kinda stuff on the server.…

I'm not sure about HTMX, but this kind of behaviour is what Unpoly https://unpoly.com/ excels at

I played with it recently and it was pretty easy to enhance a completely non-js CRUD type app and have it fall-back gracefully. Seems a similar concept to HTMX but has a more batteries included / high-level approach.

Post reply on HN