News for hackers. Stuff that matters.
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by abdullahkhalids on Wednesday July 26, 2023 @10:35PM (#36888209)
In the first few of years of TiddlyWiki (mid/late '00s), the way it worked was that you just had a local copy of your tiddlywiki.html. You just opened it in a browser, and did your editing. Then you could just click the save button inside the page. And the page was saved to disk. This worked on every desktop browser.

Obviously, generically letting webpages, even local ones, have this sort of access to disk had lots of security implications. So, eventually all browsers removed this functionality. Now, you need all these extensions or tools to save the file.

Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by slaymaker1907 on Wednesday July 26, 2023 @11:52PM (#36888720)
You can do it with Chromium browsers using the native file system access API. Unfortunately, I think Firefox didn’t actually read the whole spec and Apple doesn’t like it because it cuts into their App Store revenue.
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by rcfox on Thursday July 27, 2023 @01:23AM (#36889255)
Or you can set it up to make a git commit instead of saving to a local file.
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by tomjakubowski on Thursday July 27, 2023 @09:04AM (#36892807)
Oh, wow, if you just set up git+https with CORS, then you could push to a git remote from a browser. That's real interesting.
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by WorldMaker on Thursday July 27, 2023 @05:49PM (#36900605)
Yep, that's where you get tools like Netlify CMS: https://v1.netlifycms.org/
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by xmonkee on Thursday July 27, 2023 @02:14AM (#36889603)
what was the api like back then that let a webpage write to storage? Was it just calling the browser’s “save webpage” thing? And storing the state in html somehow?
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by joking on Thursday July 27, 2023 @04:15AM (#36890495)
you saved like you can "save page as" now from the browser menu.
Re:TiddlyPWA: putting TiddlyWiki on modern web app steroids by TJSomething on Friday July 28, 2023 @12:44AM (#36903181)
That part still works in modern browsers. What broke were the browser extension APIs for automatically saving to the file system without a dialog.