---
title: "PGlite"
description: "Postgres compiled to WebAssembly as a small embeddable library that runs a real database in the browser, Node or an edge worker."
canonical: "https://vibing.inc/library/pglite-vg-0878"
category: "Dev Utilities & Vibe-Coding Tooling"
subcategory: "Database tooling"
license: "Apache-2.0"
author: "ElectricSQL (@electric-sql)"
source: "https://github.com/electric-sql/pglite"
---

# PGlite
Postgres compiled to WebAssembly as a small embeddable library that runs a real database in the browser, Node or an edge worker.
## Facts
- Source: https://github.com/electric-sql/pglite
- Category: Dev Utilities & Vibe-Coding Tooling / Database tooling
- Author: ElectricSQL (@electric-sql)
- Licence: Apache-2.0
- Tags: postgres, wasm, local-first, embedded
## Why it's a gem
Real Postgres in a browser tab in 3MB. Makes offline demos and tests trivial.
---
Listed in The Vibeary: https://vibing.inc/library/pglite-vg-0878 · JSON: https://vibing.inc/api/public/library/gems/pglite-vg-0878