Re:Nullboard: Kanban board in a single HTML file
by zamadatix on Thursday December 19, 2024 @10:39PM
(#42468071)
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).
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.