by TimTheTinker · 2y ago · 0 comments
It would be neat to visit /app/notepad, /app/kanban, /app/todo, etc. at a localhost port, with an index of apps at /. There could even be a /get-apps page that connects to an npm-like library of single-HTML-file apps available for download from a github.io static site backed by a public repo that accepts pull requests.
I'd love to see all the VC-funded glorified desktop utilities on the web become unnecessary.
Salesforce is basically a smalltalk VM and dominates thanks to that
And if it is, why does it dominate "thanks to that"?
On top of this third party developers can build in stuff that is more or less first class to the system, and it can run on the third party systems but you can get away with using Salesforce's "compute". So you're shipping software for the Salesforce VM, so to speak.
I would recommend playing around with the system to see what's going on.
There's a demo video on the Readme with setup instructions.
I tried this Ruby script for local hosting and it's working great for now: https://gist.github.com/jimfoltz/ee791c1bdd30ce137bc23cce826.... Just make sure you have wiki.html located alongside the script, and navigate to /wiki.html.
The next evolution would be to get it running in RedBean reliably - and maybe even get it saving Tiddlers to the built-in SQLite instance. Simon Willison's work on saving Tiddlers to SQLite in Python might be a good reference: https://github.com/simonw/datasette-tiddlywiki
Mainly I am bitter because nobody has ported electron to openbsd yet, cross platform my ass.
The mini-apps could store data in localStorage, but that would expose the data to other mini-apps. Maybe build an easy API that functions nearly equivalently against a Lua endpoint.
...But I've not worked out how to get RedBean serving up files outside of the zip... I'll get there.
P'raps LUA could manage the security for different static apps.... as you say.
When downloading a new mini-app, the Lua script would add it to the zip archive itself -- it can do this as far as I can tell.
The only issue I see is if you clear your browser’s cache while offline
The web platform simply doesn’t allow you to verify the checksum of an app and reject all further requests.
I mean, at that point, why not just grab the files are host them yourself?
That is at least until we get Isolated Web Apps and what ever the other proposals related to it alö called.
You're talking about progressive web apps. MacOS / iOS / Android have them, and I started using them more recently. Essentially, they're just webviews wrapped in a native app.