puter.js
puter.js copied to clipboard
Cache KV in localStorage
If the connection to the cloud is lost, we want to still be able to read (and write?) values. Some kind of internal backup or cache using localStorage might work for this. It should be invisible to user code.
If we want writing to work, then once we regain connection we would need to synchronise the changes.