Hacker News new | ask | show | jobs
by traverseda 1230 days ago
My ideal stack is plain html, enhanced with HTMX for things like form validation.

Then for more complicated stuff I use self contained web components. That web component might be a terminal, or it might be a text editor, or it might be some kind of video calling widget.

One example, you don't need javascript for a chat interface (aside from htmx). You can use htmx to subscribe to a server-sent-event stream for receiving messages, and for posting them you just use a normal form element. It lets you write a lot more app-like functionality as standard html, and for when you can't do that a custom element is often the answer.

Don't know why web components haven't caught on more.