Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Postgres in the Browser

Runs a real Postgres database in the browser, Node or your tests with PGlite, including vector search.

Claude's review

7/10 Concise, current PGlite guide covering the 0.5 package split, persistence, pgvector, live queries and upgrade traps.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

PGlite is Postgres compiled to WebAssembly: a real Postgres 18 database that runs inside the browser, Node.js, Bun or Deno with no server, in-memory or persisted to IndexedDB or a folder. Use when someone asks to "run Postgres in the browser", "embed Postgres in an app", "use PGlite", "local-first database", "Postgres for tests without Docker", or "vector search in the browser". Covers install, persistence, pgvector, live queries, workers, and upgrades between versions.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: pglite
description: >-
  PGlite is Postgres compiled to WebAssembly: a real Postgres 18 database that
  runs inside the browser, Node.js, Bun or Deno with no server, in-memory or
  persisted to IndexedDB or a folder. Use when someone asks to "run Postgres in
  the browser", "embed Postgres in an app", "use PGlite", "local-first
  database", "Postgres for tests without Docker", or "vector search in the
  browser". Covers install, persistence, pgvector, live queries, workers, and
  upgrades between versions.
license: Apache-2.0
compatibility: "Node.js (tested on 24), Bun, Deno or a modern browser. npm package @electric-sql/pglite (0.5.x, Postgres 18)."
metadata:
  author: terminal-skills
  version: "1.1.0"
  category: development
  tags: "postgres, wasm, browser, embedded, local-first"
  repository: https://github.com/electric-sql/pglite
---

# PGlite — Postgres in the Browser

## Overview

PGlite (by ElectricSQL) is a WebAssembly build of Postgres packaged as a TypeScript library. It runs as a single connection inside your process: real Postgres SQL (JSONB, CTEs, window functions, full-text search, triggers) with no daemon and no Docker. As of 0.5.x it is PostgreSQL 18; `select version()` reports it.

Where it fits: local-first and offline apps, Electron, tests and CI that need real Postgres semantics, prototypes, in-browser RAG with pgvector. It is not a server replacement: one connection, one process (use the multi-tab worker or `@electric-sql/pglite-socket` to share it).

**0.5 changes that break older snippets:** most extensions moved to their own packages. pgvector is now `@electric-sql/pglite-pgvector` (`import { vector } from "@electric-sql/pglite-pgvector"`), not `@electric-sql/pglite/vector`; PostGIS, AGE, pgtap, pgmq and others are `@electric-sql/pglite-postgis`, `-age` and so on. `live` and the Postgres contrib extensions (`@electric-sql/pglite/contrib/<name>`, e.g. `pg_trgm`, `hstore`, `citext`) stay in the main package. Extension packages pin the exact PGlite version they were built for, so keep versions in step.

## Instructions

### Install and open a database

```bash
npm install @electric-sql/pglite
```

```typescript
import { PGlite } from "@electric-sql/pglite";
...

From TerminalSkills's repository, Apache-2.0 licence.

Related skills

  • Checked

    PostgreSQL schema explorer

    Explores an unfamiliar PostgreSQL database read only before writing SQL, so answers about your data are right.

    by timescale 1.9k
    7/101 credit
  • Checked

    HTTP API design review

    Designs or reviews HTTP endpoints, auth, pagination and versioning, so API changes do not break your clients.

    by AmazingAng 770
    7/101 credit
  • Checked

    Firebase Data Connect

    Builds and deploys Firebase Data Connect backends on PostgreSQL with secure queries and type safe SDKs.

    by firebase 533
    7/101 credit
  • Checked

    App performance tuning

    Measures first, then fixes slow pages, Core Web Vitals and N+1 database queries across your whole app.

    by addyosmani 122k
    7/101 credit
  • Checked

    Safe Postgres migrations

    Plans and tests PostgreSQL schema changes with lock levels in mind, so live tables change without downtime.

    by timescale 1.9k
    8/101 credit
  • Checked

    Supabase auth and database

    Builds with Supabase auth, database, storage and edge functions while avoiding common security traps.

    by supabase 3.2k
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added