Live data from Hacker News

Nullboard: Kanban board in a single HTML file

github.com

121–130 of 191 posts

Re: Nullboard: Kanban board in a single HTML file

#121

Earlier quoted context omitted.

I totally understand your take, but as a guy that spends most of his time on side projects working on single HTML files, I have a different perspective. I find the totally self-contained nature of them very appealing because it travels well through space and time, and it's incredibly accessible, both online and offline. My current side project is actually using a WebDAV server to host a wide variety of different sing…

Out of curiosity why WebDAV vs loading the HTML straight from disk wherever they are and having a service that's only needed to for saving changes? Edit: I sketched out a basic version in JS + Python, it's fairly ok to use. The nice parts about this approach is the HTML files are viewable without any extra services, and the service that enables saving doesn't itself need configuration or to keep state.

You can save without any services at all using the File System API https://developer.mozilla.org/en-US/docs/Web/API/File_System...

The downside is even though you know the current directory due to window.location the API is written in the way it assumes you either want a default location like "desktop" or need the user to navigate to the directory before you can do operations on it (for security reasons) even from a local context. The user needs to select the directory once per fresh page load (if you've dynamically reloaded the current content then multiple saves need only prompt once so long as you save the handle).

Re: Nullboard: Kanban board in a single HTML file

#122
Nice to see, but hope he moves away from LocalStorage, as that is far from ideal. Chrome clears this when cookies are cleared; and many 3rd party tools suggest this as a way to 'optimize' your web experience. Often seen people file an issue for an application I made that used this.

Re: Nullboard: Kanban board in a single HTML file

#123
post #32

I think "single HTML file" sets up a certain expectation that a five-thousand-line long HTML file with ~3500 lines of embedded JS doesn't really live up to. I mean, hey, everything can be a single HTML file if you embed the bundle inline in your HTML! Cool project, though - don't mean to take away anything from it.

I totally understand your take, but as a guy that spends most of his time on side projects working on single HTML files, I have a different perspective. I find the totally self-contained nature of them very appealing because it travels well through space and time, and it's incredibly accessible, both online and offline. My current side project is actually using a WebDAV server to host a wide variety of different sing…

shameless plug: I also made a single HTML metronome in js

https://github.com/est/metronome

Re: Nullboard: Kanban board in a single HTML file

#124

Earlier quoted context omitted.

The point is that you can save the file and then use it offline. The exact set of clicks to make that happen are completely irrelevant to the core point.

So when you save a document in any popular word processing program, and every time you save it, a dialog would pop up asking you where to save it ... You wouldn't find that annoying at all, do I understand that correctly?

Your line of questioning is based on an incorrect set of assumptions.

The number of clicks is an implementation detail. It depends on whether or not you're using the web file API, some browser download capability, a browser plug-in, a mobile app, desktop app, a webdav server, or something else.

For people trying it for the first time, they often have the experience you're describing. But for most anybody that actually picks this up and uses it on a day-to-day basis, they use something else that saves transparently and automatically.

All of this is orthogonal to whether or not it's in a single HTML file. I fear you took lelandbatey's original ctrl-s reference a bit more literally than intended, though if you want to be pedantic, I can confirm I use applications in this style all day as part of my daily workflow and I do press ctrl-s and it saves with no further interaction in fully patched versions of Chrome, Firefox, and Safari with no plugins whatsoever.

Re: Nullboard: Kanban board in a single HTML file

#125
post #42

Earlier quoted context omitted.

Do have a link to all the single html file apps you have in mind?

I'm authoring two, One that's a keyboard based mnemonic launcher for accessing various websites. It's basically a way to have your bookmarks outside of the browser and quickly accessible. The other is a tabbed markdown document that can render static copies of itself. The two projects out in the wild that natively work with this approach are TiddlyWiki and FeatherWiki. I see room for a lightweight version of a calend…

[deleted]

Re: Nullboard: Kanban board in a single HTML file

#126

This is very cool. BTW, when developing single HTML file apps, instead of localStorage, one can use the HTML as the source of truth, so the user can just save/save-as to persist. I had mentioned my quick and dirty attempt at an image gallery that is a self-contained html file and some really liked the concept, if not the "app" itself: https://news.ycombinator.com/item?id=41877482

Does using save as retain changes you make in the HTML (like aedits on a contenteditable element)? In my experience it does not. When you save, the originally loaded html will be saved, any changes in html stay in your browser.

My bad, I should have mentioned that you should choose the option to save the complete web page. It becomes default on Firefox once you select it. Not sure about Chrome and others.

It looks like this on Firefox, Windows: https://imgur.com/zNlEGgK

Re: Nullboard: Kanban board in a single HTML file

#127
post #42

Earlier quoted context omitted.

Do have a link to all the single html file apps you have in mind?

I'm authoring two, One that's a keyboard based mnemonic launcher for accessing various websites. It's basically a way to have your bookmarks outside of the browser and quickly accessible. The other is a tabbed markdown document that can render static copies of itself. The two projects out in the wild that natively work with this approach are TiddlyWiki and FeatherWiki. I see room for a lightweight version of a calend…

Is https://rpdillon.net/redbean-tiddlywiki-saver.html still what you're using?

Re: Nullboard: Kanban board in a single HTML file

#128

Earlier quoted context omitted.

You can already do this using things like the Chrome Storage APIs (obviously chrome only, and you need to be signed in, and bundle an extension) https://developer.chrome.com/docs/extensions/reference/api/s...

Yeah, seen this but the storage quota is tiny: > If syncing is enabled, the data is synced to any Chrome browser that the user is logged into. If disabled, it behaves like storage.local. Chrome stores the data locally when the browser is offline and resumes syncing when it's back online. The quota limitation is approximately 100 KB, 8 KB per item.

8KB is a lot! You just have to be mindful of the constraint. I made an entire video game in 39 KB.

Re: Nullboard: Kanban board in a single HTML file

#129
Neat, very very well done.

One observation: Kanban is all about limiting the work in progress. That’s really its foundation. WIP limit is the main means for controlling and improving overall workflow effectiveness.

I would argue that boards not offering a WIP limit are not really “Kanban” boards, as they defeat the very goal of Kanban.

Post reply on HN