3 ms·
Close but htmx with SSE and dom swaps and morphing gets you there without reinventing any wheels. Pretty much every web app I build has this pattern in it from
by nzoschke 2mo ago
Close but htmx with SSE and dom swaps and morphing gets you there without reinventing any wheels.
Pretty much every web app I build has this pattern in it from day 1, as they all quickly expand to have a realtime inbox and notifications subsystem to support workflows and agents.
- nchmy 2mo agonow check out datastar for a smaller, faster, more extensible, more powerful version of that
- nzoschke 2mo agoI have tried it many times and I want to like it but I find the LLM doesn't program in it well. Maybe it's my fault, or maybe a model training, or something to improve in docs and SDKs?
- nchmy 2mo agoI was actually surprised yesterday the deepseek flash seemed to have some understanding of the datastar DSL. Also, you can pass this to the agent. https://data-star.dev/docs.md https://data-star.dev/docs.md
- Aeolos 2mo agoThe library is small enough I simply load the entire datastar codebase in the context when I need to ask how something works. Once you have sufficient context in your html, this is no longer necessary.
- NoDodgeQuestion 2mo agoIt would not be an htmx mention without mandatory nchmy datastar mention
- sudodevnull 2mo agoHTMX only does GET, doesn't to expo backoff, etc. Let alone the fact you need more extensions. Try it before claiming victory maybe?
- cpill 2mo agonot true. does all the verbs. extension, in what?
- moebrowne 2mo ago> HTMX only does GET The very top of the docs (https://htmx.org/docs/ https://htmx.org/docs/) shows how HTMX sends a POST request: <button hx-post="/clicked" hx-trigger="click" hx-target="#parent-div" hx-swap="outerHTML"> Click Me! </button>
- otherme123 2mo agoAnd a bit more hidden, https://htmx.org/extensions/ws/#automatic-reconnection https://htmx.org/extensions/ws/#automatic-reconnection (Automatic Reconnection with exponential backoff)