r/tinycode • u/nexe mod • Aug 24 '25
Hyperclay | Experience the Zen of making, hosting, and sharing great software in a single, portable, self-updating, vanilla HTML file
https://hyperclay.com/
6
Upvotes
View all comments
Show parent comment
1
u/Asleep-Land-3914 Aug 24 '25
I did some exploration in this direction as well (not publically available though).
In my experience a shell storing state as HTML can go a long way (esp if using Custom Elements). Basically use DOM for persisting state and for things which are not good fit for HTML refer to them via links (e.g. media / JSON). Then persist resulting HTML somewhere.
Compared to traditional SPA you have to think more on the design and it is harder to blend in current frameworks, so you end up with something custom.
I haven't found good primitives to make it a library or something useful.