… is incredibly difficult!
Dolt, a SQL database with Git-style versioning
i.e. an approach which advocates for data stored entirely locally, and in servers under your control.
One challenge is that it’s very useful to have a SQL database, but browsers just provide a NoSQL store (IndexedDB).