I think this is a neat direction to explore. I've wondered in the past whether you could use https://pglite.dev/ as if it were SQLite.
replies(4):
It's an embeddable Postgres you can run in process as a local client DB, just like SQLite but it's actually Postgres.
https://github.com/electric-sql/pglite-bindings
It would still be missing the standardized disk format aspect of sqlite, but otherwise will be neat.