the problem with this is that most browsers employ persistency rules for OPFS that are not very transparent, at least for the user, or not very predicable, at least for the developer. In other words, a user can find his/her data wiped out all of a sudden.<p>Here some info: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Storage_API...</a><p>There is also a discussion on HN: <a href="https://news.ycombinator.com/item?id=39222328">https://news.ycombinator.com/item?id=39222328</a><p>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.<p>This makes the whole purpose of it a bit pointless in my opinion. What is your experience with it?
> Picture using these apps offline with automatic synchronization when you’re back online. This is the essence of local-first web development – a revolutionary approach that puts users in control of their digital experience.<p>I had to laugh very hard at the "revolutionary approach". How is it revolutionary, if software was developed "local-first" for decades?<p>Techbros really do come up with the oldest ideas and call them revolutionary.
My main gripe with this is how do you charge users? They can just put the browser in offline mode and continue to use the app forever.<p>Also it's very hard to follow up bugs or other errors if users are often offline. I giess you can queue up errors being sent and so on but still. Syncing means that you probably have to have a complicated logic, especially if the data you are seeing can be modified by others. How do you solve merge conflicts?<p>I really like offline first web apps, but it is way harder and more expensive to build I think. For a startup it means more time before you can deploy your app and where I live there is pretty much fast internet everywhere so it kinda is solving an issue that very few customers will face.