Meta tags:
description= Lightweight WASM Postgres;
Headings (most frequently used words):
pglite, what, is, about, docs, extensions, reference, framework, hooks, tools,
Text of the page (most frequently used words):
#pglite (19), postgres (9), and (8), for (8), the (6), use (6), development (6), electric (4), support (4), local (4), can (4), browser (4), database (4), getting (3), started (3), edge (3), embedded (3), into (3), you (3), sync (3), with (3), extensions (3), what (3), under (2), videos (2), page (2), more (2), our (2), are (2), very (2), open (2), build (2), its (2), cases (2), has (2), full (2), rag (2), pgvector (2), remote (2), environments (2), web (2), containers (2), your (2), unit (2), many (2), either (2), wasm (2), node (2), bun (2), message (2), hello (2), world (2), query (2), import (2), install (2), npm (2), package (2), repl (2), docs (2), about (2), navigation (2), dual, licensed, postgresql, license, apache, next, pager, read, guide, keen, establish, both, source, contribution, project, working, community, around, develop, capabilities, all, enabling, retrieval, augmented, generation, workflow, device, lightweight, easily, containerised, alternative, simplifying, fast, start, tear, down, perfect, tests, have, unique, fresh, each, test, testing, however, there, beyond, application, being, developed, case, embedding, applications, locally, allowing, users, subset, their, server, side, unlike, previous, projects, does, not, linux, virtual, machine, simply, used, ephemeral, memory, persistence, file, system, indexeddb, rows, select, await, new, const, sql, from, simple, just, then, create, packaged, typescript, javascript, client, library, that, enables, run, need, any, other, dependencies, 3mb, gzipped, including, this, debugging, benchmarks, examples, reference, extension, catalog, upgrade, path, locale, prepopulated, pgdump, tools, socket, using, orms, builders, component, multi, tab, worker, bundler, vue, react, framework, hooks, filesystems, live, queries, api, sidebar, return, top, menu, github, home, main, search, skip, content,
Text of the page (random words):
what is pglite pglite skip to content search k main navigation home about docs repl electric github npm menu return to top sidebar navigation about what is pglite videos docs getting started pglite api live queries filesystems framework hooks react vue bundler support multi tab worker repl component orms query builders sync using postgres sync pglite socket pglite tools package pgdump prepopulated fs locale support upgrade path extensions extensions catalog extension development reference examples benchmarks debugging on this page what is pglite pglite is a wasm postgres build packaged into a typescript javascript client library that enables you to run postgres in the browser node js and bun with no need to install any other dependencies it s under 3mb gzipped and has support for many postgres extensions including pgvector getting started with pglite is simple just install and import the npm package then create your embedded database js import pglite from electric sql pglite const db new pglite await db query select hello world as message rows message hello world it can be used as an ephemeral in memory database or with persistence either to the file system node bun or indexeddb browser unlike previous postgres in the browser projects pglite does not use a linux virtual machine it is simply postgres in wasm it s being developed by electric for our use case of embedding into applications either locally or at the edge allowing users to sync a subset of their server side postgres database however there are many more use cases for pglite beyond its use as an embedded application database unit and ci testing pglite is very fast to start and tear down it s perfect for unit tests you can have a unique fresh postgres for each test local development you can use pglite as an alternative to a full local postgres for development simplifying your development environments remote development or local web containers as pglite is so lightweight it can be easily embedded into remote containerised development environments or in browser web containers on device or edge ai and rag pglite has full support for pgvector enabling a local or edge retrieval augmented generation rag workflow we are very keen to establish pglite both as an open source and open contribution project working to build a community around it so as to develop its capabilities for all use cases read more in our getting started guide pager next page videos dual licensed under apache 2 0 and the postgresql license electric
|