@electric-sql/pglite

v0.1.2
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped.
postgres sql database wasm client pglite

test

rm -rf ./pgdata-test && concurrently --hide 0 --prefix none -k "npx http-server --port 3334 ./" "sleep 2 && ava tests/*.test.js tests/**/*.test.js"

build

npm run build:configure && npm run build:all

format

prettier --write ./src

build:js

tsup && tsx scripts/bundle-wasm.ts

build:all

npm run build:wasm && npm run build:sharedir && npm run build:js

build:wasm

cd ../../postgres/ && make -f ../packages/pglite/Makefile build

build:clean

cd ../../postgres/ && make clean

build:sharedir

cd ../../postgres/ && make -f ../packages/pglite/Makefile sharedir

build:configure

cd ../../postgres/ && make -f ../packages/pglite/Makefile build-configure
npm i @electric-sql/[email protected]

Metadata

Downloads