4 pointsby f0rr02 hours ago1 comment
  • f0rr02 hours ago
    Hi HN, I built pglite-oxide: a Rust crate for running ElectricSQL’s PGlite WASI Postgres runtime through Wasmtime.

    0.3.0 makes the default path much more practical: prebuilt PGDATA template, Wasmtime module caching, direct embedded API, and local Postgres URI support for SQLx/tokio-postgres.

    The main use cases I care about are Tauri/native apps with local Postgres, Postgres-backed tests without Docker, and local AI apps that want app data + embeddings on device.

    It can also install PGlite/Postgres extension archives; I’m especially interested in pgvector for local semantic search/RAG. The runtime assets include things like pg_dump.wasm too, so I want this to become a useful embedded Postgres toolbox rather than just a query API.

    Curious what people would try to build with this.