points
I think you would be better off with either https://github.com/electric-sql/pglite or https://github.com/f0rr0/oliphaunt
They actually run as a library, like sqlite does, with no separate process