by al_borland · 1y ago · 0 comments
I typically end up using basic HTML/CSS/JS for stuff like this today. If I really need backend code, I'll use basic PHP (no frameworks or anything). But this ties me to a browser, which I'm not always a fan of. Some of these fairly scrappy little projects at work (done in the browser like this, and with AutoHotKey) have been going for 10+ years now, with very little maintenance. The AHK script I haven't touched in probably 8 years, since I moved to macOS at work, yet people still use it countless times per day. If AHK decides to stop operating, it's no big deal, the code that exists will still run. The same can't be said for these SaaS solution to this problem. People looking for scrappy solutions aren't looking to remake their solution every time a founder decides to move on to something else more interesting or profitable.
It's a fully client-side Python IDE with single-stepping, a virtual (non-hierarchical) filesystem, an FFI to call JS code and a few other things (see the docs). Sharing apps in CodeBoot is trivial: right-click the "play" button and copy a shareable URL. I have helped people solve data wrangling problems using CodeBoot and they now have their little app bookmarked. It works really well.
I could go on for a while. AMA if you're interested. We're actively working on it and some great new features are on the way!
No welcome screen, just dropped straight into the main interface which itself has no excess buttons or styling wasted on it.
To me this is beautiful.
It really is a joy to program with, but we're struggling a bit to communicate everything it can do. We are working hard on that front and should have a landing page and better explanatory material soon. We're very interested in feedback. If anybody wants to learn more, just contact me through the email in my profile.
Cheers!
Browsers are getting more and more aggressive about deleting cookies / making cookies ephemeral, and nothing is more annoying that dealing with one or multiple pop-ups on each page visit.
For an example of how bad it can get, load LMarena in a private window.
Cookie pop-up, agree > type something, press enter > ToS pop-up, agree > press enter again > processing > answer > type somethi- verify Cloudflare, agree > type something
Other than that I don't have much comments yet except that it seems a nice product!Building a whole platform around self-replicating HTML-files with optional backend-access seems to be the more reliable solution for small personalized stuff. At least it has a strong resilience.
The cool thing is each HTML file is able to modify/overwrite itself, so users can use the app's own UI to modify it (e.g. a dashboard where users can add new fields by clicking a button to clone a DOM node, everything's persisted).
The key insight: collapsing the UI/state/logic layers into a single self-contained HTML file eliminates entire categories of complexity - no build steps, no deployment, no state synchronization. Everything you need is just right there.
https://www.goodreads.com/book/show/192405005-hypermedia-sys...
(and if not, are you aware of a book which touches on/explains your technique?)
Do you think a visual tool for this could be created? (something like Lazarus or Interface Builder or QT Designer...)
But in Hyperclay apps, the DOM is the source of truth -- there's nothing else. So there's no need for more than a single AJAX call (to save the page). HTMX is built to support a more traditional multi-page stack, whereas Hyperclay is built around single-file HTML apps.
The idea is that every HTML file is its own visual tool for modifying its own UI/data. For instance, you could build a page layout editor that lets users drag-and-drop components, and the editor itself would be part of the saved HTML file. An infinite variety of visual tools can (and will) be built on top of this structure.
As for essays about this vision, I'd recommend "Local-first software" [0] and "Malleable software" [1]
The key difference is when you want to share your creation on the web. With TiddlyWiki, you typically share a read-only version, requiring visitors to download and save their own copy. With Hyperclay, you can host that same HTML file on any server and live-edit it directly in your browser (if you're the owner). When people clone it, their clone is shareable and available on the web.
So you get the best of both worlds: the simplicity of a single HTML file that "just works" offline, plus the ability to publish it as a living document that you can edit directly in the browser.
Think of it as TiddlyWiki's philosophy extended to the shared web. Same single-file simplicity, but now your changes can be seen by others.
Otherwise really interesting, thanks for sharing!
Modern computing badly needs the ability to support building our own local apps without a remote web server dependency. This is how computing worked in the pre-internet age. HyperCard could connect to a database as could Filemaker Pro. Windows had something similar where GUI-based apps could read/write to an Access DB. These tools have been deprecated and only live on in some subscription-based SaaS.
cd ~/html
php -S localhost:8000
One of the difficulties of course is notarizing/signing the apps and so-forth. Perhaps some Web3 solutions could help as well.
OR, another option would be like what PICO-8 does (or flash I guess)—release the runtime and distribute the “carts” or apps. :)
Still, it’s pretty complex creating a trusted distribution network outside of SaaS. Definitely could work though it’s been done before!
[1]: https://penpot.app/
Of course, as it stands, the examples were so simplistic that they could easily be vibe coded. I just tried it with the attendance counter and ChatGPT gave me that's only 50 lines. I'm sure I could make that much shorter doing it manually. Granted, a project like this has to start somewhere, but as it stands it's adding a lot of infrastructure without adding enough value to make it worth it, when AI is pretty good at these really basic things, like "give me a text box with a button to increment it".
I know almost nothing about the underlying technologies, can barely code JS for the front end. But after about 10 hours of coding, I’ve got a very neat little app - it’s something that would have taken me 2 months then become abandonware after I got frustrated.
This was such a positive experience with vibe coding that it restored my love for code. Resulting quality seems pretty decent - maybe 1200 sLOC with good logging, performance, and what I would say is decent pro-am code quality. (IE above the median quality for typical commercial code, I’d bet)
One idea we had early on is the ability to save scrapps as single-page self-contained HTML files. We experimented with this but the functionality isn't currently exposed.
Depending on your tolerance for basic ai coding, you might enjoy openjam.ai
You can build silly stuff like this (better seen on desktop):
* https://openjam.ai/lonely_ant_702/bajbin4neo