Skip to content
Back to skills

Pglite Embeddable Wasm Postgres

ASecurity

PGlite is a WASM build of Postgres packaged as a TypeScript library that runs a full Postgres database in the browser, Node.js, Bun, and Deno. At only 3.7MB gzipped, it enables local-first applications with real SQL capabilities and no external database dependencies.

  • 67 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 8, 2026
ai-agentstypescriptgobashsqlnodenodejsdockergitapidatabase

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill pglite-embeddable-wasm-postgres --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pglite Embeddable Wasm Postgres?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pglite Embeddable Wasm Postgres
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-pglite-embeddable-wasm-postgres/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-pglite-embeddable-wasm-postgres)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "PGlite Embeddable WASM Postgres for Browser and Node.js"
slug: "pglite-embeddable-wasm-postgres"
description: "PGlite is a WASM build of Postgres packaged as a TypeScript library that runs a full Postgres database in the browser, Node.js, Bun, and Deno. At only 3.7MB gzipped, it enables local-first applications with real SQL capabilities and no external database dependencies."
github_stars: 14984
verification: "security_reviewed"
source: "https://github.com/electric-sql/pglite"
category: "Library & API Reference"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "electric-sql/pglite"
  github_stars: 14984
  npm_package: "@electric-sql/pglite"
  npm_weekly_downloads: 8394608
---

# PGlite Embeddable WASM Postgres for Browser and Node.js

PGlite is a WASM build of Postgres packaged as a TypeScript library that runs a full Postgres database in the browser, Node.js, Bun, and Deno. At only 3.7MB gzipped, it enables local-first applications with real SQL capabilities and no external database dependencies.

## Installation

Use the upstream install or setup path that matches your environment:
- npm install @electric-sql/pglite
- Docker is required to build the WASM module, along with Node (v20 or above) and [pnpm](https://pnpm.io/) for package management and building the TypeScript packages.
- git clone --recurse-submodules https://github.com/electric-sql/pglite
- pnpm install

Requirements and caveats from upstream:
- PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js, Bun and Deno, with no need to install any other dependencies. It is only 3mb gzipped...
- It can be used as an ephemeral in-memory database, or with persistence either to the file system (Node/Bun/Deno) or indexedDB (Browser).
- ## Node/Bun/Deno

Basic usage or getting-started notes:
- **NodeJS**
- bash
- **Bun**

- Source: https://github.com/electric-sql/pglite
- Extracted from upstream docs: https://raw.githubusercontent.com/electric-sql/pglite/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/pglite-embeddable-wasm-postgres/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.