What problem does it solve?
This Skill provides a full PostgreSQL 17.4 database engine that runs directly in the browser or Node.js via WebAssembly, under 3MB gzipped, eliminating the need for external database servers for many applications.
Core Features & Use Cases
- In-Browser PostgreSQL: Run complex SQL queries, transactions, and use extensions like
pgvector directly in the client.
- Local-First & Offline Apps: Enables robust local data storage and querying for PWAs and offline-first applications.
- Use Case: Develop a data visualization dashboard that runs entirely in the browser, fetching and querying data locally using PGlite, and syncing with a remote backend when online.
Quick Start
Use the pglite skill to create a new PGlite instance with IndexedDB storage for a database named 'my-app'.