Writing to File Attachment or other ways to persist data?

Does Observable Framework make it possible to write data back into a local file that is saved in a Project folder and referenced as a file attachment – such that you could change the locally-stored data object with the notebook and the updated values would be used next time you load the application?

My assumption is no: the browser still runs in a sandboxed environment that prevents access to the local file system.

But how about with the File System Access API? … Looks like it might be possible, but only with Edge? [ref: Window: showSaveFilePicker() method - Web APIs | MDN]

I’d be interested if anyone could share an example of using Framework to persist changes to data in a relatively simple way.

Hi @aaronkyle. Please use our GitHub Discussions for questions or discussions about Observable Framework. Thank you!

1 Like

Thank you. Added here: Writing to File Attachment or other ways to persist data? · observablehq/framework · Discussion #1723 · GitHub