This is so cool, "just because we could", but I am curious about possible use cases for Postgres in the browser?
The Electric team have built this extension which will fit that use-case very well: https://pglite.dev/extensions/#live
Adding offline support (PWA) to an application which was primarily designed for use on a server. Though I'm not sure how well that'll work in practice, since the rest of the application will be designed to run on a server as well.