by nzoschke · 3mo ago · 0 comments
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.
Maybe it's my fault, or maybe a model training, or something to improve in docs and SDKs?
Also, you can pass this to the agent. https://data-star.dev/docs.md
Once you have sufficient context in your html, this is no longer necessary.
The very top of the 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>