Which one? <a href="https://github.com/Ladybug-Memory/pgembed" rel="nofollow">https://github.com/Ladybug-Memory/pgembed</a> or <a href="https://github.com/faokunega/pg-embed" rel="nofollow">https://github.com/faokunega/pg-embed</a> ?<p>Both will either download or ship the postgres binary with your app, and run it in a separate process. Pglite is different, it's actually a library (they have stripped some parts of the postgres source code) and it could in principle be ported to be used as a native library (meaning, you link to it and run as a single program)<p>There's even a draft PR to do this, but it became stale<p><a href="https://github.com/electric-sql/pglite/pull/842" rel="nofollow">https://github.com/electric-sql/pglite/pull/842</a><p>Right now what exists is, grabbing the pglite wasm and running it on native code on wasi<p><a href="https://github.com/f0rr0/pglite-oxide" rel="nofollow">https://github.com/f0rr0/pglite-oxide</a>