Web apps in a single, portable, self-updating, vanilla HTML file
111–120 of 240 posts
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#112*The tech: Hyperclay is a NodeJS server and frontend JS library*
So... it's not just an HTML file.
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#113I too have an odd obsession with keeping everything in 1 file. I recently (as an experiment) exclusively vibe-coded an Asteroids clone (with a couple of nifty additions), all in a single HTML file, including a unit test suite, which also works on either desktop or mobile: https://github.com/pmarreck/vibesteroids/blob/yolo/docs/inde... Playable version (deployed via github docs) is here: https://pmarreck.github.io/vib…
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#114For people who are confused: Hyperclay is a NodeJS server and frontend JS library that allows HTML pages to update their DOM and then replace their own .html source with the updated version. Imagine clicking a checkbox, which adds the `checked` attribute to its element, then using Hyperclay to globally persist this version of `document.body.outerHTML`, so that it's there next time someone visits the page. There's aut…
So it's a wiki? I don't get it.
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#115Re: Web apps in a single, portable, self-updating, vanilla HTML file
#116For people who are confused: Hyperclay is a NodeJS server and frontend JS library that allows HTML pages to update their DOM and then replace their own .html source with the updated version. Imagine clicking a checkbox, which adds the `checked` attribute to its element, then using Hyperclay to globally persist this version of `document.body.outerHTML`, so that it's there next time someone visits the page. There's aut…
So I'm trying to understand the difference, the payoff. I understand that local web APIs are ass and you very quickly run into the need for a server.
But I'm wondering about the utility of combining the two approaches. It seems like a contradiction in terms. Here's a server to help you with your dev setup oriented around not needing a server.
I guess the main win would be cross device access? You have it online and you can edit it easily.
I'm editing my stuff on my phone in a text editor. And syncing it to my laptop with a sync app.
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#117For people who are confused: Hyperclay is a NodeJS server and frontend JS library that allows HTML pages to update their DOM and then replace their own .html source with the updated version. Imagine clicking a checkbox, which adds the `checked` attribute to its element, then using Hyperclay to globally persist this version of `document.body.outerHTML`, so that it's there next time someone visits the page. There's aut…
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#118I appreciate the storytelling and the nice graphics, but after reading 10 screen lengths of this story I still don't understand what technology they are using to achieve this. Is it a lot of words to talk about localstorage? How exactly are the changes persisted to the HTML file? Is it using FileSystemAPI to overwrite the previous HTML file? How can they implement it seamless for the user without them having to choos…
There's two approaches Hyperclay takes. 1. Hosted: You get a bunch of "HTML Apps" that persist themselves by calling their own /save endpoint. We grab the HTML and overwrite their-app-name.html, making a backup/version along the way. (Each user can edit their own app only, but they can also enable signups so that other people can fork their app. We also have plans to allow them to ship optional updates to forked apps…
https://developer.mozilla.org/en-US/docs/Web/API/MutationObs...
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#119I too have an odd obsession with keeping everything in 1 file. I recently (as an experiment) exclusively vibe-coded an Asteroids clone (with a couple of nifty additions), all in a single HTML file, including a unit test suite, which also works on either desktop or mobile: https://github.com/pmarreck/vibesteroids/blob/yolo/docs/inde... Playable version (deployed via github docs) is here: https://pmarreck.github.io/vib…
Re: Web apps in a single, portable, self-updating, vanilla HTML file
#120This is really neat! It echoes many of the ideas we've been exploring with the Webstrates project ( https://webstrates.net ). We've been using the DOM as persistence layer for building malleable collaborative software for smaller groups, whereas hyperclay focuses on using the same mechanisms for traditional webpages. Recently, I have been experimenting with a local-first approach to Webstrates ( https://github.com/We…
Hi Clemens, I'm a big admirer of yours and what you're doing with Webstrates. I first heard of you about a year ago, when I was first exploring the ideas that became Hyperclay. I love the idea of a local-first Hyperclay. Offline editing is one of the pillars of personal software and I'd like to head in that direction. Would you be open to hopping on a video call at some point? I'd love to compare notes.