qmetrics.net

PGlite

Embeddable WASM PostgreSQL for apps

PGlite screenshot

PGlite ships Postgres compiled to WebAssembly in a TypeScript client. It runs in the browser, Node.js, Bun, and Deno without a separate database install.

Overview

PGlite is a compact WebAssembly build of PostgreSQL packaged as a TypeScript library. It lets applications run a real Postgres engine locally for prototyping, tests, or local-first data without standing up a full server process.

It can operate in memory or persist data to the filesystem on Node, Bun, and Deno, or to IndexedDB in the browser. The design uses Postgres single-user mode adapted for WASM rather than embedding a full Linux VM. Many extensions are supported, including pgvector and PostGIS, via dynamic loading.

Developers install it through npm or load it from a CDN. APIs cover in-memory and persistent setups. From recent releases it can expose a connection compatible with node-postgres clients. Documentation and interactive browser demos are published separately.

PGlite is single-connection only, which matters when planning concurrency. It targets reactive and real-time app patterns with built-in primitives for synchronization and live queries described in project materials.

Key features

  • Postgres in WebAssembly under 3MB gzipped
  • Browser, Node, Bun, Deno support
  • In-memory or persistent storage
  • pgvector and PostGIS extensions
  • IndexedDB persistence in browsers
  • node-postgres compatible connection
  • Reactive query and sync primitives
  • No separate Postgres daemon required

Use cases

  • Local-first web apps with SQL
  • Unit tests needing real Postgres
  • Embedded analytics in the browser
  • Prototyping without cloud databases

Tags

Similar software

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT

LevelDB

Ordered embedded key-value storage library

LevelDB is a fast embedded library that maps string keys to string values in sorted order. Applications link it in-process; it is not a SQL database and has no built-in client-server layer.

  • Sorted byte-key storage
  • Custom key comparators
  • Atomic write batches
C++Linux, macOS, WindowsDetails →
★ 39.6k⟳ 21 days agoBSD-3-Clause

RocksDB

Embeddable persistent key-value storage engine

RocksDB is an embeddable C++ library for a persistent key-value store tuned for flash and RAM. It suits embedded workloads, caches, and storage engines inside larger systems.

  • Embeddable LSM key-value engine
  • Configurable amplification tradeoffs
  • Multi-threaded compactions
C++Details →
★ 32.4k⟳ todayGPL-2.0 · open core

Turso

In-process Rust SQL engine with SQLite and experimental Postgres frontends

Turso is an in-process SQL database compatible with SQLite files and APIs. It compiles queries to bytecode on a shared virtual machine and adds bindings for many languages.

  • SQLite-compatible dialect and file format
  • Bytecode VM with multiple SQL frontends
  • Experimental Postgres dialect and wire protocol
RustLinux, macOS, Windows, DockerDetails →
★ 25.4k⟳ todayMIT

RxDB

Local-first reactive NoSQL database for JavaScript

Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.

  • Reactive query subscriptions
  • Offline local-first storage
  • Pluggable storage engines
TypeScriptWebDetails →
★ 23.5k⟳ todayApache-2.0
Open Source Alternative to:Firebase Realtime Database

GUN

Decentralized graph sync and embedded data engine

GUN is a JavaScript graph database protocol for realtime peer-to-peer sync, offline-first use, and end-to-end encryption. npm install gun gets a small embedded engine for browser and Node.

  • Realtime P2P graph synchronization
  • Offline-first local data
  • End-to-end encryption support
JavaScriptWeb, DockerDetails →
★ 19.2k⟳ todayMIT · open core
Open Source Alternative to:Cloud Firestore