@electric-sql/pglite

v0.2.0-alpha.1
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 -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 && tsx scripts/bundle-wasm.ts

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

test:quick

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

Metadata

  • Apache-2.0
  • Whatever
  • Electric DB Limited
  • released 7/26/2024

Downloads