This would be nice also to have an API that's usable from C/C++ code running in Wasm. I see libraries often do this where they expose a C/C++ library like Postgres to Wasm and the main / documented API is JS and you have to dig a bit to find the C/C++ API if it's possible to access it that way.
We want to extract the core changes to Postgres that we had to make and create a "libpglite" C lib that can be linked to from any language/platform.
Support important for React Native, as it doesn't have WASM support.