electric-sql/pglite - OSS Alternative - Discover Top Open Source Alternatives to Popular Software
Embeddable Database Library
15.1k 2026-04-27

electric-sql/pglite

PGlite is a WASM build of Postgres, enabling embeddable, real-time, and local-first database capabilities in browsers, Node.js, Bun, and Deno without external dependencies.

Core Features

Run Postgres directly in browser, Node.js, Bun, Deno
No external dependencies required
Supports in-memory or persistent storage (IndexedDB/filesystem)
Small footprint (3MB gzipped) and supports Postgres extensions
Enables building reactive, real-time, local-first applications

Quick Start

npm install @electric-sql/pglite

Detailed Introduction

PGlite revolutionizes database deployment by compiling PostgreSQL into WebAssembly (WASM), allowing it to run directly within client-side environments like web browsers, or server-side runtimes such as Node.js, Bun, and Deno. This eliminates the need for traditional database server installations, simplifying development for local-first and real-time applications. It offers both ephemeral in-memory operation and persistent storage via IndexedDB or the filesystem, all within a compact 3MB gzipped package. PGlite is ideal for developers seeking to embed a full-featured Postgres database directly into their applications, fostering reactive and highly responsive user experiences.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.