@electric-sql/pglite

v0.2.0-alpha.4
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

dev

concurrently "tsup --watch" "sleep 1 && tsx scripts/bundle-wasm.ts" "pnpm dev-server"

test

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

build

npm run build:js

format

prettier --write ./src

build:js

tsup

test:bun

rm -rf ./pgdata-test && npx bun test tests/basic.test.js && npx bun test tests/pgvector.test.js && npx bun test tests/targets/node-fs.test.js

dev-server

pnpm http-server ../

test:quick

rm -rf ./pgdata-bun-test && ava tests/*.test.js tests/target/node-*.test.js
npm i @electric-sql/[email protected]

Metadata

Downloads