CouchDB on the server and PouchDB on the client was an attempt at making such an environment:
Also some more pondering on local-first application development from a "few" (~10) years back can be found here: https://unhosted.org/
And RxDB. https://rxdb.info/
Lotus Notes always deserves a mention in these threads too, as 1989's answer to local-first development. CouchDB was heavily inspired by Notes.
Using Couch/Pouch on our current app for this reason. Great to work with. Though we’re not supporting offline-first right away (depends on external services), it’s going to help with resilience and a future escape valve.