Here some info: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API...
There is also a discussion on HN: https://news.ycombinator.com/item?id=39222328
You can use the file system API as an alternative, which is permanent, but it's slow, requires the user to remember where the file was stored, and not recommended for things such as databases.
This makes the whole purpose of it a bit pointless in my opinion. What is your experience with it?