5 ms·
Nice, I wouldn't have thought that simple approach "download/overwrite" of self-modifying page served via file:/// protocol would be this viable and, after all,
by myfonj 4y ago
Nice, I wouldn't have thought that simple approach "download/overwrite" of self-modifying page served via file:/// protocol would be this viable and, after all, even intuitive.
For similar purpose (not-so-important semi-ephemeral notes and doodles) I usually (ab)use dataURI documents with "#hash" part and rely on browsers' history/bookmarks persistence, so both "editor engine" and "data" remains in URL and does not need to leave the browser.
Example: simple "HTML sandbox" with live preview under 1kb [1].
(Hypothetically they could be even synced to browser profiles, but. Also there presumably is a size limit for URI (or perhaps bookmarks database) but I haven't ran into it yet.)
Most probably not advisable for larger apps (even tiny feather wiki) but for it's super small purposes it has a nice advantage of "un-hosted" application/data can be passed around with clipboard. (Naturally, the "engine" works from a file as well [2], but the persistence remans in the "#hash" nevertheless.)
[1] https://gist.github.com/myfonj/c8ce74bf549e19600026ce9022388df8 https://gist.github.com/myfonj/c8ce74bf549e19600026ce9022388...
[2] http://myfonj.github.io/sandbox.html http://myfonj.github.io/sandbox.html
- AMICABoard 4y agoSimilar to your interest. I've been experimenting with Data URIs and base64 encoded html pages. I could manage around 400kb in url, beyond which it wouldn't load in chrome and firefox. itty bitty is a great tool to store stuff in urls with compression! http://itty.bitty.site/ http://itty.bitty.site/ A plugin for Feather Wiki to export to itty bitty would be awesome. I've personally did some experiments. I'll share the finding to the Feather Wiki author to give him an idea and also add an issue for a plug in request, so some hackers can work on it... I've created an issue at itty bitty github some time ago so that wikis like tiddly wikis and feather wiki could be fully compatible: https://github.com/alcor/itty-bitty/issues/70 https://github.com/alcor/itty-bitty/issues/70 There is also link to an example in that issue.