r/tinycode • 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/
8 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/nexe mod Aug 25 '25

but that only solves the 'problem' of publishing your own changes. what if you want to persist user changes like comments etc? You still need a backend. I don't see the advantage of having the backend modify your HTML vs the backend modifying some data store, even something simple like a json file.

1

u/Asleep-Land-3914 Aug 25 '25

I think the advantage is that HTML is more powerful and versatile for expressing markup/content compared to just data. The above may only work for things heavily implying user authoring content.

For things like comments, it's still expected to use something like htmx/framework to communicate with backend, and the backend is still needed.

In my explorations I was using Shadow DOM to hide specific HTML pieces I didn't want to sync. And I think, it's both silly and dangerous to allow anyone to alter your blog html via comments.

That said I see something like this to be used only for first-party authoring, anything third-party should go through validation and sanitization. Otherwise it's just asking for trouble.