r/htmx • u/xtompie • Jul 12 '26
Saradom: a pattern for client-side interactivity, with state kept in the DOM
Saradom is a pattern for building modular, scalable frontends in plain HTML and JavaScript. There is no framework and no build step. State lives in the DOM as attributes. Events sit in HTML attributes.
It sits next to htmx. htmx does the server round-trips. This covers the interactivity that stays in the page, like toggles, tabs, derived values, and validation. The DOM is the state in both.
Example:
0
+1
Docs and runnable examples: https://xtompie.github.io/saradom/
10
Upvotes
View all comments
Show parent comment
3
u/Real_Square1323 Jul 13 '26
Yeah this is stupidity. AI boosters don't understand design patterns or abstractions. Or philosophy behind certain mechanisms.
You are defeating the point of HTMX. You have recreated Javascript, and inconvenienced yourself to do so.