PGlite is a lightweight, WebAssembly (WASM) build of Postgres designed to run directly in JavaScript environments such as browsers, Node.js, Bun, and Deno, without the need for additional dependencies. It allows developers to run Postgres in-memory or with persistence to IndexedDB or local file systems, offering a simple yet powerful solution for local-first, real-time applications. At under 3MB gzipped, PGlite is optimized for efficiency and includes dynamic extension loading, support for pgvector, and real-time sync capabilities with ElectricSQL. It's ideal for building reactive apps with live queries and syncing data between a cloud Postgres instance and a local PGlite database.

Features

  • WASM Postgres: Runs Postgres in browsers and JavaScript environments
  • Real-time sync: Syncs data between cloud Postgres and embedded PGlite
  • Live queries: Supports reactive queries for real-time applications
  • Persistence: Offers options for in-memory databases or IndexedDB/local storage
  • Dynamic extensions: Supports custom extensions, including pgvector

Project Samples

Project Activity

See All Activity >

Categories

Database

License

Apache License V2.0

Follow PGlite

PGlite Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PGlite!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Database Software

Registered

2024-10-14